Switching to a different video while another video is being played.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Switching to a different video while another video is being played.

shyam

Hello,

 

               I am using playbin to play a video file on my local disk. Is it possible to change the video to a different file on the click of a button ?

I tried using g_object_set(G_OBJECT(data->pipeline), "uri", next_uri, NULL); in the click event handler for the button. But it is not working..

 

Best Regards,

Shyam



The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Switching to a different video while another video is being played.

Ed Colgan
Destroy the current pipeline and create a new one with the new file name.

On Wed, Nov 13, 2019 at 5:00 AM Krishna, Shyam <[hidden email]> wrote:

Hello,

 

               I am using playbin to play a video file on my local disk. Is it possible to change the video to a different file on the click of a button ?

I tried using g_object_set(G_OBJECT(data->pipeline), "uri", next_uri, NULL); in the click event handler for the button. But it is not working..

 

Best Regards,

Shyam



The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel