equal
deleted
inserted
replaced
30 #include "abstractplayer.h" |
30 #include "abstractplayer.h" |
31 #include "mmf_medianode.h" |
31 #include "mmf_medianode.h" |
32 #include "defs.h" |
32 #include "defs.h" |
33 |
33 |
34 QT_BEGIN_NAMESPACE |
34 QT_BEGIN_NAMESPACE |
|
35 |
|
36 class QResource; |
35 |
37 |
36 namespace Phonon |
38 namespace Phonon |
37 { |
39 { |
38 namespace MMF |
40 namespace MMF |
39 { |
41 { |
85 */ |
87 */ |
86 AbstractPlayer *abstractPlayer() const; |
88 AbstractPlayer *abstractPlayer() const; |
87 |
89 |
88 void setVideoOutput(AbstractVideoOutput* videoOutput); |
90 void setVideoOutput(AbstractVideoOutput* videoOutput); |
89 |
91 |
|
92 RFile* file() const; |
|
93 QResource* resource() const; |
|
94 |
90 public Q_SLOTS: |
95 public Q_SLOTS: |
91 void volumeChanged(qreal volume); |
96 void volumeChanged(qreal volume); |
92 void switchToNextSource(); |
97 void switchToNextSource(); |
93 |
98 |
94 Q_SIGNALS: |
99 Q_SIGNALS: |
115 void createPlayer(const MediaSource &source); |
120 void createPlayer(const MediaSource &source); |
116 bool openRecognizer(); |
121 bool openRecognizer(); |
117 |
122 |
118 // Audio / video media type recognition |
123 // Audio / video media type recognition |
119 MediaType fileMediaType(const QString& fileName); |
124 MediaType fileMediaType(const QString& fileName); |
|
125 MediaType bufferMediaType(const uchar *data, qint64 size); |
120 // TODO: urlMediaType function |
126 // TODO: urlMediaType function |
121 |
127 |
122 static qint64 toMilliSeconds(const TTimeIntervalMicroSeconds &); |
128 static qint64 toMilliSeconds(const TTimeIntervalMicroSeconds &); |
123 |
129 |
124 private: |
130 private: |
130 |
136 |
131 MediaSource m_source; |
137 MediaSource m_source; |
132 MediaSource m_nextSource; |
138 MediaSource m_nextSource; |
133 bool m_nextSourceSet; |
139 bool m_nextSourceSet; |
134 |
140 |
135 // Storing the file handle here to work around KErrInUse error |
141 RFile* m_file; |
136 // from MMF player utility OpenFileL functions |
142 QResource* m_resource; |
137 RFile m_file; |
|
138 |
143 |
139 QScopedPointer<AbstractPlayer> m_player; |
144 QScopedPointer<AbstractPlayer> m_player; |
140 |
145 |
141 }; |
146 }; |
142 } |
147 } |