blob: 3501dcbcdc5cbd8ac7472000a03242e8deb68cc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/android/media_player_android.h"
#include "base/logging.h"
#include "media/base/android/media_drm_bridge.h"
#include "media/base/android/media_player_manager.h"
namespace media {
MediaPlayerAndroid::MediaPlayerAndroid(
int player_id,
MediaPlayerManager* manager,
const RequestMediaResourcesCB& request_media_resources_cb,
const ReleaseMediaResourcesCB& release_media_resources_cb)
: request_media_resources_cb_(request_media_resources_cb),
release_media_resources_cb_(release_media_resources_cb),
player_id_(player_id),
manager_(manager) {
}
MediaPlayerAndroid::~MediaPlayerAndroid() {}
GURL MediaPlayerAndroid::GetUrl() {
return GURL();
}
GURL MediaPlayerAndroid::GetFirstPartyForCookies() {
return GURL();
}
void MediaPlayerAndroid::SetCdm(BrowserCdm* /* cdm */) {
// Players that support EME should override this.
NOTREACHED() << "EME not supported on base MediaPlayerAndroid class.";
return;
}
} // namespace media
|