QGst::StreamVolume usage and example
mert.tas at gmail.com
Mon May 2 01:15:46 PDT 2011
If any of you are using the QGst library but could not figure out how to use
the QGst::StreamVolume functionality (like once I did :) this is the right
Using QGst::StreamVolume is fairly simple. You just have to create a
pipeline from the playbin2 element that will play the audio/video (as in the
then create a stream volume and cast the pipeline to stream volume as
// Don't forget to include the headers first
m_pipeline = QGst::ElementFactory::make("playbin2").dynamicCast<QGst::Pipeline
QGst::StreamVolumePtr m_streamVolume =
Then you can use the stream volume functions setVolume(), volume() and
setMuted(), isMuted() to set the volume or mute your audio/video.
You can find the last version of the Player example with added volume
Thanks to Marco Ballesio & George Kiagiadakis for all their help and advice.
Hope this would be useful to all.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel