HomeSort by relevance Sort by last modified time
    Searched refs:MediaPlayer (Results 1 - 25 of 159) sorted by null

1 2 3 4 5 6 7

  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
MediaPlayerMethodUnderTest.java 19 import android.media.MediaPlayer;
22 * All MediaPlayer method unit test subclass must implement this interface.
26 public void invokeMethodUnderTest(MediaPlayer player);
  /frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
RealMediaPlayerTest.java 19 import android.media.MediaPlayer;
26 * Tests that MediaPlayerProxyTestCase contains reasonable tests with a real {@link MediaPlayer}.
31 // We have to construct the MediaPlayer on the main thread (or at least on a thread with an
34 Callable<MediaPlayer> callable = new Callable<MediaPlayer>() {
36 public MediaPlayer call() throws Exception {
37 return new MediaPlayer();
40 FutureTask<MediaPlayer> future = new FutureTask<MediaPlayer>(callable);
AwaitableCompletionListener.java 19 import android.media.MediaPlayer;
30 /** Implementation of {@link MediaPlayer.OnErrorListener} that we can wait for in tests. */
32 public class AwaitableCompletionListener implements MediaPlayer.OnCompletionListener {
36 public void onCompletion(MediaPlayer mp) {
AwaitableErrorListener.java 19 import android.media.MediaPlayer;
28 /** Implementation of {@link MediaPlayer.OnCompletionListener} that we can wait for in tests. */
30 public class AwaitableErrorListener implements MediaPlayer.OnErrorListener {
35 public boolean onError(MediaPlayer mp, int what, int extra) {
  /external/webkit/Source/WebCore/platform/graphics/
MediaPlayer.cpp 29 #include "MediaPlayer.h"
80 // a null player to make MediaPlayer logic simpler
84 NullMediaPlayerPrivate(MediaPlayer*) { }
123 virtual MediaPlayer::NetworkState networkState() const { return MediaPlayer::Empty; }
124 virtual MediaPlayer::ReadyState readyState() const { return MediaPlayer::HaveNothing; }
148 static MediaPlayerPrivateInterface* createNullMediaPlayer(MediaPlayer* player)
253 MediaPlayer::SupportsType supported = MediaPlayer::IsNotSupported
    [all...]
MediaPlayer.h 97 class MediaPlayer;
109 virtual void mediaPlayerNetworkStateChanged(MediaPlayer*) { }
112 virtual void mediaPlayerReadyStateChanged(MediaPlayer*) { }
115 virtual void mediaPlayerVolumeChanged(MediaPlayer*) { }
118 virtual void mediaPlayerMuteChanged(MediaPlayer*) { }
121 virtual void mediaPlayerTimeChanged(MediaPlayer*) { }
124 virtual void mediaPlayerDurationChanged(MediaPlayer*) { }
127 virtual void mediaPlayerRateChanged(MediaPlayer*) { }
130 virtual void mediaPlayerPlaybackStateChanged(MediaPlayer*) { }
132 // The MediaPlayer has found potentially problematic media content
    [all...]
MediaPlayerPrivate.h 31 #include "MediaPlayer.h"
88 virtual MediaPlayer::NetworkState networkState() const = 0;
89 virtual MediaPlayer::ReadyState readyState() const = 0;
102 virtual void setPreload(MediaPlayer::Preload) { };
104 virtual bool hasAvailableVideoFrame() const { return readyState() >= MediaPlayer::HaveCurrentData; }
126 virtual MediaPlayer::MovieLoadType movieLoadType() const { return MediaPlayer::Unknown; }
  /external/webkit/Source/WebCore/platform/graphics/wince/
MediaPlayerProxy.h 33 class MediaPlayer;
49 WebMediaPlayerProxy(MediaPlayer* player);
52 MediaPlayer* mediaPlayer() {return m_mediaPlayer;}
60 MediaPlayer* m_mediaPlayer;
MediaPlayerPrivateWinCE.h 68 MediaPlayer::NetworkState networkState() const { return m_networkState; }
69 MediaPlayer::ReadyState readyState() const { return m_readyState; }
85 MediaPlayerPrivate(MediaPlayer*);
100 static MediaPlayerPrivateInterface* create(MediaPlayer*);
102 static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs);
105 MediaPlayer* m_player;
109 MediaPlayer::NetworkState m_networkState;
110 MediaPlayer::ReadyState m_readyState;
  /external/webkit/Source/WebCore/platform/graphics/android/
MediaPlayerPrivateAndroid.h 72 virtual MediaPlayer::NetworkState networkState() const { return m_networkState; }
73 virtual MediaPlayer::ReadyState readyState() const { return m_readyState; }
109 static MediaPlayerPrivateInterface* create(MediaPlayer* player);
111 static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs);
113 MediaPlayerPrivate(MediaPlayer *);
116 MediaPlayer* m_player;
125 MediaPlayer::ReadyState m_readyState;
126 MediaPlayer::NetworkState m_networkState;
  /external/webkit/Source/WebCore/platform/graphics/qt/
MediaPlayerPrivateQt.h 43 static MediaPlayerPrivateInterface* create(MediaPlayer* player);
48 static MediaPlayer::SupportsType supportsType(const String&, const String&);
76 void setPreload(MediaPlayer::Preload);
78 MediaPlayer::NetworkState networkState() const;
79 MediaPlayer::ReadyState readyState() const;
114 QMediaPlayer* mediaPlayer() const { return m_mediaPlayer; }
134 MediaPlayerPrivateQt(MediaPlayer*);
136 MediaPlayer* m_webCorePlayer;
145 mutable MediaPlayer::NetworkState m_networkState;
146 mutable MediaPlayer::ReadyState m_readyState
    [all...]
MediaPlayerPrivatePhonon.h 102 MediaPlayer::NetworkState networkState() const;
103 MediaPlayer::ReadyState readyState() const;
130 MediaPlayerPrivatePhonon(MediaPlayer*);
131 static MediaPlayerPrivateInterface* create(MediaPlayer* player);
134 static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs);
140 MediaPlayer* m_player;
142 MediaPlayer::NetworkState m_networkState;
143 MediaPlayer::ReadyState m_readyState;
  /frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
MediaPlayerProxy.java 20 import android.media.MediaPlayer;
26 * Interface that supports a subset of the operations on {@link android.media.MediaPlayer}.
35 void setOnErrorListener(MediaPlayer.OnErrorListener listener);
36 void setOnCompletionListener(MediaPlayer.OnCompletionListener listener);
  /external/webkit/Source/WebCore/platform/graphics/gstreamer/
MediaPlayerPrivateGStreamer.h 83 void setPreload(MediaPlayer::Preload);
86 MediaPlayer::NetworkState networkState() const;
87 MediaPlayer::ReadyState readyState() const;
102 void loadingFailed(MediaPlayer::NetworkState);
126 MediaPlayerPrivateGStreamer(MediaPlayer*);
129 static MediaPlayerPrivateInterface* create(MediaPlayer* player);
132 static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs);
152 MediaPlayer* m_player;
162 MediaPlayer::NetworkState m_networkState;
163 MediaPlayer::ReadyState m_readyState
    [all...]
  /external/webkit/Source/WebCore/bindings/generic/
RuntimeEnabledFeatures.cpp 35 #include "MediaPlayer.h"
89 return MediaPlayer::isAvailable();
94 return MediaPlayer::isAvailable();
99 return MediaPlayer::isAvailable();
104 return MediaPlayer::isAvailable();
109 return MediaPlayer::isAvailable();
114 return MediaPlayer::isAvailable();
  /frameworks/base/core/java/android/speech/tts/
BlockingMediaPlayer.java 19 import android.media.MediaPlayer;
34 private static final String MEDIA_PLAYER_THREAD_NAME = "TTS-MediaPlayer";
41 private MediaPlayer mPlayer;
103 mPlayer = MediaPlayer.create(mContext, mUri);
110 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {
112 public boolean onError(MediaPlayer mp, int what, int extra) {
118 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
120 public void onCompletion(MediaPlayer mp) {
128 Log.w(TAG, "MediaPlayer failed", ex);
  /external/webkit/Source/WebCore/html/
HTMLMediaElement.h 34 #include "MediaPlayer.h"
58 MediaPlayer* player() const { return m_player.get(); }
79 MediaPlayer::MovieLoadType movieLoadType() const;
240 void setReadyState(MediaPlayer::ReadyState);
241 void setNetworkState(MediaPlayer::NetworkState);
244 virtual void mediaPlayerNetworkStateChanged(MediaPlayer*);
245 virtual void mediaPlayerReadyStateChanged(MediaPlayer*);
246 virtual void mediaPlayerTimeChanged(MediaPlayer*);
247 virtual void mediaPlayerVolumeChanged(MediaPlayer*);
248 virtual void mediaPlayerMuteChanged(MediaPlayer*);
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/avfoundation/
MediaPlayerPrivateAVFoundation.cpp 50 MediaPlayerPrivateAVFoundation::MediaPlayerPrivateAVFoundation(MediaPlayer* player)
55 , m_networkState(MediaPlayer::Empty)
56 , m_readyState(MediaPlayer::HaveNothing)
57 , m_preload(MediaPlayer::Auto)
185 if (m_networkState != MediaPlayer::Loading) {
186 m_networkState = MediaPlayer::Loading;
189 if (m_readyState != MediaPlayer::HaveNothing) {
190 m_readyState = MediaPlayer::HaveNothing;
201 if (m_preload == MediaPlayer::None) {
235 m_preload = MediaPlayer::Auto
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/mac/
MediaPlayerPrivateQTKit.h 72 MediaPlayerPrivateQTKit(MediaPlayer*);
76 static MediaPlayerPrivateInterface* create(MediaPlayer* player);
78 static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs);
114 void setPreload(MediaPlayer::Preload);
116 MediaPlayer::NetworkState networkState() const { return m_networkState; }
117 MediaPlayer::ReadyState readyState() const { return m_readyState; }
140 MediaPlayer::MovieLoadType movieLoadType() const;
175 bool metaDataAvailable() const { return m_qtMovie && m_readyState >= MediaPlayer::HaveMetadata; }
187 MediaPlayer* m_player;
195 MediaPlayer::NetworkState m_networkState
    [all...]
  /external/chromium/chrome/browser/ui/webui/
mediaplayer_ui.h 28 class MediaPlayer : public NotificationObserver,
31 ~MediaPlayer();
33 // Enqueues this file into the current playlist. If the mediaplayer is
38 // Enqueues this fileschema url into the current playlist. If the mediaplayer
43 // |file_path|. If there is no mediaplayer currently, show it, and play the
49 // If there is no mediaplayer currently, show it, and play the given url.
58 // Toggle the mediaplayer between fullscreen and windowed.
68 // tab contents of the page which holds the mediaplayer. it is expected
77 // mediaplayer, along with the tab contents which has the playlist in it.
84 // Notfiys the mediaplayer that the playlist changed. This could b
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/win/
MediaPlayerPrivateQuickTimeWin.h 76 MediaPlayerPrivate(MediaPlayer*);
105 MediaPlayer::NetworkState networkState() const { return m_networkState; }
106 MediaPlayer::ReadyState readyState() const { return m_readyState; }
140 static MediaPlayerPrivateInterface* create(MediaPlayer*);
142 static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs);
165 MediaPlayer* m_player;
174 MediaPlayer::NetworkState m_networkState;
175 MediaPlayer::ReadyState m_readyState;
  /external/webkit/Source/WebKit/chromium/src/
WebMediaPlayerClientImpl.h 48 // This class serves as a bridge between WebCore::MediaPlayer and
64 WebMediaPlayer* mediaPlayer() const;
106 virtual WebCore::MediaPlayer::NetworkState networkState() const;
107 virtual WebCore::MediaPlayer::ReadyState readyState() const;
117 virtual void setPreload(WebCore::MediaPlayer::Preload);
119 virtual WebCore::MediaPlayer::MovieLoadType movieLoadType() const;
137 static WebCore::MediaPlayerPrivateInterface* create(WebCore::MediaPlayer*);
139 static WebCore::MediaPlayer::SupportsType supportsType(
145 WebCore::MediaPlayer* m_mediaPlayer;
149 WebCore::MediaPlayer::Preload m_preload
    [all...]
  /frameworks/base/media/libmedia/
mediaplayer.cpp 0 /* mediaplayer.cpp
19 #define LOG_TAG "MediaPlayer"
32 #include <media/mediaplayer.h>
47 MediaPlayer::MediaPlayer()
68 MediaPlayer::~MediaPlayer()
76 void MediaPlayer::disconnect()
92 void MediaPlayer::clear_l()
100 status_t MediaPlayer::setListener(const sp<MediaPlayerListener>& listener
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/media/
MediaPlayerDemo_Video.java 23 import android.media.MediaPlayer;
24 import android.media.MediaPlayer.OnBufferingUpdateListener;
25 import android.media.MediaPlayer.OnCompletionListener;
26 import android.media.MediaPlayer.OnPreparedListener;
27 import android.media.MediaPlayer.OnVideoSizeChangedListener;
42 private MediaPlayer mMediaPlayer;
98 * Mediaplayer can only play "progressive streamable
122 mMediaPlayer = new MediaPlayer();
138 public void onBufferingUpdate(MediaPlayer arg0, int percent) {
143 public void onCompletion(MediaPlayer arg0)
    [all...]
MediaPlayerDemo_Audio.java 20 import android.media.MediaPlayer;
31 private MediaPlayer mMediaPlayer;
70 mMediaPlayer = new MediaPlayer();
78 * its resid in MediaPlayer.create() method.
80 mMediaPlayer = MediaPlayer.create(this, R.raw.test_cbr);

Completed in 541 milliseconds

1 2 3 4 5 6 7