Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: media/base/android/media_source_player.h

Issue 23517002: MediaSourcePlayer implements IsTypeSupported(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 // MediaCodec to decode audio and video streams in two separate threads. 34 // MediaCodec to decode audio and video streams in two separate threads.
35 // IPC is being used to send data from the render process to this object. 35 // IPC is being used to send data from the render process to this object.
36 // TODO(qinmin): use shared memory to send data between processes. 36 // TODO(qinmin): use shared memory to send data between processes.
37 class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid { 37 class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid {
38 public: 38 public:
39 // Construct a MediaSourcePlayer object with all the needed media player 39 // Construct a MediaSourcePlayer object with all the needed media player
40 // callbacks. 40 // callbacks.
41 MediaSourcePlayer(int player_id, MediaPlayerManager* manager); 41 MediaSourcePlayer(int player_id, MediaPlayerManager* manager);
42 virtual ~MediaSourcePlayer(); 42 virtual ~MediaSourcePlayer();
43 43
44 static bool IsTypeSupported(const std::vector<uint8>& scheme_uuid,
45 const std::string& security_level,
46 const std::string& container,
47 const std::vector<std::string>& codecs);
48
44 // MediaPlayerAndroid implementation. 49 // MediaPlayerAndroid implementation.
45 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE; 50 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE;
46 virtual void Start() OVERRIDE; 51 virtual void Start() OVERRIDE;
47 virtual void Pause() OVERRIDE; 52 virtual void Pause() OVERRIDE;
48 virtual void SeekTo(base::TimeDelta timestamp) OVERRIDE; 53 virtual void SeekTo(base::TimeDelta timestamp) OVERRIDE;
49 virtual void Release() OVERRIDE; 54 virtual void Release() OVERRIDE;
50 virtual void SetVolume(double volume) OVERRIDE; 55 virtual void SetVolume(double volume) OVERRIDE;
51 virtual int GetVideoWidth() OVERRIDE; 56 virtual int GetVideoWidth() OVERRIDE;
52 virtual int GetVideoHeight() OVERRIDE; 57 virtual int GetVideoHeight() OVERRIDE;
53 virtual base::TimeDelta GetCurrentTime() OVERRIDE; 58 virtual base::TimeDelta GetCurrentTime() OVERRIDE;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 210
206 MediaDrmBridge* drm_bridge_; 211 MediaDrmBridge* drm_bridge_;
207 212
208 friend class MediaSourcePlayerTest; 213 friend class MediaSourcePlayerTest;
209 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); 214 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer);
210 }; 215 };
211 216
212 } // namespace media 217 } // namespace media
213 218
214 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 219 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698