Documentation
¶
Overview ¶
Go bindings for libVLC 1.1.9.
Index ¶
- Constants
- func ChangeSet() string
- func ClearError()
- func Compiler() string
- func VersionString() string
- type AdjustOption
- type AudioChannel
- type AudioDevice
- type AudioOutput
- type AudioOutputList
- type Discoverer
- type DisplayHandler
- type Event
- func (this *Event) MediaDiscovererEnded() *Discoverer
- func (this *Event) MediaDiscovererStarted() *Discoverer
- func (this *Event) MediaDurationChanged() int64
- func (this *Event) MediaFreed() *Media
- func (this *Event) MediaListItemAdded() *Media
- func (this *Event) MediaListItemDeleted() *Media
- func (this *Event) MediaListPlayerNextItemSet() *Media
- func (this *Event) MediaListPlayerPlayed() MediaState
- func (this *Event) MediaListPlayerStopped() MediaState
- func (this *Event) MediaListViewItemAdded() *Media
- func (this *Event) MediaListViewItemDeleted() *Media
- func (this *Event) MediaListViewWillAddItem() *Media
- func (this *Event) MediaListViewWillDeleteItem() *Media
- func (this *Event) MediaListWillAddItem() *Media
- func (this *Event) MediaListWillDeleteItem() *Media
- func (this *Event) MediaMetaChanged() MetaProperty
- func (this *Event) MediaParsedChanged() int
- func (this *Event) MediaPlayerBackward() MediaState
- func (this *Event) MediaPlayerBuffering() MediaState
- func (this *Event) MediaPlayerEncounteredError() MediaState
- func (this *Event) MediaPlayerEndReached() MediaState
- func (this *Event) MediaPlayerForward() MediaState
- func (this *Event) MediaPlayerLengthChanged() bool
- func (this *Event) MediaPlayerMediaChanged() *Media
- func (this *Event) MediaPlayerNothingSpecial() MediaState
- func (this *Event) MediaPlayerOpening() MediaState
- func (this *Event) MediaPlayerPaused() MediaState
- func (this *Event) MediaPlayerPlaying() MediaState
- func (this *Event) MediaPlayerPositionChanged() float32
- func (this *Event) MediaPlayerSeekableChanged() bool
- func (this *Event) MediaPlayerSnapshotTaken() string
- func (this *Event) MediaPlayerStopped() MediaState
- func (this *Event) MediaPlayerTimeChanged() int64
- func (this *Event) MediaPlayerTitleChanged() bool
- func (this *Event) MediaStateChanged() MediaState
- func (this *Event) MediaSubItemAdded() *Media
- func (this *Event) VlmMediaAdded() (string, string)
- func (this *Event) VlmMediaChanged() (string, string)
- func (this *Event) VlmMediaInstanceStarted() (string, string)
- func (this *Event) VlmMediaInstanceStatusEnd() (string, string)
- func (this *Event) VlmMediaInstanceStatusError() (string, string)
- func (this *Event) VlmMediaInstanceStatusInitAdded() (string, string)
- func (this *Event) VlmMediaInstanceStatusOpening() (string, string)
- func (this *Event) VlmMediaInstanceStatusPause() (string, string)
- func (this *Event) VlmMediaInstanceStatusPlaying() (string, string)
- func (this *Event) VlmMediaInstanceStopped() (string, string)
- func (this *Event) VlmMediaRemoved() (string, string)
- type EventHandler
- type EventManager
- type EventType
- type Instance
- func (this *Instance) Discoverer(name string) (*Discoverer, error)
- func (this *Instance) NewLibrary() (*Library, error)
- func (this *Instance) NewList() (*MediaList, error)
- func (this *Instance) NewListPlayer() (*ListPlayer, error)
- func (this *Instance) NewPlayer() (*Player, error)
- func (this *Instance) OpenMediaFd(fd int) (*Media, error)
- func (this *Instance) OpenMediaFile(path string) (*Media, error)
- func (this *Instance) OpenMediaNode(name string) (*Media, error)
- func (this *Instance) OpenMediaUri(uri string) (*Media, error)
- func (this *Instance) Release() (err error)
- func (this *Instance) Retain() (err error)
- func (this *Instance) SetName(appname, httpname string) (err error)
- func (this *Instance) StartUI(name string) (err error)
- func (this *Instance) VlmAddBroadcast(name, input, output string, options []string, enabled, loop bool) error
- func (this *Instance) VlmAddInput(name, input string) error
- func (this *Instance) VlmAddVOD(name, input, output, mux string, options []string, enabled bool) error
- func (this *Instance) VlmChangeMedia(name, input, output string, options []string, enabled, loop bool) error
- func (this *Instance) VlmDelete(name string) error
- func (this *Instance) VlmEvents() (*EventManager, error)
- func (this *Instance) VlmLength(name string, id int) (int, error)
- func (this *Instance) VlmMediaInfo(name string) (s string, err error)
- func (this *Instance) VlmPause(name string) error
- func (this *Instance) VlmPlay(name string) error
- func (this *Instance) VlmPosition(name string, id int) (float32, error)
- func (this *Instance) VlmRate(name string, id int) (int, error)
- func (this *Instance) VlmRelease() error
- func (this *Instance) VlmSeek(name string, percentage float32) error
- func (this *Instance) VlmSetEnabled(name string, toggle bool) error
- func (this *Instance) VlmSetInput(name, input string) error
- func (this *Instance) VlmSetLoop(name string, toggle bool) error
- func (this *Instance) VlmSetMux(name, mux string) error
- func (this *Instance) VlmSetOutput(name, output string) error
- func (this *Instance) VlmStop(name string) error
- func (this *Instance) VlmTime(name string, id int) (int, error)
- func (this *Instance) Wait() error
- type Library
- type ListPlayer
- func (this *ListPlayer) Events() (*EventManager, error)
- func (this *ListPlayer) IsPlaying() (bool, error)
- func (this *ListPlayer) Next() error
- func (this *ListPlayer) Pause() error
- func (this *ListPlayer) Play() error
- func (this *ListPlayer) PlayAt(pos int) error
- func (this *ListPlayer) PlayItem(m *Media) error
- func (this *ListPlayer) Prev() error
- func (this *ListPlayer) Release() (err error)
- func (this *ListPlayer) Replace(p *Player) error
- func (this *ListPlayer) Set(l *MediaList) error
- func (this *ListPlayer) SetMode(pm PlaybackMode) error
- func (this *ListPlayer) State() (MediaState, error)
- func (this *ListPlayer) Stop() error
- type LockHandler
- type LogPriority
- type LogoOption
- type MarqueeOption
- type Media
- func (this *Media) AddOption(options string) error
- func (this *Media) AddOptionFlag(options string, flags uint32) error
- func (this *Media) Duplicate() (*Media, error)
- func (this *Media) Duration() int64
- func (this *Media) Events() (*EventManager, error)
- func (this *Media) IsParsed() bool
- func (this *Media) Meta(mp MetaProperty) (s string)
- func (this *Media) Mrl() (s string)
- func (this *Media) NewPlayer() (*Player, error)
- func (this *Media) Parse()
- func (this *Media) ParseAsync()
- func (this *Media) Release() (err error)
- func (this *Media) Retain() (err error)
- func (this *Media) SaveMeta() (err error)
- func (this *Media) SetMeta(mp MetaProperty, v string)
- func (this *Media) SetUserData(v interface{})
- func (this *Media) State() MediaState
- func (this *Media) Stats() (*Stats, error)
- func (this *Media) SubItems() (*MediaList, error)
- func (this *Media) TrackInfo() ([]*TrackInfo, error)
- func (this *Media) UserData() interface{}
- type MediaList
- func (this *MediaList) Add(m *Media) error
- func (this *MediaList) At(pos int) (*Media, error)
- func (this *MediaList) Count() (int, error)
- func (this *MediaList) Events() (*EventManager, error)
- func (this *MediaList) Get() (*Media, error)
- func (this *MediaList) Index(m *Media) (int, error)
- func (this *MediaList) Insert(m *Media, pos int) error
- func (this *MediaList) IsReadOnly() (bool, error)
- func (this *MediaList) Lock() error
- func (this *MediaList) Release() error
- func (this *MediaList) Remove(pos int) error
- func (this *MediaList) Retain() error
- func (this *MediaList) Set(m *Media) error
- func (this *MediaList) Unlock() error
- type MediaOption
- type MediaState
- type MetaProperty
- type PlaybackMode
- type Player
- func (this *Player) AGL() (drawable uint32, err error)
- func (this *Player) AdjustOption(option AdjustOption) (int, error)
- func (this *Player) AdjustOptionFloat(option AdjustOption) (float32, error)
- func (this *Player) Aspect() (s string, err error)
- func (this *Player) AudioChannel() (int, error)
- func (this *Player) AudioDelay() (int64, error)
- func (this *Player) AudioDescription() (TrackDescriptionList, error)
- func (this *Player) AudioDeviceCount(output string) (int, error)
- func (this *Player) AudioDeviceId(output string, device int) (s string, err error)
- func (this *Player) AudioDeviceName(output string, device int) (s string, err error)
- func (this *Player) AudioDeviceType() (AudioDevice, error)
- func (this *Player) AudioOutput() (AudioOutputList, error)
- func (this *Player) AudioTrack() (int, error)
- func (this *Player) AudioTrackCount() (int, error)
- func (this *Player) CanPause() (bool, error)
- func (this *Player) CanSeek() (bool, error)
- func (this *Player) Chapter() (int, error)
- func (this *Player) ChapterCount() (int, error)
- func (this *Player) ChapterDescription(title int) (TrackDescriptionList, error)
- func (this *Player) CropGeometry() (s string, err error)
- func (this *Player) Cursor(vidnum uint) (cx, cy int, err error)
- func (this *Player) Events() (*EventManager, error)
- func (this *Player) Fps() (float32, error)
- func (this *Player) Fullscreen() (bool, error)
- func (this *Player) Hwnd() (drawable uintptr, err error)
- func (this *Player) IsMute() (bool, error)
- func (this *Player) IsPlaying() bool
- func (this *Player) Length() (int64, error)
- func (this *Player) LogoOption(option LogoOption) (int, error)
- func (this *Player) MarqueeOption(option MarqueeOption) (int, error)
- func (this *Player) MarqueeOptionString(option MarqueeOption) (s string, err error)
- func (this *Player) Media() (*Media, error)
- func (this *Player) NSObject() (drawable uintptr, err error)
- func (this *Player) NextChapter() (err error)
- func (this *Player) NextFrame() error
- func (this *Player) OutputCount() (int, error)
- func (this *Player) Pause() (err error)
- func (this *Player) Play() (err error)
- func (this *Player) Position() (float32, error)
- func (this *Player) PreviousChapter() (err error)
- func (this *Player) Rate() (float32, error)
- func (this *Player) Release() (err error)
- func (this *Player) Retain() (err error)
- func (this *Player) Scale() (float32, error)
- func (this *Player) SetAGL(drawable uint32) (err error)
- func (this *Player) SetAdjustOption(option AdjustOption, v int) error
- func (this *Player) SetAdjustOptionFloat(option AdjustOption, v float32) error
- func (this *Player) SetAspect(v string) error
- func (this *Player) SetAudioChannel(channel int) (err error)
- func (this *Player) SetAudioDelay(delay int64) (err error)
- func (this *Player) SetAudioDevice(output, deviceid string) (err error)
- func (this *Player) SetAudioDeviceType(ad AudioDevice) error
- func (this *Player) SetAudioOutput(output string) (err error)
- func (this *Player) SetAudioTrack(track int) (err error)
- func (this *Player) SetCallbacks(lh LockHandler, uh UnlockHandler, dh DisplayHandler, userdata interface{}) (err error)
- func (this *Player) SetChapter(v int)
- func (this *Player) SetCropGeometry(s string) (err error)
- func (this *Player) SetDeinterlace(f string) (err error)
- func (this *Player) SetFormat(chroma string, width, height, pitch uint) error
- func (this *Player) SetFullscreen(toggle bool) error
- func (this *Player) SetHwnd(drawable uintptr) (err error)
- func (this *Player) SetKeyInput(toggle bool) error
- func (this *Player) SetLogoOption(option MarqueeOption, v int) error
- func (this *Player) SetLogoOptionString(option LogoOption, s string) error
- func (this *Player) SetMarqueeOption(option MarqueeOption, v int) error
- func (this *Player) SetMarqueeOptionString(option MarqueeOption, s string) error
- func (this *Player) SetMedia(m *Media) error
- func (this *Player) SetMouseInput(toggle bool) error
- func (this *Player) SetMute(toggle bool) error
- func (this *Player) SetNSObject(drawable uintptr) (err error)
- func (this *Player) SetPosition(v float32)
- func (this *Player) SetRate(v float32) error
- func (this *Player) SetScale(v float32) error
- func (this *Player) SetSubtitle(s int) (err error)
- func (this *Player) SetSubtitleFile(path string) (err error)
- func (this *Player) SetTeletext(page int) error
- func (this *Player) SetTime(v int64)
- func (this *Player) SetTitle(v int)
- func (this *Player) SetVideoTrack(track int) (err error)
- func (this *Player) SetVolume(v int) error
- func (this *Player) SetXWindow(drawable uint32) (err error)
- func (this *Player) Size(vidnum uint) (width, height uint, err error)
- func (this *Player) State() (MediaState, error)
- func (this *Player) Stop() (err error)
- func (this *Player) SubTile() (int, error)
- func (this *Player) SubTileCount() (int, error)
- func (this *Player) SubTileDescription() (TrackDescriptionList, error)
- func (this *Player) TakeSnapshot(path string, vidnum, width, height uint) (err error)
- func (this *Player) Teletext() (int, error)
- func (this *Player) Time() (int64, error)
- func (this *Player) Title() (int, error)
- func (this *Player) TitleChapterCount(title int) (int, error)
- func (this *Player) TitleCount(title int) (int, error)
- func (this *Player) ToggleFullscreen() error
- func (this *Player) ToggleMute() error
- func (this *Player) TogglePause(pause bool) (err error)
- func (this *Player) ToggleTeletext() error
- func (this *Player) VideoDescription() (TrackDescriptionList, error)
- func (this *Player) VideoTrack() (int, error)
- func (this *Player) VideoTrackCount() (int, error)
- func (this *Player) Volume() (int, error)
- func (this *Player) WillPlay() bool
- func (this *Player) XWindow() (drawable uint32, err error)
- type Rect
- type Stats
- func (this *Stats) DecodedAudio() int
- func (this *Stats) DecodedVideo() int
- func (this *Stats) DemuxBitRate() float32
- func (this *Stats) DemuxCorrupted() int
- func (this *Stats) DemuxDiscontinuity() int
- func (this *Stats) DemuxReadBytes() int
- func (this *Stats) DisplayedPictures() int
- func (this *Stats) InputBitRate() float32
- func (this *Stats) LostAudioBuffers() int
- func (this *Stats) LostPictures() int
- func (this *Stats) PlayedAudioBuffers() int
- func (this *Stats) ReadBytes() int
- func (this *Stats) SendBitRate() float32
- func (this *Stats) SentBytes() int
- func (this *Stats) SentPackets() int
- type TrackDescription
- type TrackDescriptionList
- type TrackInfo
- type TrackType
- type UnlockHandler
Constants ¶
const ( VersionMajor = 1 VersionMinor = 1 VersionRevision = 9 VersionExtra = 0 // Version as a single integer. Practical for version comparison. Version = (VersionMajor << 24) | (VersionMinor << 16) | (VersionRevision << 8) | VersionExtra )
libVLC version numbers.
Variables ¶
This section is empty.
Functions ¶
func ClearError ¶
func ClearError()
Clears the LibVLC error status for the current thread. This is optional. By default, the error status is automatically overriden when a new error occurs, and destroyed when the thread exits.
func VersionString ¶
func VersionString() string
Version returns the libVLC version as a human-readable string.
Types ¶
type AdjustOption ¶
type AdjustOption uint8
const ( AOEnable AdjustOption = iota AOContrast AOBrightness AOHue AOSaturation AOGamma )
type AudioChannel ¶
type AudioChannel int8
const ( ACError AudioChannel = -1 ACStereo AudioChannel = 1 ACRStereo AudioChannel = 2 ACLeft AudioChannel = 3 ACRight AudioChannel = 4 ACDolbys AudioChannel = 5 )
type AudioDevice ¶
type AudioDevice int8
const ( ADError AudioDevice = -1 ADMono AudioDevice = 1 ADStereo AudioDevice = 2 AD2F2R AudioDevice = 4 AD3F2R AudioDevice = 5 AD5_1 AudioDevice = 6 AD6_1 AudioDevice = 7 AD7_1 AudioDevice = 8 ADSPDIF AudioDevice = 10 )
type AudioOutput ¶
type AudioOutput struct {
// contains filtered or unexported fields
}
Description for audio output.
func (*AudioOutput) Description ¶
func (this *AudioOutput) Description() string
Description returns the track description.
func (*AudioOutput) Release ¶
func (this *AudioOutput) Release()
type AudioOutputList ¶
type AudioOutputList []*AudioOutput
List of track descriptions.
func (*AudioOutputList) Release ¶
func (this *AudioOutputList) Release()
type Discoverer ¶
type Discoverer struct {
// contains filtered or unexported fields
}
Medis discovery service.
func (*Discoverer) Events ¶
func (this *Discoverer) Events() (*EventManager, error)
Events returns an event manager for this instance. Note: This method does not increment the media reference count.
func (*Discoverer) IsRunning ¶
func (this *Discoverer) IsRunning() (bool, error)
IsRunning returns true if the discovery service is currently running.
func (*Discoverer) LocalizedName ¶
func (this *Discoverer) LocalizedName() (s string, err error)
LocalizedName return the localzied discovery service name.
func (*Discoverer) MediaList ¶
func (this *Discoverer) MediaList() (m *MediaList, err error)
MediaList returns a list of media items.
type DisplayHandler ¶
type DisplayHandler func(picture uintptr, userdata interface{})
type Event ¶
type Event struct { Type EventType // contains filtered or unexported fields }
Generic event type. Use a switch on Event.Type to determine which method to call for its data. The method names are the same as the event type. It's a bit of an odd way to handle this, but since event data comes in the form of a C union, there is some binary magic that has to be performed based on the event type.
func (*Event) MediaDiscovererEnded ¶
func (this *Event) MediaDiscovererEnded() *Discoverer
func (*Event) MediaDiscovererStarted ¶
func (this *Event) MediaDiscovererStarted() *Discoverer
func (*Event) MediaDurationChanged ¶
func (*Event) MediaFreed ¶
func (*Event) MediaListItemAdded ¶
func (*Event) MediaListItemDeleted ¶
func (*Event) MediaListPlayerNextItemSet ¶
func (*Event) MediaListPlayerPlayed ¶
func (this *Event) MediaListPlayerPlayed() MediaState
func (*Event) MediaListPlayerStopped ¶
func (this *Event) MediaListPlayerStopped() MediaState
func (*Event) MediaListViewItemAdded ¶
func (*Event) MediaListViewItemDeleted ¶
func (*Event) MediaListViewWillAddItem ¶
func (*Event) MediaListViewWillDeleteItem ¶
func (*Event) MediaListWillAddItem ¶
func (*Event) MediaListWillDeleteItem ¶
func (*Event) MediaMetaChanged ¶
func (this *Event) MediaMetaChanged() MetaProperty
func (*Event) MediaParsedChanged ¶
func (*Event) MediaPlayerBackward ¶
func (this *Event) MediaPlayerBackward() MediaState
func (*Event) MediaPlayerBuffering ¶
func (this *Event) MediaPlayerBuffering() MediaState
func (*Event) MediaPlayerEncounteredError ¶
func (this *Event) MediaPlayerEncounteredError() MediaState
func (*Event) MediaPlayerEndReached ¶
func (this *Event) MediaPlayerEndReached() MediaState
func (*Event) MediaPlayerForward ¶
func (this *Event) MediaPlayerForward() MediaState
func (*Event) MediaPlayerLengthChanged ¶
func (*Event) MediaPlayerMediaChanged ¶
func (*Event) MediaPlayerNothingSpecial ¶
func (this *Event) MediaPlayerNothingSpecial() MediaState
func (*Event) MediaPlayerOpening ¶
func (this *Event) MediaPlayerOpening() MediaState
func (*Event) MediaPlayerPaused ¶
func (this *Event) MediaPlayerPaused() MediaState
func (*Event) MediaPlayerPlaying ¶
func (this *Event) MediaPlayerPlaying() MediaState
func (*Event) MediaPlayerPositionChanged ¶
func (*Event) MediaPlayerSeekableChanged ¶
func (*Event) MediaPlayerSnapshotTaken ¶
func (*Event) MediaPlayerStopped ¶
func (this *Event) MediaPlayerStopped() MediaState
func (*Event) MediaPlayerTimeChanged ¶
func (*Event) MediaPlayerTitleChanged ¶
func (*Event) MediaStateChanged ¶
func (this *Event) MediaStateChanged() MediaState
func (*Event) MediaSubItemAdded ¶
func (*Event) VlmMediaAdded ¶
func (*Event) VlmMediaChanged ¶
func (*Event) VlmMediaInstanceStarted ¶
func (*Event) VlmMediaInstanceStatusEnd ¶
func (*Event) VlmMediaInstanceStatusError ¶
func (*Event) VlmMediaInstanceStatusInitAdded ¶
func (*Event) VlmMediaInstanceStatusOpening ¶
func (*Event) VlmMediaInstanceStatusPause ¶
func (*Event) VlmMediaInstanceStatusPlaying ¶
func (*Event) VlmMediaInstanceStopped ¶
func (*Event) VlmMediaRemoved ¶
type EventHandler ¶
type EventHandler func(evt *Event, userdata interface{})
Event callback handler.
type EventManager ¶
type EventManager struct {
// contains filtered or unexported fields
}
A libvlc instance has an event manager which can be used to hook event callbacks,
func NewEventManager ¶
func NewEventManager(p *C.libvlc_event_manager_t) *EventManager
func (*EventManager) Attach ¶
func (this *EventManager) Attach(et EventType, cb EventHandler, userdata interface{}) (id int, err error)
Attach registers the given event handler and returns a unique id we can use to detach the event at a later point.
func (*EventManager) Detach ¶
func (this *EventManager) Detach(id int) (err error)
Detach unregisters the given event id.
type EventType ¶
type EventType int
const ( MediaPlayerMediaChanged EventType = 0x100 + iota MediaPlayerNothingSpecial MediaPlayerOpening MediaPlayerBuffering MediaPlayerPlaying MediaPlayerPaused MediaPlayerStopped MediaPlayerForward MediaPlayerBackward MediaPlayerEndReached MediaPlayerEncounteredError MediaPlayerTimeChanged MediaPlayerPositionChanged MediaPlayerSeekableChanged MediaPlayerPausableChanged MediaPlayerTitleChanged MediaPlayerSnapshotTaken MediaPlayerLengthChanged )
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
A single libvlc instance.
func New ¶
New creates and initializes a new VLC instance with the given parameters. Returns nil and a possible error if no instance could be created.
func (*Instance) Discoverer ¶
func (this *Instance) Discoverer(name string) (*Discoverer, error)
Discoverer creates a new discover media service by name.
func (*Instance) NewLibrary ¶
NewLibrary creates an empty media library.
func (*Instance) NewListPlayer ¶
func (this *Instance) NewListPlayer() (*ListPlayer, error)
NewListPlayer creates an empty media list player object.
func (*Instance) OpenMediaFd ¶
OpenMediaFd creates a media instance for an open file descriptor. The file descriptor shall be open for reading (or reading and writing).
Regular file descriptors, pipe read descriptors and character device descriptors (including TTYs) are supported on all platforms. Block device descriptors are supported where available. Directory descriptors are supported on systems that provide fdopendir(). Sockets are supported on all platforms where they are file descriptors, i.e. all except Windows.
Note: This library will /not/ automatically close the file descriptor under any circumstance. Nevertheless, a file descriptor can usually only be rendered once in a media player. To render it a second time, the file descriptor should probably be rewound to the beginning with lseek().
func (*Instance) OpenMediaFile ¶
OpenMediaFile loads a media instance from the given filesystem path.
func (*Instance) OpenMediaNode ¶
OpenMediaNode creates a media instance as an empty node with a given name.
func (*Instance) OpenMediaUri ¶
OpenMediaUri loads a media instance from the given uri.
func (*Instance) Release ¶
Release decreases the reference count of the instance and destroys it when it reaches zero.
func (*Instance) Retain ¶
Retain increments the reference count of the Instance. The initial reference count is 1 after vlc.New() returns.
func (*Instance) SetName ¶
SetName sets the human-readable application name (e.g. "FooBar player 1.2.3") and user-agent name (e.g. "FooBar/1.2.3 Python/2.6.0"). LibVLC passes this as the user agent string when a protocol requires it.
func (*Instance) StartUI ¶
StartUI tries to start a user interface for the Instance. Specify an empty name to use the default.
func (*Instance) VlmAddBroadcast ¶
func (this *Instance) VlmAddBroadcast(name, input, output string, options []string, enabled, loop bool) error
VlmAddBroadcast adds a broadcast with given input.
name: The name of the new broadcast. input: The input MRL. output: The output MRL (the parameter to the "sout" variable). options: Additional options. enabled: Enable the new broadcast? loop: Should this broadcast be played in loop?
func (*Instance) VlmAddInput ¶
VlmAddInput adds an input MRL for the given media (VOD or broadcast).
func (*Instance) VlmAddVOD ¶
func (this *Instance) VlmAddVOD(name, input, output, mux string, options []string, enabled bool) error
VlmAddVOD adds a VOD with given input.
name: The name of the new broadcast. input: The input MRL. options: Additional options. mux: The muxer of the vod media. enabled: Enable the new broadcast?
func (*Instance) VlmChangeMedia ¶
func (this *Instance) VlmChangeMedia(name, input, output string, options []string, enabled, loop bool) error
VlmChangeMedia edits the parameters of a media. This will delete all existing inputs and add the specified one.
name: The name of the new broadcast. input: The input MRL. output: The output MRL (the parameter to the "sout" variable). options: Additional options. enabled: Enable the new broadcast? loop: Should this broadcast be played in loop?
func (*Instance) VlmEvents ¶
func (this *Instance) VlmEvents() (*EventManager, error)
VlmEvents returns an event manager for a VLM instance.
func (*Instance) VlmMediaInfo ¶
VlmMediaInfo returns information about the named media as a JSON string.
Note: This function is mainly intended for debugging use,
func (*Instance) VlmPosition ¶
VlmPosition returns the instance position by name or instance id.
func (*Instance) VlmRelease ¶
VlmRelease releases the vlm instance associated with this instance.
func (*Instance) VlmSetEnabled ¶
VlmSetEnabled enables or disables the given media (VOD or broadcast).
func (*Instance) VlmSetInput ¶
VlmSetInput sets the input MRL for the given media (VOD or broadcast). This will delete all existing inputs and add the specified one.
func (*Instance) VlmSetLoop ¶
VlmSetLoop enables or disables the given media's loop state (VOD or broadcast).
func (*Instance) VlmSetOutput ¶
VlmSetOutput sets the output for the given media (VOD or broadcast).
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
A media library
type ListPlayer ¶
type ListPlayer struct {
// contains filtered or unexported fields
}
This player is meant for playlist playback. This is basically a wrapper for vlc.Player that takes care of playlist rotation.
func (*ListPlayer) Events ¶
func (this *ListPlayer) Events() (*EventManager, error)
Events returns an Eventmanager for this player.
func (*ListPlayer) IsPlaying ¶
func (this *ListPlayer) IsPlaying() (bool, error)
IsPlaying returns true if the player is currently playing.
func (*ListPlayer) Next ¶
func (this *ListPlayer) Next() error
Next plays the next item in the list if applicable.
func (*ListPlayer) Play ¶
func (this *ListPlayer) Play() error
Play plays the entries in the media list.
func (*ListPlayer) PlayAt ¶
func (this *ListPlayer) PlayAt(pos int) error
PlayAt plays the entry at the given list index.
func (*ListPlayer) PlayItem ¶
func (this *ListPlayer) PlayItem(m *Media) error
PlayItem plays the given entry.
Note: The supplied Media must be part of this list.
func (*ListPlayer) Prev ¶
func (this *ListPlayer) Prev() error
Prev plays the previous item in the list if applicable.
func (*ListPlayer) Release ¶
func (this *ListPlayer) Release() (err error)
Release decreases the reference count of the instance and destroys it when it reaches zero.
func (*ListPlayer) Replace ¶
func (this *ListPlayer) Replace(p *Player) error
Replace replaces the Player instance in this listplayer with a new one.
func (*ListPlayer) Set ¶
func (this *ListPlayer) Set(l *MediaList) error
Set sets the MediaList associated with this player.
func (*ListPlayer) SetMode ¶
func (this *ListPlayer) SetMode(pm PlaybackMode) error
SetMode sets the current playback mode. Any of: PMDefault, PMLoop or PMRepeat.
func (*ListPlayer) State ¶
func (this *ListPlayer) State() (MediaState, error)
State returns the current media state.
type LockHandler ¶
Whenever a new video frame needs to be decoded, the lock callback is invoked. Depending on the video chroma, one or three pixel planes of adequate dimensions must be returned. Those planes must be aligned on 32-bytes boundaries.
void* (*lock) (void** plane, void* userdata)
type LogoOption ¶
type LogoOption uint8
const ( LOEnable LogoOption = iota LOFile LOX LOY LODelay LORepeat LOOpacity LOPosition )
type MarqueeOption ¶
type MarqueeOption uint8
const ( MOEnable MarqueeOption = iota MOText MOColor MOOpacity MOPosition MORefresh MOSize MOTimeout MOX MOY )
type Media ¶
type Media struct {
// contains filtered or unexported fields
}
func (*Media) AddOption ¶
Add an option to the media.
This option will be used to determine how the media player will read the media. This allows us to use VLC's advanced reading/streaming options on a per-media basis.
The options are detailed in vlc --full-help, for instance "--sout-all"
func (*Media) AddOptionFlag ¶
Add an option to the media with configurable flags.
This option will be used to determine how the media player will read the media. This allows us to use VLC's advanced reading/streaming options on a per-media basis.
The options are detailed in vlc --full-help, for instance "--sout-all"
func (*Media) Duration ¶
Duration returns the duration in milliseconds for the current media instance.
func (*Media) Events ¶
func (this *Media) Events() (*EventManager, error)
Events returns an event manager for this media instance. Note: This method does not increment the media reference count.
func (*Media) Meta ¶
func (this *Media) Meta(mp MetaProperty) (s string)
Meta reads the specified metadata property of the media.
If the media has not yet been parsed this will return an empty string.
This method automatically calls Media.ParseAsync(), so after calling it you may receive a MediaMetaChanged event. If you prefer a synchronous version, ensure that you call Media.Parse() before Media.Meta().
func (*Media) NewPlayer ¶
NewPlayer a media player from this media instance. After creating the player, you can destroy this Media instance, unless you really need it for something. It is not necessary to perform actual playback.
func (*Media) Parse ¶
func (this *Media) Parse()
Parse the current media source.
This fetches (local) meta data and track information. The method is synchronous version of Media.ParseAsync().
func (*Media) ParseAsync ¶
func (this *Media) ParseAsync()
Parse the current media source.
This fetches (local) meta data and track information. The method is the asynchronous version of Media.Parse()
To determine when this routine finishes, you can listen for a MediaParsedChanged event. However if the media was already parsed you will not receive this event.
func (*Media) Release ¶
Release decreases the reference count of this Media instance and destroys it when it reaches zero. It will send out a MediaFreed event to all listeners. If the media descriptor object has been released it should not be used again.
func (*Media) SetMeta ¶
func (this *Media) SetMeta(mp MetaProperty, v string)
SetMeta sets the metadata for this media instance. Note: This method does not save the metadata. Call Media.SaveMeta() for this purpose.
func (*Media) SetUserData ¶
func (this *Media) SetUserData(v interface{})
SetUserData sets the media descriptor's user_data. user_data is specialized data accessed by the host application, VLC.framework uses it as a pointer to a native object that references a libvlc_media_t pointer.
TODO(jimt): I have no idea what this comment means. Presumably its a roundabout way of saying that the data specified in here will survive roundtrips through event callback handlers. So you can pass it anything you need.
func (*Media) SubItems ¶
SubItems returns subitems of this media instance. This will increment the reference count of this media instance. Use MediaList.Release() to decrement the reference count.
func (*Media) TrackInfo ¶
TrackInfo yields the media descriptor's elementary stream descriptions.
Note: You need to play the media _one_ time with --sout="#description" Not doing this will result in an empty array, and doing it more than once will duplicate the entries in the array each time. Something like this:
player, _ := media.NewPlayer() media.AddOption("sout=#description") player.Play() // ... wait until playing player.Release()
This is very likely to change in next release, and will be done at the parsing phase instead.
func (*Media) UserData ¶
func (this *Media) UserData() interface{}
UserData returns the media descriptor's user_data. user_data is specialized data accessed by the host application, VLC.framework uses it as a pointer to a native object that references a libvlc_media_t pointer.
TODO(jimt): I have no idea what this comment means. Presumably its a roundabout way of saying that the data specified in here will survive roundtrips through event callback handlers. So you can pass it anything you need.
type MediaList ¶
type MediaList struct {
// contains filtered or unexported fields
}
Maintains a list of Media items.
func (*MediaList) Add ¶
Add adds a media instance to this list.
Note: MediaList.Lock() SHOULD be held upon entering this function.
func (*MediaList) At ¶
At returns the media at the given list position. This action will increase the reference count on the media instance.
Note: MediaList.Lock() SHOULD be held upon entering this function.
func (*MediaList) Count ¶
Count returns the number if items in the list.
Note: MediaList.Lock() SHOULD be held upon entering this function.
func (*MediaList) Events ¶
func (this *MediaList) Events() (*EventManager, error)
Events returns an Eventmanager for this list.
func (*MediaList) Get ¶
Get returns a media instance from this list. This action will increase the reference count on the media instance.
Note: MediaList.Lock() should NOT be held upon entering this function.
func (*MediaList) Index ¶
Index returns the position of the given media in the list.
Note: MediaList.Lock() SHOULD be held upon entering this function.
func (*MediaList) Insert ¶
Insert adds a media instance to the list at the given position.
Note: MediaList.Lock() SHOULD be held upon entering this function.
func (*MediaList) IsReadOnly ¶
IsReadOnly returns true if this list is readonly for a user.
func (*MediaList) Release ¶
Release cleans up any memory used by this list and decrements the reference counter for the Media instance this came from.
func (*MediaList) Remove ¶
Remove removes a media instance at the given position from the list.
Note: MediaList.Lock() SHOULD be held upon entering this function.
type MediaOption ¶
type MediaOption uint16
const ( MOTrusted MediaOption = 0x2 MOUnique MediaOption = 0x100 )
type MediaState ¶
type MediaState uint8
const ( MSNothingSpecial MediaState = iota MSOpening MSBuffering MSPlaying MSPaused MSStopped MSEnded MSError )
type MetaProperty ¶
type MetaProperty uint8
const ( MPTitle MetaProperty = iota MPArtist MPGenre MPCopyright MPAlbum MPTrackNumber MPDescription MPRating MPDate MPSetting MPURL MPLanguage MPNowPlaying MPPublisher MPEncodedBy MPArtworkURL MPTrackID )
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) AGL ¶
AGL returns the agl handler where the media player should render its video output.
func (*Player) AdjustOption ¶
func (this *Player) AdjustOption(option AdjustOption) (int, error)
AdjustOption returns an integer adjustment option.
func (*Player) AdjustOptionFloat ¶
func (this *Player) AdjustOptionFloat(option AdjustOption) (float32, error)
AdjustOptionFloat returns a float adjustment option.
func (*Player) AudioChannel ¶
AudioChannel returns the current audio channel.
func (*Player) AudioDelay ¶
AudioDelay returns the current audio delay.
func (*Player) AudioDescription ¶
func (this *Player) AudioDescription() (TrackDescriptionList, error)
AudioDescription returns descriptions for the current audio tracks.
Note: make sure to call TrackDescriptionList.Release() when you are done with it.
func (*Player) AudioDeviceCount ¶
AudioDeviceCount returns the number of devices for audio output. These devices are hardware oriented like analog or digital output of sound cards.
func (*Player) AudioDeviceId ¶
AudioDeviceId returns the id of an audio device.
func (*Player) AudioDeviceName ¶
AudioDeviceName returns the long name of an audio device. If it is not available, the short name is given.
func (*Player) AudioDeviceType ¶
func (this *Player) AudioDeviceType() (AudioDevice, error)
AudioDeviceType return the current audio device type. Device type describes something like character of output sound - stereo sound, 2.1, 5.1 etc
func (*Player) AudioOutput ¶
func (this *Player) AudioOutput() (AudioOutputList, error)
AudioOutput returns a list of available audio outputs.
Note: Be sure to call AudioOutputList.Release() after you are done with the list.
func (*Player) AudioTrack ¶
AudioTrack returns the current audio track.
func (*Player) AudioTrackCount ¶
AudioTrackCount returns the number of available audio tracks.
func (*Player) CanPause ¶
CanPause returns whether or not pause/resume is allowed for the current media.
func (*Player) ChapterCount ¶
ChapterCount returns the number of available movie chapters.
func (*Player) ChapterDescription ¶
func (this *Player) ChapterDescription(title int) (TrackDescriptionList, error)
ChapterDescription returns descriptions of available chapters for a specific title.
Note: make sure to call TrackDescriptionList.Release() when you are done with it.
func (*Player) CropGeometry ¶
CropGeometry returns the current crop filter geometry.
func (*Player) Cursor ¶
Get the mouse pointer coordinates over a video. Coordinates are expressed in terms of the decoded video resolution, /not/ in terms of pixels on the screen/viewport (to get the latter, you can query your windowing system directly).
Either of the coordinates may be negative or larger than the corresponding dimension of the video, if the cursor is outside the rendering area.
Note: The coordinates may be out-of-date if the pointer is not located on the video rendering area. LibVLC does not track the pointer if it is outside of the video widget.
Note: LibVLC does not support multiple pointers (it does of course support multiple input devices sharing the same pointer) at the moment.
vidnum is the number of the target video. Most commonly starts at 0.
func (*Player) Events ¶
func (this *Player) Events() (*EventManager, error)
Events returns an event manager for this player.
func (*Player) Fullscreen ¶
Fullscreen returns wether or not we are currently in fullscreen mode.
func (*Player) Hwnd ¶
Hwnd returns the Windows API window handle (HWND) previously set with Player.SetHwnd(). The handle will be returned even if LibVLC is not currently outputting any video to it.
func (*Player) LogoOption ¶
func (this *Player) LogoOption(option LogoOption) (int, error)
LogoOption returns an integer logo option.
func (*Player) MarqueeOption ¶
func (this *Player) MarqueeOption(option MarqueeOption) (int, error)
MarqueeOption returns an integer marquee option value.
func (*Player) MarqueeOptionString ¶
func (this *Player) MarqueeOptionString(option MarqueeOption) (s string, err error)
MarqueeOptionString returns a string marquee option value.
func (*Player) NSObject ¶
NSObject returns the NSView handler previously set with Player.SetNSObject().
func (*Player) NextChapter ¶
NextChapter sets the next chapter if applicable.
func (*Player) OutputCount ¶
OutputCount returns the number of outputs the current media has.
func (*Player) PreviousChapter ¶
PreviousChapter sets the previous chapter if applicable.
func (*Player) Rate ¶
Rate returns the current movie playback rate. Note: Depending on the underlying media, the requested rate may be different from the real playback rate.
func (*Player) Release ¶
Release decreases the reference count of the instance and destroys it when it reaches zero.
func (*Player) Scale ¶
Scale returns the video scaling factor. That is the ratio of the number of pixels on screen to the number of pixels in the original decoded video in each dimension.
Note: Not all video outputs support scaling.
func (*Player) SetAGL ¶
SetAGL set the agl handler where the media player should render its video output.
func (*Player) SetAdjustOption ¶
func (this *Player) SetAdjustOption(option AdjustOption, v int) error
SetAdjustOption sets an integer adjustment option value. Options that take a different type value are ignored. Passing AOEnable as option value has the side effect of starting (arg !0) or stopping (arg 0) the logo filter.
func (*Player) SetAdjustOptionFloat ¶
func (this *Player) SetAdjustOptionFloat(option AdjustOption, v float32) error
SetAdjustOptionFloat sets a float adjustment option value. Options that take a different type value are ignored.
func (*Player) SetAudioChannel ¶
SetAudioChannel sets the current audio channel.
func (*Player) SetAudioDelay ¶
SetAudioDelay sets the current audio delay.
func (*Player) SetAudioDevice ¶
SetAudioDevice sets the current audio output device. Changes will be applied after stop and play.
func (*Player) SetAudioDeviceType ¶
func (this *Player) SetAudioDeviceType(ad AudioDevice) error
SetAudioDeviceType sets the current audio device type. Device type describes something like character of output sound - stereo sound, 2.1, 5.1 etc
func (*Player) SetAudioOutput ¶
SetAudioOutput sets the current audio output. Changes will be applied after stop and play.
func (*Player) SetAudioTrack ¶
SetAudioTrack sets the current audio track.
func (*Player) SetCallbacks ¶
func (this *Player) SetCallbacks(lh LockHandler, uh UnlockHandler, dh DisplayHandler, userdata interface{}) (err error)
SetCallbacks set callbacks and private data to render decoded video to a custom area in memory. Use libvlc_video_set_format() to configure the decoded format.
Whenever a new video frame needs to be decoded, the lock callback is invoked. Depending on the video chroma, one or three pixel planes of adequate dimensions must be returned. Those planes must be aligned on 32-bytes boundaries.
When the video frame is decoded, the unlock callback is invoked. The second parameter to the callback is the return value of the lock callback. The third parameter conveys the pixel planes for convenience.
When the video frame needs to be shown, as determined by the media playback clock, the display callback is invoked. The second parameter also conveys the return value from the lock callback.
func (*Player) SetChapter ¶
SetChapter sets the current movie chapter. This has no effect if playback is not enabled. This might not work depending on the underlying input format and protocol.
func (*Player) SetCropGeometry ¶
SetCropGeometry sets the current crop filter geometry. Specify an empty string to clear the filter.
func (*Player) SetDeinterlace ¶
SetDeinterlace sets the deinterlace filter. Supply an empty string to disable the filter.
func (*Player) SetFormat ¶
SetFormat specifies the decoded video chroma and dimensions. This only works in combination with Player.SetCallbacks().
The chroma parameter should be a four-character string identifying the chroma (e.g. "RV32" or "I420").
Width and height indicate the pixel dimensions and pitch is the line pitch in bytes.
func (*Player) SetFullscreen ¶
SetFullscreen switches from fullscreen to windowed mode or vice-versa. This applies only to non-embedded video outputs.
Note: With most window managers, only a top-level windows can be in full-screen mode. Hence, this function will not operate properly if Player.SetXWindow() was used to embed the video in a non-top-level window. In that case, the embedding window must be reparented to the root window /before/ fullscreen mode is enabled. You will want to reparent it back to its normal parent when disabling fullscreen.
func (*Player) SetHwnd ¶
SetHwnd sets a Win32/Win64 API window handle (HWND) where the media player should render its video output. If LibVLC was built without Win32/Win64 API output support, then this has no effects.
func (*Player) SetKeyInput ¶
SetKeyInput enables or disables key press events handling, according to the LibVLC hotkeys configuration. By default and for historical reasons, keyboard events are handled by the LibVLC video widget.
Note: On X11, there can be only one subscriber for key press and mouse click events per window. If your application has subscribed to those events for the X window ID of the video widget, then LibVLC will not be able to handle key presses and mouse clicks in any case.
Note: This function is only implemented for X11 and Win32 at the moment.
func (*Player) SetLogoOption ¶
func (this *Player) SetLogoOption(option MarqueeOption, v int) error
SetLogoOption sets an integer logo option value. Options that take a different type value are ignored. Passing LOEnable as option value has the side effect of starting (arg !0) or stopping (arg 0) the logo filter.
func (*Player) SetLogoOptionString ¶
func (this *Player) SetLogoOptionString(option LogoOption, s string) error
SetLogoOptionString sets a string logo option value.
func (*Player) SetMarqueeOption ¶
func (this *Player) SetMarqueeOption(option MarqueeOption, v int) error
SetMarqueeOption sets an integer marquee option value.
func (*Player) SetMarqueeOptionString ¶
func (this *Player) SetMarqueeOptionString(option MarqueeOption, s string) error
SetMarqueeOptionString sets a string marquee option value.
func (*Player) SetMedia ¶
SetMedia sets the new media to be used by this player. If existing media is loaded, it will be destroyed.
func (*Player) SetMouseInput ¶
SetMouseInput enables or disables mouse click events handling. By default, those events are handled. This is needed for DVD menus to work, as well as a few video filters such as "puzzle".
Note: On X11, there can be only one subscriber for key press and mouse click events per window. If your application has subscribed to those events for the X window ID of the video widget, then LibVLC will not be able to handle key presses and mouse clicks in any case.
Note: This function is only implemented for X11 and Win32 at the moment.
func (*Player) SetNSObject ¶
SetNSObject sets the NSView handler where the media player should render its video output.
Use the vout called "macosx".
The drawable is an NSObject that follow the VLCOpenGLVideoViewEmbedding protocol:
@protocol VLCOpenGLVideoViewEmbedding <NSObject> - (void)addVoutSubview:(NSView *)view; - (void)removeVoutSubview:(NSView *)view; @end
Or it can be an NSView object.
If you want to use it along with Qt4 see the QMacCocoaViewContainer. Then the following code should work:
NSView *video = [[NSView alloc] init]; QMacCocoaViewContainer *container = new QMacCocoaViewContainer(video, parent); libvlc_media_player_set_nsobject(mp, video); [video release];
You can find a live example in VLCVideoView in VLCKit.framework.
func (*Player) SetPosition ¶
SetPosition sets the movie position. This has no effect if playback is not enabled. This might not work depending on the underlying input format and protocol.
func (*Player) SetScale ¶
SetScale sets the video scaling factor. That is the ratio of the number of pixels on screen to the number of pixels in the original decoded video in each dimension. Zero is a special value; it will adjust the video to the output window/drawable (in windowed mode) or the entire screen.
Note: Not all video outputs support scaling.
func (*Player) SetSubtitle ¶
SetSubtitle sets the current subtitle track.
func (*Player) SetSubtitleFile ¶
SetSubtitle sets the current subtitle from a file.
func (*Player) SetTeletext ¶
SetTeletext sets a new teletext page to retrieve.
func (*Player) SetTime ¶
SetTime sets the movie time in milliseconds. This has no effect if no media is being played. Not all formats and protocols support this.
func (*Player) SetVideoTrack ¶
SetVideoTrack sets the current video track.
func (*Player) SetXWindow ¶
Set an X Window System drawable where the media player should render its video output. If LibVLC was built without X11 output support, this has no effects.
The specified identifier must correspond to an existing Input/Output class X11 window. Pixmaps are /not/ supported. The caller shall ensure that the X11 server is the same as the one the VLC instance has been configured with.
func (*Player) Size ¶
Size returns the pixel dimensions of a video. vidnum is the number of the target video. Most commonly starts at 0.
func (*Player) State ¶
func (this *Player) State() (MediaState, error)
State returns the current movie state.
func (*Player) SubTileCount ¶
SubTileCount returns the number of available subtitles.
func (*Player) SubTileDescription ¶
func (this *Player) SubTileDescription() (TrackDescriptionList, error)
SubTileDescription returns descriptions for the current subtitle track.
Note: make sure to call TrackDescriptionList.Release() when you are done with it.
func (*Player) TakeSnapshot ¶
TakeSnapshot takes a snapshot of the selected video output ans saves it to the specified file.
If width AND height are both 0, the original size is used. If width OR height is 0, the original aspect ratio is preserved.
Vidnum is the number of the video output (typically 0 for the first/only one)
func (*Player) TitleChapterCount ¶
TitleChapterCount returns the number of available movie chapters for the given title.
func (*Player) TitleCount ¶
TitleCount returns the number of available movie titles.
func (*Player) ToggleFullscreen ¶
ToggleFullscreen switches between fullscreen and windowed modes on non-embedded video outputs.
Note: The same limitations apply to this as to Player.SetFullscreen()
func (*Player) ToggleMute ¶
ToggleMute toggles the current mute status.
func (*Player) TogglePause ¶
TogglePause toggles between pause and resume. Has no effect if no media is loaded.
func (*Player) ToggleTeletext ¶
ToggleTeletext toggles transparent teletext status on video output.
func (*Player) VideoDescription ¶
func (this *Player) VideoDescription() (TrackDescriptionList, error)
VideoDescription returns descriptions for the current video tracks.
Note: make sure to call TrackDescriptionList.Release() when you are done with it.
func (*Player) VideoTrack ¶
VideoTrack returns the current video track.
func (*Player) VideoTrackCount ¶
VideoTrackCount returns the number of video tracks in the current media.
type Rect ¶
type Rect struct {
// contains filtered or unexported fields
}
Rectangle type for video geometry.
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
Supplies a set of statistics on playing media.
func (*Stats) DecodedAudio ¶
func (*Stats) DecodedVideo ¶
func (*Stats) DemuxBitRate ¶
func (*Stats) DemuxCorrupted ¶
func (*Stats) DemuxDiscontinuity ¶
func (*Stats) DemuxReadBytes ¶
func (*Stats) DisplayedPictures ¶
DisplayedPictures returns the amount of displayed pictures.
func (*Stats) InputBitRate ¶
InputBitRate returns the input transfer rate.
func (*Stats) LostAudioBuffers ¶
LostAudioBuffers returns the amount of lost audio buffers.
func (*Stats) LostPictures ¶
LostPictures returns the amount of lost pictures.
func (*Stats) PlayedAudioBuffers ¶
PlayedAudioBuffers returns the amount of played audio buffers.
func (*Stats) SendBitRate ¶
SendBitRate returns the transfer bitrate.
func (*Stats) SentPackets ¶
SentPackets returns the amount of packets sent.
type TrackDescription ¶
type TrackDescription struct {
// contains filtered or unexported fields
}
Description for video, audio tracks and subtitles.
func (*TrackDescription) Name ¶
func (this *TrackDescription) Name() string
Name returns the track name.
func (*TrackDescription) Release ¶
func (this *TrackDescription) Release()
Release releases memory for this instance.
type TrackDescriptionList ¶
type TrackDescriptionList []*TrackDescription
List of track descriptions.
func (*TrackDescriptionList) Release ¶
func (this *TrackDescriptionList) Release()
Release recursively releases memory for this list.
type TrackInfo ¶
type TrackInfo struct {
// contains filtered or unexported fields
}
Represents a single media track. Can be audio or video. Access Audio() or Video() depending on the value of Type.
type UnlockHandler ¶
type UnlockHandler func(picture, plane uintptr, userdata interface{})
When the video frame is decoded, the unlock callback is invoked. The second parameter to the callback is the return value of the lock callback. The third parameter conveys the pixel planes for convenience.
void (*unlock) (void* picture, void* const* plane, void* userdata)
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Direct port of http://wiki.videolan.org/LibVLC_Tutorial Run this program with -v, -vv or -vvv parameters for progressively more verbose debug output from libvlc.
|
Direct port of http://wiki.videolan.org/LibVLC_Tutorial Run this program with -v, -vv or -vvv parameters for progressively more verbose debug output from libvlc. |