Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/src/tech/ShakaTech.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//@ts-ignore
import { Player } from 'shaka-player';
import shaka from 'shaka-player';
import { IWebPlayerOptions } from '../WebPlayer';
import BaseTech, { IVideoLevel, ITrack, getTextTrackId } from './BaseTech';
import { PlayerEvent } from '../util/constants';
Expand All @@ -10,7 +10,8 @@ export default class DashPlayer extends BaseTech {

constructor(opts: IWebPlayerOptions) {
super(opts);
this.shakaPlayer = new Player(this.video);
shaka.polyfill.installAll();
this.shakaPlayer = new shaka.Player(this.video);

const restrictToElementSize = !opts.disablePlayerSizeLevelCap;
this.shakaPlayer.configure({ abr: { restrictToElementSize: restrictToElementSize } });
Expand Down
2 changes: 1 addition & 1 deletion packages/demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ExampleStreams = [
{ title: "MPD VOD", url: "https://lab.cdn.eyevinn.technology/osc/osc-reel/a4e1156e-f872-455f-9f1f-be73b5effba8/manifest.mpd" },
// { title: "HLS VOD SUBS & AUDIO", url: "http://sample.vodobox.com/planete_interdite/planete_interdite_alternate.m3u8"},
{ title: "HLS LIVE", url: "https://d2fz24s2fts31b.cloudfront.net/out/v1/6484d7c664924b77893f9b4f63080e5d/manifest.m3u8" },
{ title: "MPD LIVE", url: "https://d2fz24s2fts31b.cloudfront.net/out/v1/3b6879c0836346c2a44c9b4b33520f4e/manifest.mpd" },
// { title: "MPD LIVE", url: "https://d2fz24s2fts31b.cloudfront.net/out/v1/3b6879c0836346c2a44c9b4b33520f4e/manifest.mpd" }, // 404 - needs replacement
{ title: "HLS LIVE SSAI", url: "https://edfaeed9c7154a20828a30a26878ade0.mediatailor.eu-west-1.amazonaws.com/v1/master/1b8a07d9a44fe90e52d5698704c72270d177ae74/AdTest/master.m3u8" },
{ title: "HLS LIVE SGAI", url: "https://eyevinn-sgaitest.eyevinn-sgai-ad-proxy.auto.prod.osaas.io/loop/master.m3u8" },
// { title: "WHEP", url: "https://srtwhep.lab.sto.eyevinn.technology:8443/channel" }
Expand Down