Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* gstreamer-player-1.0.vapi generated by vapigen, do not modify. */
- [CCode (cprefix = "Gst", gir_namespace = "GstPlayer", gir_version = "1.0", lower_case_cprefix = "gst_")]
- namespace Gst {
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_get_type ()")]
- public class Player : Gst.Object {
- [CCode (has_construct_function = false)]
- public Player ();
- [CCode (has_construct_function = false)]
- public Player.full (owned Gst.PlayerVideoRenderer? video_renderer, owned Gst.PlayerSignalDispatcher? signal_dispatcher);
- public double get_color_balance (Gst.PlayerColorBalanceType type);
- public Gst.PlayerAudioInfo get_current_audio_track ();
- public unowned Gst.PlayerSubtitleInfo get_current_subtitle_track ();
- public Gst.PlayerVideoInfo get_current_video_track ();
- public string get_current_visualization ();
- public Gst.ClockTime get_duration ();
- public Gst.PlayerMediaInfo get_media_info ();
- public bool get_mute ();
- public Gst.Element get_pipeline ();
- public Gst.ClockTime get_position ();
- public uint get_position_update_interval ();
- public double get_rate ();
- public string get_subtitle_uri ();
- public string get_uri ();
- public double get_volume ();
- public bool has_color_balance ();
- public void pause ();
- public void play ();
- public void seek (Gst.ClockTime position);
- public bool set_audio_track (int stream_index);
- public void set_audio_track_enabled (bool enabled);
- public void set_color_balance (Gst.PlayerColorBalanceType type, double value);
- public void set_mute (bool val);
- public void set_position_update_interval (uint interval);
- public void set_rate (double rate);
- public bool set_subtitle_track (int stream_index);
- public void set_subtitle_track_enabled (bool enabled);
- public bool set_subtitle_uri (string uri);
- public void set_uri (string uri);
- public bool set_video_track (int stream_index);
- public void set_video_track_enabled (bool enabled);
- public bool set_visualization (string name);
- public void set_visualization_enabled (bool enabled);
- public void set_volume (double val);
- public void stop ();
- public Gst.PlayerAudioInfo current_audio_track { owned get; }
- public Gst.PlayerSubtitleInfo current_subtitle_track { get; }
- public Gst.PlayerVideoInfo current_video_track { owned get; }
- public uint64 duration { get; }
- public Gst.PlayerMediaInfo media_info { owned get; }
- public bool mute { get; set; }
- public Gst.Element pipeline { owned get; }
- public uint64 position { get; }
- public uint position_update_interval { get; set; }
- public double rate { get; set; }
- public Gst.PlayerSignalDispatcher signal_dispatcher { construct; }
- [NoAccessorMethod]
- public string suburi { owned get; set; }
- public string uri { owned get; set; }
- public Gst.PlayerVideoRenderer video_renderer { construct; }
- public double volume { get; set; }
- public signal void buffering (int object);
- public signal void duration_changed (uint64 object);
- public signal void end_of_stream ();
- public signal void error (GLib.Error object);
- public signal void media_info_updated (Gst.PlayerMediaInfo object);
- public signal void mute_changed ();
- public signal void position_updated (uint64 object);
- public signal void seek_done (uint64 object);
- public signal void state_changed (Gst.PlayerState object);
- public signal void video_dimensions_changed (int object, int p0);
- public signal void volume_changed ();
- public signal void warning (GLib.Error object);
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_audio_info_get_type ()")]
- public class PlayerAudioInfo : Gst.PlayerStreamInfo {
- [CCode (has_construct_function = false)]
- protected PlayerAudioInfo ();
- public int get_bitrate ();
- public int get_channels ();
- public unowned string get_language ();
- public int get_max_bitrate ();
- public int get_sample_rate ();
- }
- [CCode (cheader_filename = "gst/player/player.h", lower_case_csuffix = "player_g_main_context_signal_dispatcher", type_id = "gst_player_g_main_context_signal_dispatcher_get_type ()")]
- public class PlayerGMainContextSignalDispatcher : GLib.Object, Gst.PlayerSignalDispatcher {
- [CCode (has_construct_function = false, type = "GstPlayerSignalDispatcher*")]
- public Gst.PlayerGMainContextSignalDispatcher (GLib.MainContext? application_context);
- [NoAccessorMethod]
- public GLib.MainContext application_context { owned get; construct; }
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_media_info_get_type ()")]
- public class PlayerMediaInfo : GLib.Object {
- [CCode (has_construct_function = false)]
- protected PlayerMediaInfo ();
- public unowned string get_container_format ();
- public Gst.ClockTime get_duration ();
- public unowned Gst.Sample get_image_sample ();
- public unowned GLib.List<Gst.PlayerStreamInfo> get_stream_list ();
- public unowned Gst.TagList get_tags ();
- public unowned string get_title ();
- public unowned string get_uri ();
- [CCode (cname = "gst_player_get_audio_streams")]
- public unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams();
- [CCode (cname = "gst_player_get_video_streams")]
- public unowned GLib.List<Gst.PlayerVideoInfo> get_video_streams();
- [CCode (cname = "gst_player_get_subtitle_streams")]
- public unowned GLib.List<Gst.PlayerSubtitleInfo> get_subtitle_streams();
- public bool is_seekable ();
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_stream_info_get_type ()")]
- public abstract class PlayerStreamInfo : GLib.Object {
- [CCode (has_construct_function = false)]
- protected PlayerStreamInfo ();
- public unowned Gst.Caps get_caps ();
- public unowned string get_codec ();
- public int get_index ();
- public unowned string get_stream_type ();
- public unowned Gst.TagList get_tags ();
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_subtitle_info_get_type ()")]
- public class PlayerSubtitleInfo : Gst.PlayerStreamInfo {
- [CCode (has_construct_function = false)]
- protected PlayerSubtitleInfo ();
- public unowned string get_language ();
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_info_get_type ()")]
- public class PlayerVideoInfo : Gst.PlayerStreamInfo {
- [CCode (has_construct_function = false)]
- protected PlayerVideoInfo ();
- public int get_bitrate ();
- public void get_framerate (int fps_n, int fps_d);
- public int get_height ();
- public int get_max_bitrate ();
- public void get_pixel_aspect_ratio (out uint par_n, out uint par_d);
- public int get_width ();
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_overlay_video_renderer_get_type ()")]
- public class PlayerVideoOverlayVideoRenderer : GLib.Object, Gst.PlayerVideoRenderer {
- [CCode (has_construct_function = false, type = "GstPlayerVideoRenderer*")]
- public PlayerVideoOverlayVideoRenderer (void* window_handle);
- public void* window_handle { get; set construct; }
- }
- static PlayerVisualization** player_visualizations_get();
- static void player_visualizations_free (PlayerVisualization** array);
- public static PlayerVisualization[] player_get_visualizations() {
- int i = 0;
- var visu = player_visualizations_get();
- Gst.PlayerVisualization[] array = new Gst.PlayerVisualization[0];
- while (visu[i] != null) {
- array += visu[i]->copy();
- i++;
- }
- player_visualizations_free (visu);
- return array;
- }
- [CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_visualization_get_type ()")]
- [Compact]
- public class PlayerVisualization {
- public weak string description;
- public weak string name;
- }
- [CCode (cheader_filename = "gst/player/player.h", type_cname = "GstPlayerSignalDispatcherInterface", type_id = "gst_player_signal_dispatcher_get_type ()")]
- public interface PlayerSignalDispatcher : GLib.Object {
- [NoWrapper]
- public abstract void dispatch (Gst.Player player, owned Gst.PlayerSignalDispatcherFunc emitter);
- }
- [CCode (cheader_filename = "gst/player/player.h", type_cname = "GstPlayerVideoRendererInterface", type_id = "gst_player_video_renderer_get_type ()")]
- public interface PlayerVideoRenderer : GLib.Object {
- [NoWrapper]
- public abstract Gst.Element create_video_sink (Gst.Player player);
- }
- [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_COLOR_BALANCE_", type_id = "gst_player_color_balance_type_get_type ()")]
- public enum PlayerColorBalanceType {
- HUE,
- BRIGHTNESS,
- SATURATION,
- CONTRAST;
- public unowned string get_name();
- }
- [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_STATE_", type_id = "gst_player_state_get_type ()")]
- public enum PlayerState {
- STOPPED,
- BUFFERING,
- PAUSED,
- PLAYING;
- public unowned string get_name();
- }
- [CCode (cheader_filename = "gst/player/player.h", cprefix = "GST_PLAYER_ERROR_")]
- public errordomain PlayerError {
- FAILED;
- public unowned string get_name();
- }
- [CCode (cheader_filename = "gst/player/player.h", has_target = false)]
- public delegate void PlayerSignalDispatcherFunc (void* data);
- }
Add Comment
Please, Sign In to add comment