Pausing/Stopping an audio file

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

Pausing/Stopping an audio file

xargon-2
Hello,

The gstreamer documentation is good but it really lacks some basic
examples which would make using it so much easier for people like me
who would like to adopt it.

I have an application where I am playing audio file but it seems so
difficult to figure out how to pause/resume an existing playing file
or stopping it. I think it would be really useful if someone added
these examples to the documentation.

I would be really grateful if someone has an example or can point me
in the right direction as to what to use for doing this.

Cheers,
Luca

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pausing/Stopping an audio file

Stefan Sauer
Am 14.12.2009 01:14, schrieb Luca Pamparana:
> Hello,
>
> The gstreamer documentation is good but it really lacks some basic
> examples which would make using it so much easier for people like me
> who would like to adopt it.
>
> I have an application where I am playing audio file but it seems so
> difficult to figure out how to pause/resume an existing playing file
> or stopping it.

// PAUSE
gst_element_set_state(pipeline, GST_STATE_PAUSED);

// CONTINUE
gst_element_set_state(pipeline, GST_STATE_PLAYING);

Stefan

> I think it would be really useful if someone added
> these examples to the documentation.
>
> I would be really grateful if someone has an example or can point me
> in the right direction as to what to use for doing this.
>
> Cheers,
> Luca
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pausing/Stopping an audio file

xargon-2
> // PAUSE
> gst_element_set_state(pipeline, GST_STATE_PAUSED);
>
> // CONTINUE
> gst_element_set_state(pipeline, GST_STATE_PLAYING);

That worked perfectly! Many thanks Stefan.

/Luca

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel