Skip to content

Commit

Permalink
Merge pull request #1807 from Orange-OpenSource/MssPackageManagement
Browse files Browse the repository at this point in the history
Mss package management
  • Loading branch information
Dan Sparacio authored Mar 3, 2017
2 parents d19e523 + fc59498 commit 3f28fa8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
7 changes: 1 addition & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ import MetricsReporting from './src/streaming/metrics/MetricsReporting';
import MediaPlayerFactory from './src/streaming/MediaPlayerFactory';
import {getVersionString} from './src/core/Version';

import MssHandler from './src/mss/MssHandler';


// Shove both of these into the global scope
var context = (typeof window !== 'undefined' && window) || global;

Expand All @@ -51,8 +48,6 @@ dashjs.Protection = Protection;
dashjs.MetricsReporting = MetricsReporting;
dashjs.MediaPlayerFactory = MediaPlayerFactory;
dashjs.Version = getVersionString();
dashjs.MssHandler = MssHandler;


export default dashjs;
export { MediaPlayer, Protection, MetricsReporting, MediaPlayerFactory, MssHandler};
export { MediaPlayer, Protection, MetricsReporting, MediaPlayerFactory};
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 3f28fa8

Please sign in to comment.