Struct vlc::MediaPlayer [] [src]

pub struct MediaPlayer {
    pub ptr: *mut libvlc_media_player_t,
}

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

Fields

Methods

impl MediaPlayer
[src]

[src]

Create an empty Media Player object

[src]

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

[src]

Get the media used by the media_player.

[src]

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

[src]

is_playing

[src]

Play

[src]

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

[src]

Toggle pause (no effect if there is no media)

[src]

Stop (no effect if there is no media)

[src]

[src]

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

[src]

Get the NSView handler previously set with set_nsobject().

[src]

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

[src]

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

[src]

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.

[src]

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

[src]

Get the current movie time (in ms).

[src]

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

[src]

Get movie position as percentage between 0.0 and 1.0.

[src]

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.

[src]

Set movie chapter (if applicable).

[src]

Get movie chapter.

[src]

Get movie chapter count.

[src]

Is the player able to play.

[src]

Get title chapter count.

[src]

Set movie title.

[src]

Get movie title.

[src]

Get movie title count.

[src]

Set previous chapter (if applicable)

[src]

Set next chapter (if applicable)

[src]

Get the requested movie play rate.

[src]

Set movie play rate.

[src]

Get current movie state.

[src]

How many video outputs does this media player have?

[src]

Is this media player seekable?

[src]

Can this media player be paused?

[src]

Check if the current program is scrambled.

[src]

Display the next frame (if supported)

[src]

Navigate through DVD Menu.

[src]

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

Trait Implementations

impl Drop for MediaPlayer
[src]

[src]

Executes the destructor for this type. Read more

impl MediaPlayerVideoEx for MediaPlayer
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl MediaPlayerAudioEx for MediaPlayer
[src]

[src]

[src]

[src]

[src]

[src]

Auto Trait Implementations

impl !Send for MediaPlayer

impl !Sync for MediaPlayer