Skip to content

Commit

Permalink
do not add mss samples, if no mss package has been loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosang committed Feb 27, 2017
1 parent 52e83f5 commit 5f58fe3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
10 changes: 10 additions & 0 deletions samples/dash-if-reference-player/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ app.controller('DashController', function($scope, sources, contributors) {

sources.query(function (data) {
$scope.availableStreams = data.items;
//if no mss package, remove mss samples.
let MssHandler = dashjs.MssHandler; /* jshint ignore:line */
if (typeof MssHandler !== 'function')
{
for(var i = $scope.availableStreams.length - 1; i >= 0; i--){
if($scope.availableStreams[i].name === 'Smooth Streaming'){
$scope.availableStreams.splice(i,1);
}
}
}
});

contributors.query(function (data) {
Expand Down
42 changes: 21 additions & 21 deletions samples/dash-if-reference-player/app/sources.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
{
"items": [
{
"name": "Smooth Streaming",
"submenu": [
{
"url": "http://2is7server2.rd.francetelecom.com/hasplayer/VOD_1/VOD_1.ism/manifest",
"name": "Prince Of Persia"
},
{
"url": "http://2is7server1.rd.francetelecom.com/VOD/BBB-SD/big_buck_bunny_1080p_stereo.ism/Manifest",
"name": "Big Buck Bunny"
},
{
"url": "http://playready.directtaps.net/smoothstreaming/SSWSS720H264/SuperSpeedway_720.ism/Manifest",
"name": "Super Speedway"
},
{
"url": "http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720.ism/Manifest",
"name": "Super Speedway + PlayReady DRM"
}
]
},
{
"name": "VOD (Static MPD)",
"submenu": [
Expand Down Expand Up @@ -1416,6 +1395,27 @@
"url": "http://live.unified-streaming.com/loop/loop.isml/loop.mpd?format=mp4&session_id=25020"
}
]
},
{
"name": "Smooth Streaming",
"submenu": [
{
"url": "http://2is7server2.rd.francetelecom.com/hasplayer/VOD_1/VOD_1.ism/manifest",
"name": "Prince Of Persia"
},
{
"url": "http://2is7server1.rd.francetelecom.com/VOD/BBB-SD/big_buck_bunny_1080p_stereo.ism/Manifest",
"name": "Big Buck Bunny"
},
{
"url": "http://playready.directtaps.net/smoothstreaming/SSWSS720H264/SuperSpeedway_720.ism/Manifest",
"name": "Super Speedway"
},
{
"url": "http://playready.directtaps.net/smoothstreaming/SSWSS720H264PR/SuperSpeedway_720.ism/Manifest",
"name": "Super Speedway + PlayReady DRM"
}
]
}
]
}

0 comments on commit 5f58fe3

Please sign in to comment.