OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "config.h" | 5 #include "config.h" |
6 #include "web/WebMediaPlayerClientImpl.h" | 6 #include "web/WebMediaPlayerClientImpl.h" |
7 | 7 |
8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
9 #include "core/html/HTMLMediaElement.h" | 9 #include "core/html/HTMLMediaElement.h" |
10 #include "core/html/TimeRanges.h" | 10 #include "core/html/TimeRanges.h" |
11 #include "core/rendering/RenderView.h" | 11 #include "core/rendering/RenderView.h" |
12 #include "core/rendering/compositing/RenderLayerCompositor.h" | 12 #include "core/rendering/compositing/RenderLayerCompositor.h" |
13 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" | 13 #include "modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h" |
14 #include "modules/encryptedmedia/MediaKeyNeededEvent.h" | 14 #include "modules/encryptedmedia/MediaKeyNeededEvent.h" |
15 #include "modules/mediastream/MediaStreamRegistry.h" | 15 #include "modules/mediastream/MediaStreamRegistry.h" |
16 #include "platform/ContentDecryptionModuleResult.h" | |
ddorwin
2014/08/08 02:50:52
not needed
jrummell
2014/08/08 23:15:13
Done.
| |
16 #include "platform/audio/AudioBus.h" | 17 #include "platform/audio/AudioBus.h" |
17 #include "platform/audio/AudioSourceProviderClient.h" | 18 #include "platform/audio/AudioSourceProviderClient.h" |
18 #include "platform/geometry/IntSize.h" | 19 #include "platform/geometry/IntSize.h" |
19 #include "platform/graphics/GraphicsContext.h" | 20 #include "platform/graphics/GraphicsContext.h" |
20 #include "platform/graphics/GraphicsLayer.h" | 21 #include "platform/graphics/GraphicsLayer.h" |
21 #include "platform/graphics/gpu/Extensions3DUtil.h" | 22 #include "platform/graphics/gpu/Extensions3DUtil.h" |
22 #include "platform/graphics/skia/GaneshUtils.h" | 23 #include "platform/graphics/skia/GaneshUtils.h" |
23 #include "public/platform/Platform.h" | 24 #include "public/platform/Platform.h" |
24 #include "public/platform/WebAudioSourceProvider.h" | 25 #include "public/platform/WebAudioSourceProvider.h" |
25 #include "public/platform/WebCString.h" | 26 #include "public/platform/WebCString.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 #if ENABLE(WEB_AUDIO) | 211 #if ENABLE(WEB_AUDIO) |
211 // Make sure if we create/re-create the WebMediaPlayer that we update our wr apper. | 212 // Make sure if we create/re-create the WebMediaPlayer that we update our wr apper. |
212 m_audioSourceProvider.wrap(m_webMediaPlayer->audioSourceProvider()); | 213 m_audioSourceProvider.wrap(m_webMediaPlayer->audioSourceProvider()); |
213 #endif | 214 #endif |
214 | 215 |
215 m_webMediaPlayer->setVolume(mediaElement().playerVolume()); | 216 m_webMediaPlayer->setVolume(mediaElement().playerVolume()); |
216 | 217 |
217 m_webMediaPlayer->setPoster(poster); | 218 m_webMediaPlayer->setPoster(poster); |
218 | 219 |
219 // Tell WebMediaPlayer about any connected CDM (may be null). | 220 // Tell WebMediaPlayer about any connected CDM (may be null). |
220 m_webMediaPlayer->setContentDecryptionModule(HTMLMediaElementEncryptedMedia: :contentDecryptionModule(mediaElement())); | 221 m_webMediaPlayer->setContentDecryptionModuleSync(HTMLMediaElementEncryptedMe dia::contentDecryptionModule(mediaElement())); |
221 m_webMediaPlayer->load(loadType, kurl, corsMode); | 222 m_webMediaPlayer->load(loadType, kurl, corsMode); |
222 } | 223 } |
223 | 224 |
224 void WebMediaPlayerClientImpl::setPreload(MediaPlayer::Preload preload) | 225 void WebMediaPlayerClientImpl::setPreload(MediaPlayer::Preload preload) |
225 { | 226 { |
226 m_preload = preload; | 227 m_preload = preload; |
227 | 228 |
228 if (m_webMediaPlayer) | 229 if (m_webMediaPlayer) |
229 m_webMediaPlayer->setPreload(static_cast<WebMediaPlayer::Preload>(preloa d)); | 230 m_webMediaPlayer->setPreload(static_cast<WebMediaPlayer::Preload>(preloa d)); |
230 } | 231 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 } | 308 } |
308 | 309 |
309 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) | 310 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) |
310 { | 311 { |
311 visitor->trace(m_client); | 312 visitor->trace(m_client); |
312 } | 313 } |
313 | 314 |
314 #endif | 315 #endif |
315 | 316 |
316 } // namespace blink | 317 } // namespace blink |
OLD | NEW |