how to achieve audio preloading in qt - qt

I'm trying to use QMediaPlayer and QMediaList to play streaming audio. I want to add an audio preloading feature to my application, but I have no idea how to do it.
I have several questions here.
When does the audio loading happended? Does it happened when calling QMediaPlayer.play or QMediaList.addMedia?
Do QMediaPlayer or QMediaList do preloading in their implementations?
If QMeidaPlayer and QMediaList haven't implemented preloading, what can I do to add this feature? Does Qt support any methods to do audio loading outside qt but do audio playing in it?

Related

OpenRTSP Qt integration for video rendering

I was trying to use Qt for playing live video for which Qt provides a phonon class. However, the limitation with this is that it is not capable of decoding RTSP packets on windows (since phonon uses Directshow on windows platform).
In order to make it capable of doing this, I am planning to now integrate openRTSP with Qt. Within openRTSP where can I find a pointer / handle to the video buffer or frame buffer so that I can pass on this to my Qt widget for display.
Has anyone attempted this before?
Any pointers on the correct approach for doing this would be highly appreciated.
Take a look at GStreamer and GStreamer Qt bindings. They provide VideoWidget etc so it should provide you enough code examples how you should do this: http://gstreamer.freedesktop.org/modules/qt-gstreamer.html

Video player in qt using Gstreamer or Phonon or VLC Player

Right now I am in no where :( I want to develop a video player where human will be detected using a detection algorithm which is already working in visual studio platform. My player should simply show the detection in video player. I want use QT framework for that. But the problem is I am not sure which one i should go for. There is option of using Phonon, GStreamer, and vlc player that can be use for my purpose but does anybody has any real experience like this kind of stuff ??
Thanks in advance !
GStreamer is a great cross-platform multimedia framework and I've used it many times, including a few projects involving Qt. Knowing GStreamer certainly adds a great skill to your arsenal but it will take some extra time to understand it's design and how it works.
I've never used VLC Player, and Phonon should be your last resort because it is dying.
Another option you might consider is QtMultimediaKit, which is a part of Qt Mobility. It's Qt all the way and may be an easier transition to your current set of skills.

How to adjust sound of QWebView based Qt Application

I have created a Qt GUI application which has QWebView object to open a URL which has embedded flash content. My problem is that I would like to control the audio volume of my Qt Application(QWebView), but I am not able to find any way to do so.
However I came across classes from the Phonon module like AudioOutput and VolumeSlider but had no luck.
There is one example on the Qt website but that itself uses Media Player, for which we can control the volume.
Please advise on how can we get rid of this problem.
It looks like this is a limitation of QWebView based application as of now.
The problem is that Flash manages it's own volume and you cannot access it from Qt.

QT/Phonon Video Recording

I want to do the Video Recording in QT Phonon media framework.Has Qt/KDE's Phonon media framework abstraction implemented Video recording? If Phonon does not implemented then how to add functionality(As Phonon uses gstreamer as backend and we can easily do Video Recording using gStreamer)
Regards
Kiran
Unfortunately Phonon only provides utilities for multimedia playback and as far as I know they do not plan to add recording functionality in the future. In order to perform video/audio stream recording you could use QtMultimedia module.

How to play audio/video files in flex?

I'm using flex 3.
I've successfully played video and audio files by using following libraries:
flash.media.Video
flash.media.Sound
Live docs link.
But the limitations are as follow:
Video class can be used to play only flv file format.
To play mp3 files I must use audio file.
So can I play most of the famous audio/video files by using single method?
Well by checking the file type we can some how achieve it. Then I should create a component for that.
So can any one suggest me such ready-made components? or is there any other alternatives to play audio/video files?
You want to play any video/audio formats in flash? (Almost) impossible. ActionScript libraries will not help you - ActionScript has not enough power to decompress video in realtime. Maybe this is possible with Alchemy, but I haven't seen codecs implemented this way... Usually, people are converting their content to FLV which is played by Flash player natively.

Resources