Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/totem/ drwxr-xr-x |
Viewing file: Select action/file-type:
Synopsis#include <bacon-video-widget.h> BaconVideoWidget; BaconVideoWidgetClass; enum BvwAspectRatio; enum BvwAudioOutType; enum BvwDVDEvent; enum BvwMetadataType; enum BvwVisualsQuality; enum BvwVideoProperty; enum BvwError; enum BvwUseType; GtkWidget * bacon_video_widget_new (int width, int height, BvwUseType type, GError **error); void bacon_video_widget_init_backend (int *argc, char ***argv); gboolean bacon_video_widget_open (BaconVideoWidget *bvw, const char *mrl, const char *subtitle_uri, GError **error); gboolean bacon_video_widget_play (BaconVideoWidget *bvw, GError **error); void bacon_video_widget_pause (BaconVideoWidget *bvw); gboolean bacon_video_widget_seek (BaconVideoWidget *bvw, double position, GError **error); gboolean bacon_video_widget_seek_time (BaconVideoWidget *bvw, gint64 time, GError **error); void bacon_video_widget_stop (BaconVideoWidget *bvw); void bacon_video_widget_close (BaconVideoWidget *bvw); gboolean bacon_video_widget_can_deinterlace (BaconVideoWidget *bvw); gboolean bacon_video_widget_can_direct_seek (BaconVideoWidget *bvw); gboolean bacon_video_widget_can_get_frames (BaconVideoWidget *bvw, GError **error); gboolean bacon_video_widget_can_set_volume (BaconVideoWidget *bvw); void bacon_video_widget_dvd_event (BaconVideoWidget *bvw, BvwDVDEvent type); gboolean bacon_video_widget_has_menus (BaconVideoWidget *bvw); BvwAspectRatio bacon_video_widget_get_aspect_ratio (BaconVideoWidget *bvw); void bacon_video_widget_set_aspect_ratio (BaconVideoWidget *bvw, BvwAspectRatio ratio); BvwAudioOutType bacon_video_widget_get_audio_out_type (BaconVideoWidget *bvw); gboolean bacon_video_widget_set_audio_out_type (BaconVideoWidget *bvw, BvwAudioOutType type); gboolean bacon_video_widget_get_auto_resize (BaconVideoWidget *bvw); void bacon_video_widget_set_auto_resize (BaconVideoWidget *bvw, gboolean auto_resize); char * bacon_video_widget_get_backend_name (BaconVideoWidget *bvw); int bacon_video_widget_get_connection_speed (BaconVideoWidget *bvw); void bacon_video_widget_set_connection_speed (BaconVideoWidget *bvw, int speed); GdkPixbuf * bacon_video_widget_get_current_frame (BaconVideoWidget *bvw); gint64 bacon_video_widget_get_current_time (BaconVideoWidget *bvw); gboolean bacon_video_widget_get_deinterlacing (BaconVideoWidget *bvw); void bacon_video_widget_set_deinterlacing (BaconVideoWidget *bvw, gboolean deinterlace); void bacon_video_widget_set_fullscreen (BaconVideoWidget *bvw, gboolean fullscreen); GList * bacon_video_widget_get_languages (BaconVideoWidget *bvw); int bacon_video_widget_get_language (BaconVideoWidget *bvw); void bacon_video_widget_set_language (BaconVideoWidget *bvw, int language); void bacon_video_widget_set_logo (BaconVideoWidget *bvw, const char *name); gboolean bacon_video_widget_get_logo_mode (BaconVideoWidget *bvw); void bacon_video_widget_set_logo_mode (BaconVideoWidget *bvw, gboolean logo_mode); void bacon_video_widget_get_metadata (BaconVideoWidget *bvw, BvwMetadataType type, GValue *value); gchar ** bacon_video_widget_get_mrls (BaconVideoWidget *bvw, TotemDiscMediaType type, const char *device, GError **error); GOptionGroup* bacon_video_widget_get_option_group (void); double bacon_video_widget_get_position (BaconVideoWidget *bvw); void bacon_video_widget_set_referrer (BaconVideoWidget *bvw, const char *referrer); void bacon_video_widget_set_scale_ratio (BaconVideoWidget *bvw, float ratio); gboolean bacon_video_widget_get_show_cursor (BaconVideoWidget *bvw); void bacon_video_widget_set_show_cursor (BaconVideoWidget *bvw, gboolean show_cursor); void bacon_video_widget_set_show_visuals (BaconVideoWidget *bvw, gboolean show_visuals); gint64 bacon_video_widget_get_stream_length (BaconVideoWidget *bvw); GList * bacon_video_widget_get_subtitles (BaconVideoWidget *bvw); int bacon_video_widget_get_subtitle (BaconVideoWidget *bvw); void bacon_video_widget_set_subtitle (BaconVideoWidget *bvw, int subtitle); void bacon_video_widget_set_subtitle_encoding (BaconVideoWidget *bvw, const char *encoding); void bacon_video_widget_set_subtitle_font (BaconVideoWidget *bvw, const char *font); void bacon_video_widget_set_user_agent (BaconVideoWidget *bvw, const char *user_agent); int bacon_video_widget_get_video_property (BaconVideoWidget *bvw, BvwVideoProperty type); void bacon_video_widget_set_video_property (BaconVideoWidget *bvw, BvwVideoProperty type, int value); GList * bacon_video_widget_get_visuals_list (BaconVideoWidget *bvw); gboolean bacon_video_widget_set_visuals (BaconVideoWidget *bvw, const char *name); void bacon_video_widget_set_visuals_quality (BaconVideoWidget *bvw, BvwVisualsQuality quality); double bacon_video_widget_get_volume (BaconVideoWidget *bvw); void bacon_video_widget_set_volume (BaconVideoWidget *bvw, double volume); double bacon_video_widget_get_zoom (BaconVideoWidget *bvw); void bacon_video_widget_set_zoom (BaconVideoWidget *bvw, double zoom); gboolean bacon_video_widget_has_next_track (BaconVideoWidget *bvw); gboolean bacon_video_widget_has_previous_track (BaconVideoWidget *bvw); gboolean bacon_video_widget_is_playing (BaconVideoWidget *bvw); gboolean bacon_video_widget_is_seekable (BaconVideoWidget *bvw); gboolean bacon_video_widget_step (BaconVideoWidget *bvw, GError **error); Object HierarchyGObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkEventBox +----BaconVideoWidget Properties"logo-mode" gboolean : Read / Write "playing" gboolean : Read "position" gdouble : Read "referrer" gchar* : Read / Write "seekable" gboolean : Read "show-cursor" gboolean : Read / Write "show-visuals" gboolean : Write "stream-length" gint64 : Read "user-agent" gchar* : Read / Write "volume" gdouble : Read / Write Signals"buffering" : Run Last "channels-change" : Run Last "eos" : Run Last "error" : Run Last "got-metadata" : Run Last "got-redirect" : Run Last "missing-plugins" : Run Last "tick" : Run Last DescriptionBaconVideoWidget is a widget to play audio or video streams, with support for visualisations for audio-only streams. It has a GStreamer backend, and abstracts away the differences to provide a simple interface to the functionality required by Totem. It handles all the low-level audio and video work for Totem (or passes the work off to the backend).
DetailsBaconVideoWidgettypedef struct _BaconVideoWidget BaconVideoWidget; All the fields in the BaconVideoWidget structure are private and should never be accessed directly.
BaconVideoWidgetClasstypedef struct { } BaconVideoWidgetClass; All the fields in the BaconVideoWidgetClass structure are private and should never be accessed directly.
enum BvwAspectRatiotypedef enum { BVW_RATIO_AUTO = 0, BVW_RATIO_SQUARE = 1, BVW_RATIO_FOURBYTHREE = 2, BVW_RATIO_ANAMORPHIC = 3, BVW_RATIO_DVB = 4 } BvwAspectRatio;
The pixel aspect ratios available in which to display videos using
@
enum BvwAudioOutTypetypedef enum { BVW_AUDIO_SOUND_STEREO, BVW_AUDIO_SOUND_4CHANNEL, BVW_AUDIO_SOUND_41CHANNEL, BVW_AUDIO_SOUND_5CHANNEL, BVW_AUDIO_SOUND_51CHANNEL, BVW_AUDIO_SOUND_AC3PASSTHRU } BvwAudioOutType;
The audio output types available for use with
enum BvwDVDEventtypedef enum { BVW_DVD_ROOT_MENU, BVW_DVD_TITLE_MENU, BVW_DVD_SUBPICTURE_MENU, BVW_DVD_AUDIO_MENU, BVW_DVD_ANGLE_MENU, BVW_DVD_CHAPTER_MENU, BVW_DVD_NEXT_CHAPTER, BVW_DVD_PREV_CHAPTER, BVW_DVD_NEXT_TITLE, BVW_DVD_PREV_TITLE, BVW_DVD_NEXT_ANGLE, BVW_DVD_PREV_ANGLE, BVW_DVD_ROOT_MENU_UP, BVW_DVD_ROOT_MENU_DOWN, BVW_DVD_ROOT_MENU_LEFT, BVW_DVD_ROOT_MENU_RIGHT, BVW_DVD_ROOT_MENU_SELECT } BvwDVDEvent; The DVD navigation actions available to fire as DVD events to the BaconVideoWidget.
enum BvwMetadataTypetypedef enum { BVW_INFO_TITLE, BVW_INFO_ARTIST, BVW_INFO_YEAR, BVW_INFO_COMMENT, BVW_INFO_ALBUM, BVW_INFO_DURATION, BVW_INFO_TRACK_NUMBER, BVW_INFO_COVER, /* Video */ BVW_INFO_HAS_VIDEO, BVW_INFO_DIMENSION_X, BVW_INFO_DIMENSION_Y, BVW_INFO_VIDEO_BITRATE, BVW_INFO_VIDEO_CODEC, BVW_INFO_FPS, /* Audio */ BVW_INFO_HAS_AUDIO, BVW_INFO_AUDIO_BITRATE, BVW_INFO_AUDIO_CODEC, BVW_INFO_AUDIO_SAMPLE_RATE, BVW_INFO_AUDIO_CHANNELS } BvwMetadataType;
The different metadata available for querying from a BaconVideoWidget
stream with
enum BvwVisualsQualitytypedef enum { VISUAL_SMALL = 0, VISUAL_NORMAL, VISUAL_LARGE, VISUAL_EXTRA_LARGE, NUM_VISUAL_QUALITIES } BvwVisualsQuality;
The different visualisation sizes or qualities available for use
with
enum BvwVideoPropertytypedef enum { BVW_VIDEO_BRIGHTNESS, BVW_VIDEO_CONTRAST, BVW_VIDEO_SATURATION, BVW_VIDEO_HUE } BvwVideoProperty;
The video properties queryable with
enum BvwErrortypedef enum { /* Plugins */ BVW_ERROR_AUDIO_PLUGIN, BVW_ERROR_NO_PLUGIN_FOR_FILE, BVW_ERROR_VIDEO_PLUGIN, BVW_ERROR_AUDIO_BUSY, /* File */ BVW_ERROR_BROKEN_FILE, BVW_ERROR_FILE_GENERIC, BVW_ERROR_FILE_PERMISSION, BVW_ERROR_FILE_ENCRYPTED, BVW_ERROR_FILE_NOT_FOUND, /* Devices */ BVW_ERROR_DVD_ENCRYPTED, BVW_ERROR_INVALID_DEVICE, BVW_ERROR_DEVICE_BUSY, /* Network */ BVW_ERROR_UNKNOWN_HOST, BVW_ERROR_NETWORK_UNREACHABLE, BVW_ERROR_CONNECTION_REFUSED, /* Generic */ BVW_ERROR_INVALID_LOCATION, BVW_ERROR_GENERIC, BVW_ERROR_CODEC_NOT_HANDLED, BVW_ERROR_AUDIO_ONLY, BVW_ERROR_CANNOT_CAPTURE, BVW_ERROR_READ_ERROR, BVW_ERROR_PLUGIN_LOAD, BVW_ERROR_EMPTY_FILE } BvwError; Error codes for BaconVideoWidget operations.
enum BvwUseTypetypedef enum { BVW_USE_TYPE_VIDEO, BVW_USE_TYPE_AUDIO, BVW_USE_TYPE_CAPTURE, BVW_USE_TYPE_METADATA } BvwUseType;
The purpose for which a BaconVideoWidget will be used, as specified to
bacon_video_widget_new ()GtkWidget * bacon_video_widget_new (int width, int height, BvwUseType type, GError **error);
Creates a new BaconVideoWidget for the purpose specified in
If
A BvwError will be returned on error.
bacon_video_widget_init_backend ()void bacon_video_widget_init_backend (int *argc, char ***argv); Initialises BaconVideoWidget's GStreamer backend. If this fails for the GStreamer backend, your application will be terminated.
Applications must call either this or
bacon_video_widget_open ()gboolean bacon_video_widget_open (BaconVideoWidget *bvw, const char *mrl, const char *subtitle_uri, GError **error);
Opens the given
If there was a filesystem error, a
On success, the MRL is loaded and waiting to be played with
bacon_video_widget_play ()gboolean bacon_video_widget_play (BaconVideoWidget *bvw, GError **error);
Plays the currently-loaded video in
Errors from the GStreamer backend will be returned asynchronously via the
"error" signal, even if this function returns
bacon_video_widget_pause ()void bacon_video_widget_pause (BaconVideoWidget *bvw); Pauses the current stream in the video widget. If a live stream is being played, playback is stopped entirely.
bacon_video_widget_seek ()gboolean bacon_video_widget_seek (BaconVideoWidget *bvw, double position, GError **error);
Seeks the currently-playing stream to
bacon_video_widget_seek_time ()gboolean bacon_video_widget_seek_time (BaconVideoWidget *bvw, gint64 time, GError **error);
Seeks the currently-playing stream to the absolute position
bacon_video_widget_stop ()void bacon_video_widget_stop (BaconVideoWidget *bvw); Stops playing the current stream and resets to the first position in the stream.
bacon_video_widget_close ()void bacon_video_widget_close (BaconVideoWidget *bvw); Closes the current stream and frees the resources associated with it.
bacon_video_widget_can_deinterlace ()gboolean bacon_video_widget_can_deinterlace (BaconVideoWidget *bvw); Returns whether the widget can deinterlace videos.
bacon_video_widget_can_direct_seek ()gboolean bacon_video_widget_can_direct_seek (BaconVideoWidget *bvw); Determines whether direct seeking is possible for the current stream.
bacon_video_widget_can_get_frames ()gboolean bacon_video_widget_can_get_frames (BaconVideoWidget *bvw, GError **error);
Determines whether individual frames from the current stream can
be returned using Frames cannot be returned for audio-only streams, unless visualisations are enabled.
bacon_video_widget_can_set_volume ()gboolean bacon_video_widget_can_set_volume (BaconVideoWidget *bvw); Returns whether the volume level can be set, given the current settings.
The volume cannot be set if the audio output type is set to
bacon_video_widget_dvd_event ()void bacon_video_widget_dvd_event (BaconVideoWidget *bvw, BvwDVDEvent type); Issues a DVD navigation event to the video widget, such as one to skip to the next chapter, or navigate to the DVD title menu. This is a no-op if the current stream is not navigable.
bacon_video_widget_has_menus ()gboolean bacon_video_widget_has_menus (BaconVideoWidget *bvw); Returns whether the widget is currently displaying a menu, such as a DVD menu.
bacon_video_widget_get_aspect_ratio ()BvwAspectRatio bacon_video_widget_get_aspect_ratio (BaconVideoWidget *bvw); Returns the current aspect ratio used by the widget, from BaconVideoWidgetAspectRatio.
bacon_video_widget_set_aspect_ratio ()void bacon_video_widget_set_aspect_ratio (BaconVideoWidget *bvw, BvwAspectRatio ratio); Sets the aspect ratio used by the widget, from BaconVideoWidgetAspectRatio. Changes to this take effect immediately.
bacon_video_widget_get_audio_out_type ()BvwAudioOutType bacon_video_widget_get_audio_out_type (BaconVideoWidget *bvw); Returns the current audio output type (e.g. how many speaker channels) from BaconVideoWidgetAudioOutType.
bacon_video_widget_set_audio_out_type ()gboolean bacon_video_widget_set_audio_out_type (BaconVideoWidget *bvw, BvwAudioOutType type); Sets the audio output type (number of speaker channels) in the video widget, and stores it in GConf.
bacon_video_widget_get_auto_resize ()gboolean bacon_video_widget_get_auto_resize (BaconVideoWidget *bvw); Returns whether the widget will automatically resize to fit videos.
bacon_video_widget_set_auto_resize ()void bacon_video_widget_set_auto_resize (BaconVideoWidget *bvw, gboolean auto_resize); Sets whether the widget should automatically resize to fit to new videos when they are loaded. Changes to this will take effect when the next media file is loaded.
bacon_video_widget_get_backend_name ()char * bacon_video_widget_get_backend_name (BaconVideoWidget *bvw);
Returns the name string for
bacon_video_widget_get_connection_speed ()int bacon_video_widget_get_connection_speed (BaconVideoWidget *bvw);
Returns the current connection speed, where
bacon_video_widget_set_connection_speed ()void bacon_video_widget_set_connection_speed (BaconVideoWidget *bvw, int speed);
Sets the connection speed from the given
bacon_video_widget_get_current_frame ()GdkPixbuf * bacon_video_widget_get_current_frame (BaconVideoWidget *bvw); Returns a GdkPixbuf containing the current frame from the playing stream. This will wait for any pending seeks to complete before capturing the frame.
bacon_video_widget_get_current_time ()gint64 bacon_video_widget_get_current_time (BaconVideoWidget *bvw); Returns the current position in the stream, as the time (in milliseconds) since the beginning of the stream.
bacon_video_widget_get_deinterlacing ()gboolean bacon_video_widget_get_deinterlacing (BaconVideoWidget *bvw); Returns whether deinterlacing of videos is enabled for this widget.
bacon_video_widget_set_deinterlacing ()void bacon_video_widget_set_deinterlacing (BaconVideoWidget *bvw, gboolean deinterlace);
Sets whether the widget should deinterlace videos. This is a no-op if
bacon_video_widget_set_fullscreen ()void bacon_video_widget_set_fullscreen (BaconVideoWidget *bvw, gboolean fullscreen); Sets whether the widget renders the stream in fullscreen mode. Fullscreen rendering is done only when possible, as xvidmode is required.
bacon_video_widget_get_languages ()GList * bacon_video_widget_get_languages (BaconVideoWidget *bvw);
Returns a list of audio language tags, each in the form
bacon_video_widget_get_language ()int bacon_video_widget_get_language (BaconVideoWidget *bvw); Returns the index of the current audio language.
If the widget is not playing, or the default language is in use,
bacon_video_widget_set_language ()void bacon_video_widget_set_language (BaconVideoWidget *bvw, int language);
Sets the audio language index for
bacon_video_widget_set_logo ()void bacon_video_widget_set_logo (BaconVideoWidget *bvw, const char *name); Sets the logo displayed on the video widget when no stream is loaded.
bacon_video_widget_get_logo_mode ()gboolean bacon_video_widget_get_logo_mode (BaconVideoWidget *bvw); Gets whether the logo is displayed when no stream is loaded.
bacon_video_widget_set_logo_mode ()void bacon_video_widget_set_logo_mode (BaconVideoWidget *bvw, gboolean logo_mode);
Sets whether to display a logo set with
bacon_video_widget_get_metadata ()void bacon_video_widget_get_metadata (BaconVideoWidget *bvw, BvwMetadataType type, GValue *value);
Provides metadata of the given
Free the GValue with
bacon_video_widget_get_mrls ()gchar ** bacon_video_widget_get_mrls (BaconVideoWidget *bvw, TotemDiscMediaType type, const char *device, GError **error);
Returns an array of MRLs available for the given
A
If
bacon_video_widget_get_option_group ()GOptionGroup* bacon_video_widget_get_option_group (void); Returns the GOptionGroup containing command-line options for BaconVideoWidget.
Applications must call either this or
bacon_video_widget_get_position ()double bacon_video_widget_get_position (BaconVideoWidget *bvw);
Returns the current position in the stream, as a value between
bacon_video_widget_set_referrer ()void bacon_video_widget_set_referrer (BaconVideoWidget *bvw, const char *referrer); Sets the HTTP referrer URI to use when fetching HTTP ressources.
bacon_video_widget_set_scale_ratio ()void bacon_video_widget_set_scale_ratio (BaconVideoWidget *bvw, float ratio);
Sets the ratio by which the widget will scale videos when they are
displayed. If
bacon_video_widget_get_show_cursor ()gboolean bacon_video_widget_get_show_cursor (BaconVideoWidget *bvw); Returns whether the cursor is shown when it is over the video widget.
bacon_video_widget_set_show_cursor ()void bacon_video_widget_set_show_cursor (BaconVideoWidget *bvw, gboolean show_cursor);
Sets whether the cursor should be shown when it is over the video
widget. If
bacon_video_widget_set_show_visuals ()void bacon_video_widget_set_show_visuals (BaconVideoWidget *bvw, gboolean show_visuals); Sets whether to show visualisations when playing audio-only streams.
bacon_video_widget_get_stream_length ()gint64 bacon_video_widget_get_stream_length (BaconVideoWidget *bvw); Returns the total length of the stream, in milliseconds.
bacon_video_widget_get_subtitles ()GList * bacon_video_widget_get_subtitles (BaconVideoWidget *bvw);
Returns a list of subtitle tags, each in the form
bacon_video_widget_get_subtitle ()int bacon_video_widget_get_subtitle (BaconVideoWidget *bvw); Returns the index of the current subtitles.
If the widget is not playing,
bacon_video_widget_set_subtitle ()void bacon_video_widget_set_subtitle (BaconVideoWidget *bvw, int subtitle);
Sets the subtitle index for
bacon_video_widget_set_subtitle_encoding ()void bacon_video_widget_set_subtitle_encoding (BaconVideoWidget *bvw, const char *encoding); Sets the encoding system for the subtitles, so that they can be decoded properly.
bacon_video_widget_set_subtitle_font ()void bacon_video_widget_set_subtitle_font (BaconVideoWidget *bvw, const char *font); Sets the font size and style in which to display subtitles.
bacon_video_widget_set_user_agent ()void bacon_video_widget_set_user_agent (BaconVideoWidget *bvw, const char *user_agent); Sets the HTTP user agent string to use when fetching HTTP ressources.
bacon_video_widget_get_video_property ()int bacon_video_widget_get_video_property (BaconVideoWidget *bvw, BvwVideoProperty type); Returns the given property of the video, such as its brightness or saturation.
It is returned as a percentage in the full range of integer values; from
bacon_video_widget_set_video_property ()void bacon_video_widget_set_video_property (BaconVideoWidget *bvw, BvwVideoProperty type, int value); Sets the given property of the video, such as its brightness or saturation.
It should be given as a percentage in the full range of integer values; from
bacon_video_widget_get_visuals_list ()GList * bacon_video_widget_get_visuals_list (BaconVideoWidget *bvw); Returns a list of the visualisations available when playing audio-only streams.
bacon_video_widget_set_visuals ()gboolean bacon_video_widget_set_visuals (BaconVideoWidget *bvw, const char *name); Sets the visualisation to display when playing audio-only streams.
If
bacon_video_widget_set_visuals_quality ()void bacon_video_widget_set_visuals_quality (BaconVideoWidget *bvw, BvwVisualsQuality quality); Sets the quality/size of displayed visualisations.
bacon_video_widget_get_volume ()double bacon_video_widget_get_volume (BaconVideoWidget *bvw);
Returns the current volume level, as a percentage between
bacon_video_widget_set_volume ()void bacon_video_widget_set_volume (BaconVideoWidget *bvw, double volume);
Sets the volume level of the stream as a percentage between
If
bacon_video_widget_get_zoom ()double bacon_video_widget_get_zoom (BaconVideoWidget *bvw);
Returns the zoom factor applied to videos displayed by the widget,
as an integeric percentage between
bacon_video_widget_set_zoom ()void bacon_video_widget_set_zoom (BaconVideoWidget *bvw, double zoom);
Sets the zoom factor applied to the video when it is displayed,
as an integeric percentage between
bacon_video_widget_has_next_track ()gboolean bacon_video_widget_has_next_track (BaconVideoWidget *bvw); Determines whether there is another track after the current one, typically as a chapter on a DVD.
bacon_video_widget_has_previous_track ()gboolean bacon_video_widget_has_previous_track (BaconVideoWidget *bvw); Determines whether there is another track before the current one, typically as a chapter on a DVD.
bacon_video_widget_is_playing ()gboolean bacon_video_widget_is_playing (BaconVideoWidget *bvw); Returns whether the widget is currently playing a stream.
bacon_video_widget_is_seekable ()gboolean bacon_video_widget_is_seekable (BaconVideoWidget *bvw); Returns whether seeking is possible in the current stream.
If no stream is loaded,
bacon_video_widget_step ()gboolean bacon_video_widget_step (BaconVideoWidget *bvw, GError **error); Step one frame forward.
Property DetailsThe
|
|
the percentage of buffering completed, between 0 and 1
|
|
user data set when the signal handler was connected. |
"channels-change"
signalvoid user_function (BaconVideoWidget *arg0, gpointer user_data) : Run Last
Emitted when the number of audio languages available changes, or when the selected audio language is changed.
Query the new list of audio languages with bacon_video_widget_get_languages()
.
|
user data set when the signal handler was connected. |
"eos"
signalvoid user_function (BaconVideoWidget *arg0, gpointer user_data) : Run Last
Emitted when the end of the current stream is reached.
|
user data set when the signal handler was connected. |
"error"
signalvoid user_function (BaconVideoWidget *message, gchar *playback_stopped, gboolean fatal, gboolean arg3, gpointer user_data) : Run Last
Emitted when the backend wishes to asynchronously report an error. If fatal
is TRUE
,
playback of this stream cannot be restarted.
|
the error message |
|
TRUE if playback has stopped due to the error, FALSE otherwise
|
|
TRUE if the error was fatal to playback, FALSE otherwise
|
|
user data set when the signal handler was connected. |
"got-metadata"
signalvoid user_function (BaconVideoWidget *arg0, gpointer user_data) : Run Last
Emitted when the widget has updated the metadata of the current stream. This will typically happen just after opening a stream.
Call bacon_video_widget_get_metadata()
to query the updated metadata.
|
user data set when the signal handler was connected. |
"got-redirect"
signalvoid user_function (BaconVideoWidget *new_mrl, gchar *arg1, gpointer user_data) : Run Last
Emitted when a redirect response is received from a stream's server.
|
the new MRL |
|
user data set when the signal handler was connected. |
"missing-plugins"
signalgboolean user_function (BaconVideoWidget *details, GStrv *descriptions, GStrv *playing, gboolean Returns, gpointer user_data) : Run Last
Emitted when plugins required to play the current stream are not found. This allows the application to request the user install them before proceeding to try and play the stream again.
Note that this signal is only available for the GStreamer backend.
|
a NULL -terminated array of missing plugin details for use when installing the plugins with libgimme-codec
|
|
a NULL -terminated array of missing plugin descriptions for display to the user
|
|
TRUE if the stream could be played even without these plugins, FALSE otherwise
|
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the signal was handled and some action was taken, FALSE otherwise
|
"tick"
signalvoid user_function (BaconVideoWidget *current_time, gint64 stream_length, gint64 current_position, gdouble seekable, gboolean arg4, gpointer user_data) : Run Last
Emitted every time an important time event happens, or at regular intervals when playing a stream.
|
the current position in the stream, in milliseconds since the beginning of the stream |
|
the length of the stream, in milliseconds |
|
the current position in the stream, as a percentage between 0 and 1
|
|
TRUE if the stream can be seeked, FALSE otherwise
|
|
user data set when the signal handler was connected. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0092 ]-- |