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

Side by Side Diff: webkit/media/android/webmediaplayer_android.h

Issue 15499006: Enable seek in fullscreen mode for MSE impl on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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) 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 WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // cc::VideoFrameProvider implementation. These methods are running on the 140 // cc::VideoFrameProvider implementation. These methods are running on the
141 // compositor thread. 141 // compositor thread.
142 virtual void SetVideoFrameProviderClient( 142 virtual void SetVideoFrameProviderClient(
143 cc::VideoFrameProvider::Client* client) OVERRIDE; 143 cc::VideoFrameProvider::Client* client) OVERRIDE;
144 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; 144 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
145 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) 145 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame)
146 OVERRIDE; 146 OVERRIDE;
147 147
148 // Media player callback handlers. 148 // Media player callback handlers.
149 virtual void OnMediaMetadataChanged(base::TimeDelta duration, int width, 149 void OnMediaMetadataChanged(base::TimeDelta duration, int width,
150 int height, bool success); 150 int height, bool success);
151 virtual void OnPlaybackComplete(); 151 void OnPlaybackComplete();
152 virtual void OnBufferingUpdate(int percentage); 152 void OnBufferingUpdate(int percentage);
153 virtual void OnSeekComplete(base::TimeDelta current_time); 153 void OnSeekComplete(base::TimeDelta current_time);
154 virtual void OnMediaError(int error_type); 154 void OnMediaError(int error_type);
155 virtual void OnVideoSizeChanged(int width, int height); 155 void OnVideoSizeChanged(int width, int height);
156 void OnMediaSeekRequest(base::TimeDelta time_to_seek,
157 bool request_texture_peer);
156 158
157 // Called to update the current time. 159 // Called to update the current time.
158 virtual void OnTimeUpdate(base::TimeDelta current_time); 160 void OnTimeUpdate(base::TimeDelta current_time);
159 161
160 // Functions called when media player status changes. 162 // Functions called when media player status changes.
161 void OnMediaPlayerPlay(); 163 void OnMediaPlayerPlay();
162 void OnMediaPlayerPause(); 164 void OnMediaPlayerPause();
163 void OnDidEnterFullscreen(); 165 void OnDidEnterFullscreen();
164 void OnDidExitFullscreen(); 166 void OnDidExitFullscreen();
165 167
166 // Called when the player is released. 168 // Called when the player is released.
167 virtual void OnPlayerReleased(); 169 virtual void OnPlayerReleased();
168 170
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 273
272 // Stream texture ID allocated to the video. 274 // Stream texture ID allocated to the video.
273 unsigned int stream_id_; 275 unsigned int stream_id_;
274 276
275 // Whether the mediaplayer is playing. 277 // Whether the mediaplayer is playing.
276 bool is_playing_; 278 bool is_playing_;
277 279
278 // Whether media player needs to re-establish the surface texture peer. 280 // Whether media player needs to re-establish the surface texture peer.
279 bool needs_establish_peer_; 281 bool needs_establish_peer_;
280 282
283 // Whether |stream_texture_proxy_| is initialized.
284 bool stream_texture_proxy_initialized_;
285
281 // Whether the video size info is available. 286 // Whether the video size info is available.
282 bool has_size_info_; 287 bool has_size_info_;
283 288
284 // Object for allocating stream textures. 289 // Object for allocating stream textures.
285 scoped_ptr<StreamTextureFactory> stream_texture_factory_; 290 scoped_ptr<StreamTextureFactory> stream_texture_factory_;
286 291
287 // Object for calling back the compositor thread to repaint the video when a 292 // Object for calling back the compositor thread to repaint the video when a
288 // frame available. It should be initialized on the compositor thread. 293 // frame available. It should be initialized on the compositor thread.
289 ScopedStreamTextureProxy stream_texture_proxy_; 294 ScopedStreamTextureProxy stream_texture_proxy_;
290 295
(...skipping 26 matching lines...) Expand all
317 double current_time_; 322 double current_time_;
318 323
319 media::MediaLog* media_log_; 324 media::MediaLog* media_log_;
320 325
321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 326 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
322 }; 327 };
323 328
324 } // namespace webkit_media 329 } // namespace webkit_media
325 330
326 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 331 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « webkit/media/android/media_source_delegate.cc ('k') | webkit/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698