Struct vlc::MediaPlayer[][src]

pub struct MediaPlayer { /* fields omitted */ }

A LibVLC media player plays one media (usually in a custom drawable).

Methods

impl MediaPlayer
[src]

Create an empty Media Player object

Set the media that will be used by the media_player. If any, previous md will be released.

Get the media used by the media_player.

Get the Event Manager from which the media player send event.

is_playing

Play

Pause or resume (no effect if there is no media)

Toggle pause (no effect if there is no media)

Stop (no effect if there is no media)

Set the NSView handler where the media player should render its video output.

Get the NSView handler previously set with set_nsobject().

Set an X Window System drawable where the media player should render its video output.

Get the X Window System window identifier previously set with set_xwindow().

Set 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.

Get the Windows API window handle (HWND) previously set with set_hwnd().

Get the current movie time (in ms).

Set the movie time (in ms). This has no effect if no media is being played. Not all formats and protocols support this.

Get movie position as percentage between 0.0 and 1.0.

Set movie position as percentage between 0.0 and 1.0. This has no effect if playback is not enabled. This might not work depending on the underlying input format and protocol.

Set movie chapter (if applicable).

Get movie chapter.

Get movie chapter count.

Is the player able to play.

Get title chapter count.

Set movie title.

Get movie title.

Get movie title count.

Set previous chapter (if applicable)

Set next chapter (if applicable)

Get the requested movie play rate.

Set movie play rate.

Get current movie state.

How many video outputs does this media player have?

Is this media player seekable?

Can this media player be paused?

Check if the current program is scrambled.

Display the next frame (if supported)

Navigate through DVD Menu.

Set if, and how, the video title will be shown when media is played.

Returns raw pointer

Trait Implementations

impl Drop for MediaPlayer
[src]

Executes the destructor for this type. Read more

impl MediaPlayerVideoEx for MediaPlayer
[src]

impl MediaPlayerAudioEx for MediaPlayer
[src]

Auto Trait Implementations

impl !Send for MediaPlayer

impl !Sync for MediaPlayer