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

Unified Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 284513003: Implement AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: complete the transition to WebTrackId Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/WebMediaPlayerClientImpl.cpp
diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
index 09635ef423ac7da4eb5cd1becf68b75abdb9aa93..5c91feaaf3d3409ca21eab2d6ace85ed56219efa 100644
--- a/Source/web/WebMediaPlayerClientImpl.cpp
+++ b/Source/web/WebMediaPlayerClientImpl.cpp
@@ -146,6 +146,26 @@ void WebMediaPlayerClientImpl::setWebLayer(blink::WebLayer* layer)
m_client->mediaPlayerSetWebLayer(layer);
}
+WebTrackId WebMediaPlayerClientImpl::addAudioTrack(const WebString& id, AudioTrackKind kind, const WebString& label, const WebString& language, bool enabled)
+{
+ return mediaElement().addAudioTrack(id, kind, label, language, enabled);
+}
+
+void WebMediaPlayerClientImpl::removeAudioTrack(WebTrackId id)
+{
+ mediaElement().removeAudioTrack(id);
+}
+
+WebTrackId WebMediaPlayerClientImpl::addVideoTrack(const WebString& id, VideoTrackKind kind, const WebString& label, const WebString& language, bool selected)
+{
+ return mediaElement().addVideoTrack(id, kind, label, language, selected);
+}
+
+void WebMediaPlayerClientImpl::removeVideoTrack(WebTrackId id)
+{
+ mediaElement().removeVideoTrack(id);
+}
+
void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* textTrack)
{
m_client->mediaPlayerDidAddTextTrack(textTrack);

Powered by Google App Engine
This is Rietveld 408576698