Struct gstreamer_player::Player[]

pub struct Player(_, _);

Implements

gst::ObjectExt, glib::object::ObjectExt

Methods

impl Player
[src]

Retrieve the current value of audio-video-offset property

Returns

The current value of audio-video-offset in nanoseconds

Since 1.10

Retrieve the current value of the indicated type_.

type_

PlayerColorBalanceType

Returns

The current value of type_, between [0,1]. In case of error -1 is returned.

A Function to get current audio PlayerAudioInfo instance.

Returns

current audio track.

The caller should free it with gobject::ObjectExt::unref

A Function to get current subtitle PlayerSubtitleInfo instance.

Returns

current subtitle track.

The caller should free it with gobject::ObjectExt::unref

A Function to get current video PlayerVideoInfo instance.

Returns

current video track.

The caller should free it with gobject::ObjectExt::unref

Returns

Name of the currently enabled visualization. g_free after usage.

Retrieves the duration of the media stream that self represents.

Returns

the duration of the currently-playing media stream, in nanoseconds.

A Function to get the current media info PlayerMediaInfo instance.

Returns

media info instance.

The caller should free it with gobject::ObjectExt::unref

Retrieve the current value of the indicated type_.

Returns

The current value of type_, Default: 0x00000000 "none

Retrieve the current value of the indicated type_.

Returns

The current value of type_, Default: -1 "none"

Returns

true if the currently-playing stream is muted.

Returns

The internal playbin instance

Returns

the absolute position time, in nanoseconds, of the currently-playing stream.

Returns

current playback rate

current subtitle URI

Returns

URI of the current external subtitle. g_free after usage.

Gets the URI of the currently-playing stream.

Returns

a string containing the URI of the currently-playing stream. g_free after usage.

Get a snapshot of the currently selected video stream, if any. The format can be selected with format and optional configuration is possible with config Currently supported settings are:

  • width, height of type G_TYPE_INT
  • pixel-aspect-ratio of type GST_TYPE_FRACTION Except for GST_PLAYER_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1

format

output format of the video snapshot

config

Additional configuration

Returns

Current video snapshot sample or None on failure

Since 1.12

Returns the current volume level, as a percentage between 0 and 1.

Returns

the volume as percentage between 0 and 1.

Checks whether the self has color balance support available.

Returns

true if self has color balance support. Otherwise, false.

Pauses the current stream.

Request to play the loaded stream.

Seeks the currently-playing stream to the absolute position time in nanoseconds.

position

position to seek in nanoseconds

stream_index

stream index

Returns

true or false

Sets the audio track stream_idex.

Enable or disable the current audio track.

enabled

TRUE or FALSE

Sets audio-video-offset property by value of offset

Since 1.10

offset

gint64 in nanoseconds

Sets the current value of the indicated channel type_ to the passed value.

type_

PlayerColorBalanceType

value

The new value for the type_, ranged [0,1]

Sets the current value of the indicated mode type_ to the passed value.

flags

The new value for the type_

Sets the current value of the indicated mode type_ to the passed value.

mode

The new value for the type_

true if the currently-playing stream should be muted.

val

Mute state the should be set

Playback at specified rate

rate

playback rate

stream_index

stream index

Returns

true or false

Sets the subtitle strack stream_index.

Enable or disable the current subtitle track.

enabled

TRUE or FALSE

Sets the external subtitle URI. This should be combined with a call to gst_player_set_subtitle_track_enabled(self, TRUE) so the subtitles are actually rendered.

uri

subtitle URI

Sets the next URI to play.

uri

next URI to play.

stream_index

stream index

Returns

true or false

Sets the video track stream_index.

Enable or disable the current video track.

enabled

TRUE or FALSE

name

visualization element obtained from Player::visualizations_get()

Returns

true if the visualizations was set correctly. Otherwise, false.

Enable or disable the visualization.

enabled

TRUE or FALSE

Sets the volume level of the stream as a percentage between 0 and 1.

val

the new volume level, as a percentage between 0 and 1

Stops playing the current stream and resets to the first position in the stream.

Important traits for Vec<u8>

info

a PlayerMediaInfo

Returns

A glib::List of matching PlayerAudioInfo.

Important traits for Vec<u8>

info

a PlayerMediaInfo

Returns

A glib::List of matching PlayerSubtitleInfo.

Important traits for Vec<u8>

info

a PlayerMediaInfo

Returns

A glib::List of matching PlayerVideoInfo.

Important traits for Vec<u8>

Returns

a None terminated array containing all available visualizations. Use Player::visualizations_free after usage.

impl Player
[src]

Creates a new Player instance that uses signal_dispatcher to dispatch signals to some event loop system, or emits signals directly if NULL is passed. See PlayerGMainContextSignalDispatcher::new.

Video is going to be rendered by video_renderer, or if None is provided no special video set up will be done and some default handling will be performed.

video_renderer

GstPlayerVideoRenderer to use

signal_dispatcher

GstPlayerSignalDispatcher to use

Returns

a new Player instance

Trait Implementations

impl Clone for Player

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Player

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Player

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl StaticType for Player

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for Player

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Player

impl<T: IsA<Object>> PartialOrd<T> for Player

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Player

Formats the value using the given formatter. Read more

impl IsA<Object> for Player

impl IsA<Object> for Player

impl Send for Player
[src]

impl Sync for Player
[src]