1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "media/base/android/media_player_android.h" 6 7 #include "base/logging.h" 8 #include "media/base/android/media_drm_bridge.h" 9 #include "media/base/android/media_player_manager.h" 10 11 namespace media { 12 13 MediaPlayerAndroid::MediaPlayerAndroid( 14 int player_id, 15 MediaPlayerManager* manager) 16 : player_id_(player_id), 17 manager_(manager) { 18 } 19 20 MediaPlayerAndroid::~MediaPlayerAndroid() {} 21 22 bool MediaPlayerAndroid::IsRemote() const { 23 return false; 24 } 25 26 GURL MediaPlayerAndroid::GetUrl() { 27 return GURL(); 28 } 29 30 GURL MediaPlayerAndroid::GetFirstPartyForCookies() { 31 return GURL(); 32 } 33 34 void MediaPlayerAndroid::SetDrmBridge(MediaDrmBridge* drm_bridge) { 35 // Not all players support DrmBridge. Do nothing by default. 36 return; 37 } 38 39 void MediaPlayerAndroid::OnKeyAdded() { 40 // Not all players care about the decryption key. Do nothing by default. 41 return; 42 } 43 44 } // namespace media 45