fijkplayer

package module
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2020 License: MIT Imports: 12 Imported by: 0

README

fijkplayer

This Go package implements the host-side of the Flutter fijkplayer plugin.

Usage

Import as:

import fijkplayer "github.com/befovy/fijklayer/go"

Then add the following option to your go-flutter application options:

flutter.AddPlugin(&fijkplayer.FijkplayerPlugin{}),

Documentation

Index

Constants

View Source
const (
	FFP_OPT_CATEGORY_FORMAT = 1
	FFP_OPT_CATEGORY_CODEC  = 2
	FFP_OPT_CATEGORY_SWS    = 3
	FFP_OPT_CATEGORY_PLAYER = 4
	FFP_OPT_CATEGORY_SWR    = 5
)
View Source
const (
	IJKMPET_FLUSH                  = 0
	IJKMPET_ERROR                  = 100
	IJKMPET_PREPARED               = 200
	IJKMPET_COMPLETED              = 300
	IJKMPET_VIDEO_SIZE_CHANGED     = 400
	IJKMPET_SAR_CHANGED            = 401
	IJKMPET_VIDEO_RENDERING_START  = 402
	IJKMPET_AUDIO_RENDERING_START  = 403
	IJKMPET_VIDEO_ROTATION_CHANGED = 404
	IJKMPET_BUFFERING_START        = 500
	IJKMPET_BUFFERING_END          = 501
	IJKMPET_BUFFERING_UPDATE       = 502
	IJKMPET_POSITION_UPDATE        = 510
	IJKMPET_PLAYBACK_STATE_CHANGED = 700
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FijkPlayer

type FijkPlayer struct {
	// contains filtered or unexported fields
}

func (*FijkPlayer) OnCancel

func (f *FijkPlayer) OnCancel(arguments interface{})

OnCancel handles a request to tear down the most recently created event stream.

func (*FijkPlayer) OnListen

func (f *FijkPlayer) OnListen(arguments interface{}, sink *plugin.EventSink)

OnListen handles a request to set up an event stream.

type FijkplayerPlugin

type FijkplayerPlugin struct {
	// contains filtered or unexported fields
}

FijkplayerPlugin implements flutter.Plugin and handles method.

func (*FijkplayerPlugin) InitPlugin

func (p *FijkplayerPlugin) InitPlugin(messenger plugin.BinaryMessenger) error

InitPlugin initializes the plugin.

func (*FijkplayerPlugin) InitPluginTexture

func (p *FijkplayerPlugin) InitPluginTexture(registry *flutter.TextureRegistry) error

func (*FijkplayerPlugin) OnCancel

func (p *FijkplayerPlugin) OnCancel(arguments interface{})

OnCancel handles a request to tear down the most recently created event stream.

func (*FijkplayerPlugin) OnListen

func (p *FijkplayerPlugin) OnListen(arguments interface{}, sink *plugin.EventSink)

OnListen handles a request to set up an event stream.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL