| OLD | NEW |
| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 void StartPipeline(); | 291 void StartPipeline(); |
| 292 | 292 |
| 293 // Helpers that set the network/ready state and notifies the client if | 293 // Helpers that set the network/ready state and notifies the client if |
| 294 // they've changed. | 294 // they've changed. |
| 295 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); | 295 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); |
| 296 void SetReadyState(blink::WebMediaPlayer::ReadyState state); | 296 void SetReadyState(blink::WebMediaPlayer::ReadyState state); |
| 297 | 297 |
| 298 // Gets the duration value reported by the pipeline. | 298 // Gets the duration value reported by the pipeline. |
| 299 double GetPipelineDuration() const; | 299 double GetPipelineDuration() const; |
| 300 | 300 |
| 301 // Called by VideoRendererImpl on its internal thread with the new frame to be | |
| 302 // painted. | |
| 303 void FrameReady(const scoped_refptr<VideoFrame>& frame); | |
| 304 | |
| 305 // Returns the current video frame from |compositor_|. Blocks until the | 301 // Returns the current video frame from |compositor_|. Blocks until the |
| 306 // compositor can return the frame. | 302 // compositor can return the frame. |
| 307 scoped_refptr<VideoFrame> GetCurrentFrameFromCompositor(); | 303 scoped_refptr<VideoFrame> GetCurrentFrameFromCompositor(); |
| 308 | 304 |
| 309 // Called when the demuxer encounters encrypted streams. | 305 // Called when the demuxer encounters encrypted streams. |
| 310 void OnEncryptedMediaInitData(EmeInitDataType init_data_type, | 306 void OnEncryptedMediaInitData(EmeInitDataType init_data_type, |
| 311 const std::vector<uint8_t>& init_data); | 307 const std::vector<uint8_t>& init_data); |
| 312 | 308 |
| 313 // Called when the FFmpegDemuxer encounters new media tracks. This is only | 309 // Called when the FFmpegDemuxer encounters new media tracks. This is only |
| 314 // invoked when using FFmpegDemuxer, since MSE/ChunkDemuxer handle media | 310 // invoked when using FFmpegDemuxer, since MSE/ChunkDemuxer handle media |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 576 |
| 581 // Whether the player is currently in autoplay muted state. | 577 // Whether the player is currently in autoplay muted state. |
| 582 bool autoplay_muted_ = false; | 578 bool autoplay_muted_ = false; |
| 583 | 579 |
| 584 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 580 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 585 }; | 581 }; |
| 586 | 582 |
| 587 } // namespace media | 583 } // namespace media |
| 588 | 584 |
| 589 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 585 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |