Subscribe to bus messages, no events fired

testermax joachim.leite at hotmail.com
Tue Aug 22 13:51:02 UTC 2017


Hi Tim,

Thank you for your tip regarding the playbin and the prepare-window-handle
event!

My goal is to have a lean implementation,with as few dependencies as
possible, while
being notified when the stream is interupted, or other errors occurs, and be
able to resume when the stream is back.

Is this possible while only depend on gst library?

My code so far...

 public GstreamPlayer()
        {
            InitializeComponent();

            Loaded += *GstreamPlayer_Loaded;*
            // Initialize Gstreamer
            Gst.Application.Init();
           
            // Enable detailed debug info from Gstreamer
            Debug.SetActive(true);

            // Setup Playbin element
            _playbin = ElementFactory.Make("playbin", "playbin");
            
        }

        // Get winform control (panel) handle
        private void *GstreamPlayer_Loaded*(object sender, RoutedEventArgs
e)
        {
            // Playbin implements GstVideoOverlay interface,
prepare-window-handle not neccessary
            _videoDisplayHandle = (ulong)VideoDisplay.Handle;
            _adapter = new VideoOverlayAdapter(_playbin.Handle) {
WindowHandle = _videoDisplayHandle };
            _adapter.HandleEvents(true);
        }





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Subscribe-to-bus-messages-no-events-fired-tp4684279p4684285.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list