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

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: nits Created 6 years, 6 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
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebMediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebMediaPlayerClientImpl.cpp
diff --git a/Source/web/WebMediaPlayerClientImpl.cpp b/Source/web/WebMediaPlayerClientImpl.cpp
index 73fd7dd601b9b5d42df2c0e5aca0847d29a7d8e6..daf680968bdc102e5388be4d30a665f0dc7c6636 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);
}
+WebMediaPlayer::TrackId 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(WebMediaPlayer::TrackId id)
+{
+ mediaElement().removeAudioTrack(id);
+}
+
+WebMediaPlayer::TrackId 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(WebMediaPlayer::TrackId id)
+{
+ mediaElement().removeVideoTrack(id);
+}
+
void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* textTrack)
{
m_client->mediaPlayerDidAddTextTrack(textTrack);
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698