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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 23797004: Sets the media element network state to idle until playback is requested. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new flag playing_started_ Created 7 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // point for when the mailbox was produced. 329 // point for when the mailbox was produced.
330 gpu::Mailbox texture_mailbox_; 330 gpu::Mailbox texture_mailbox_;
331 unsigned int texture_mailbox_sync_point_; 331 unsigned int texture_mailbox_sync_point_;
332 332
333 // Stream texture ID allocated to the video. 333 // Stream texture ID allocated to the video.
334 unsigned int stream_id_; 334 unsigned int stream_id_;
335 335
336 // Whether the mediaplayer is playing. 336 // Whether the mediaplayer is playing.
337 bool is_playing_; 337 bool is_playing_;
338 338
339 // Wether the mediaplayer has already started playing.
340 bool playing_started_;
341
339 // Whether media player needs to re-establish the surface texture peer. 342 // Whether media player needs to re-establish the surface texture peer.
340 bool needs_establish_peer_; 343 bool needs_establish_peer_;
341 344
342 // Whether |stream_texture_proxy_| is initialized. 345 // Whether |stream_texture_proxy_| is initialized.
343 bool stream_texture_proxy_initialized_; 346 bool stream_texture_proxy_initialized_;
344 347
345 // Whether the video size info is available. 348 // Whether the video size info is available.
346 bool has_size_info_; 349 bool has_size_info_;
347 350
348 // Whether the video metadata and info are available. 351 // Whether the video metadata and info are available.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 401
399 // The decryptor that manages decryption keys and decrypts encrypted frames. 402 // The decryptor that manages decryption keys and decrypts encrypted frames.
400 scoped_ptr<ProxyDecryptor> decryptor_; 403 scoped_ptr<ProxyDecryptor> decryptor_;
401 404
402 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 405 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
403 }; 406 };
404 407
405 } // namespace content 408 } // namespace content
406 409
407 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 410 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698