diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-11-05 18:13:47 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2009-12-08 11:14:19 (GMT) |
commit | 3117e3a6a9c1bf95fc30ebee4d8d11b646cb7125 (patch) | |
tree | 09e6a0dbdb98aaf87555cec558d523d57050cbd0 /src/3rdparty/phonon/mmf/abstractmediaplayer.cpp | |
parent | f27198ec92dbe49a5af17af27835c74a3970e4d1 (diff) | |
download | Qt-3117e3a6a9c1bf95fc30ebee4d8d11b646cb7125.zip Qt-3117e3a6a9c1bf95fc30ebee4d8d11b646cb7125.tar.gz Qt-3117e3a6a9c1bf95fc30ebee4d8d11b646cb7125.tar.bz2 |
Added support for streaming playback to Phonon MMF backend
Because the MIME type of the stream cannot always be deduced from the
URL, we assume that it is a video stream. This is based on the
assumption that the video controllers will be capable of parsing
the container formats for audio-only, as well as video clips. Note
that this assumption may not hold on all devices.
Note that most implementations of the MMF client APIs do not support
HTTP streaming (a.k.a. progressive download). The backend has therefore
only been tested with RTSP streams - see the JIRA entry for further
details.
Task-number: QTBUG-4660
Reviewed-by: Frans Englich
Diffstat (limited to 'src/3rdparty/phonon/mmf/abstractmediaplayer.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractmediaplayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp index adade9c..260d8e6 100644 --- a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp +++ b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp @@ -243,12 +243,12 @@ void MMF::AbstractMediaPlayer::setFileSource(const MediaSource &source, RFile& f if (url.scheme() == QLatin1String("file")) { symbianErr = openFile(file); if (KErrNone != symbianErr) + errorMessage = tr("Error opening file"); + } else { + symbianErr = openUrl(url.toString()); + if (KErrNone != symbianErr) errorMessage = tr("Error opening URL"); } - else { - TRACE_0("Error opening URL: protocol not supported"); - errorMessage = tr("Error opening URL: protocol not supported"); - } break; } |