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

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 2251073003: Pretend the video has no audio track if it is playing as part of autoplay muted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 1 month 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 | « content/test/data/media/session/autoplay-muted.html ('k') | media/blink/webmediaplayer_impl.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 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 std::unique_ptr<WatchTimeReporter> watch_time_reporter_; 559 std::unique_ptr<WatchTimeReporter> watch_time_reporter_;
560 bool is_encrypted_; 560 bool is_encrypted_;
561 561
562 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. 562 // Number of times we've reached BUFFERING_HAVE_NOTHING during playback.
563 int underflow_count_; 563 int underflow_count_;
564 std::unique_ptr<base::ElapsedTimer> underflow_timer_; 564 std::unique_ptr<base::ElapsedTimer> underflow_timer_;
565 565
566 // Monitors the player events. 566 // Monitors the player events.
567 base::WeakPtr<MediaObserver> observer_; 567 base::WeakPtr<MediaObserver> observer_;
568 568
569 // Whether the player is currently in autoplay muted state.
570 bool autoplay_muted_ = false;
571
569 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 572 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
570 }; 573 };
571 574
572 } // namespace media 575 } // namespace media
573 576
574 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 577 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/test/data/media/session/autoplay-muted.html ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698