Skip to content

Commit b3b0673

Browse files
Manikanta Sivapalakhusika
authored andcommitted
dashplayer: ensure dashplayer used for .mpd
DashPlayer is a special player used to handle dash http streaming use cases which have .mpd extension. ScoreFactory to return highest score if "mpd" is found in the url. Change-Id: I266d1ecdfad2ba4c28e8f18dbf963ba4fe05ca42
1 parent eab41be commit b3b0673

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

dashplayer/DashFactory.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,12 @@ class DashPlayerFactory : public MediaPlayerFactory::IFactory {
3030
public:
3131
virtual float scoreFactory(const sp<IMediaPlayer>& client,
3232
const char* url,
33-
float curScore) {
34-
static const float kOurScore = 0.8;
35-
36-
if (kOurScore <= curScore)
37-
return 0.0;
38-
33+
float /*curScore*/) {
3934
if (!strncasecmp("http://", url, 7)) {
4035
size_t len = strlen(url);
4136
if (len >= 5 && !strcasecmp(".mpd", &url[len - 4])) {
42-
return kOurScore;
37+
ALOGI("Using DashPlayer for .mpd");
38+
return 1.0;
4339
}
4440
}
4541
return 0.0;

0 commit comments

Comments
 (0)