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

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

Issue 545993002: Provide fine grained media playback time thru interpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 6 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
« no previous file with comments | « media/base/android/media_player_bridge.cc ('k') | media/base/android/media_source_player.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PLAYER_MANAGER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/base/android/demuxer_stream_player_params.h" 10 #include "media/base/android/demuxer_stream_player_params.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 virtual ~MediaPlayerManager() {} 22 virtual ~MediaPlayerManager() {}
23 23
24 // Returns a pointer to the MediaResourceGetter object. 24 // Returns a pointer to the MediaResourceGetter object.
25 virtual MediaResourceGetter* GetMediaResourceGetter() = 0; 25 virtual MediaResourceGetter* GetMediaResourceGetter() = 0;
26 26
27 // Returns a pointer to the MediaUrlInterceptor object or null. 27 // Returns a pointer to the MediaUrlInterceptor object or null.
28 virtual MediaUrlInterceptor* GetMediaUrlInterceptor() = 0; 28 virtual MediaUrlInterceptor* GetMediaUrlInterceptor() = 0;
29 29
30 // Called when time update messages need to be sent. Args: player ID, 30 // Called when time update messages need to be sent. Args: player ID,
31 // current time. 31 // current timestamp, current time ticks.
32 virtual void OnTimeUpdate(int player_id, base::TimeDelta current_time) = 0; 32 virtual void OnTimeUpdate(int player_id,
33 base::TimeDelta current_timestamp,
34 base::TimeTicks current_time_ticks) = 0;
33 35
34 // Called when media metadata changed. Args: player ID, duration of the 36 // Called when media metadata changed. Args: player ID, duration of the
35 // media, width, height, whether the metadata is successfully extracted. 37 // media, width, height, whether the metadata is successfully extracted.
36 virtual void OnMediaMetadataChanged( 38 virtual void OnMediaMetadataChanged(
37 int player_id, 39 int player_id,
38 base::TimeDelta duration, 40 base::TimeDelta duration,
39 int width, 41 int width,
40 int height, 42 int height,
41 bool success) = 0; 43 bool success) = 0;
42 44
(...skipping 30 matching lines...) Expand all
73 #if defined(VIDEO_HOLE) 75 #if defined(VIDEO_HOLE)
74 // Returns true if a media player should use video-overlay for the embedded 76 // Returns true if a media player should use video-overlay for the embedded
75 // encrypted video. 77 // encrypted video.
76 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0; 78 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0;
77 #endif // defined(VIDEO_HOLE) 79 #endif // defined(VIDEO_HOLE)
78 }; 80 };
79 81
80 } // namespace media 82 } // namespace media
81 83
82 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 84 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « media/base/android/media_player_bridge.cc ('k') | media/base/android/media_source_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698