I've been fiddling with Qt Creator (2.0.1) for couple of days now. Running my app with the simulator and with N8 works well but there are couple of problems with video streamed over http. The player code is basically:
Problems:Code:player=new Phonon::VideoPlayer(Phonon::VideoCategory, 0); player->play(url);
- The video window in simulator is placed randomly, usually behind my app. Using player->showFullScreen(); etc doesn't seem to make any difference. Why's that? On simulator, streaming, sounds, controls, video player slots etc works just fine - I just can't see the video!
- When running the app on N8, I don't seem to be able to stream any video. Is N8's Qt version up to it? Is there something I can do? Is my code incorrect? The last thing I see isand sometimes I gotCode:ADEV 1286394558 1797 Setting callback granulatiry percentage to 40What can I do to display http video streaming (full screen is fine, no need for fancy placements) on N8?Code:QVGPaintEngine::compositionModeChanged unsupported mode 2
- If it's not possible to use Qt (or any C++ way) to do http video streaming in a homebrew app, is it possible to launch the media player and tell it the url (an advantage with this would be that then I dont have to code the video player UI at all). I tried using QDesktopServices : : openUrl() but naturally it first opens the browser which is pretty ugly... Could I use QProcess to open the video player to stream the video over http? If yes, how?
Thanks very much in advance!
SOLVED! Simply create a .ram file, for example foo.ram into file system. The file must contain nothing but the url of the video stream. Then simply open that file with QDesktopServices : : openUrl(file://....)