clappr/dash-shaka-playback

[stable 1.0.12] Cannot set property 'shaka' of undefined

me-vlad opened this issue ยท 25 comments

Browser: All with MSE (tested on Chrome, Chromium)

Clappr Version: 0.2.57
dash-shaka-playback version: 1.0.12

Steps to reproduce:

config tested with cdn.clappr.io:

var playerElement = document.getElementById("player-wrapper");
Clappr.Log.setLevel(0);
var player = new Clappr.Player({
  source: 'http://demo.unified-streaming.com/video/ateam/ateam.ism/ateam.mpd',
  baseUrl: '/latest',
  poster: 'http://clappr.io/poster.png',
  mute: true,
  height: 360,
  width: 640,
  plugins: [DashShakaPlayback]
});
player.attachTo(playerElement);

2016-06-27 22-22-57

Thanks @me-vlad ! is this reproducible on BETA version? can you use the "BETA"?

@leandromoreira my DASH stream has some issues with shaka2, so currently I use shaka1 (dash-shaka-playback stable with older clappr 0.2.51)

@me-vlad okay, I'll branch out then and try to fix! :) if you want, you can open issues to theses issues too.

@leandromoreira thanks!
I think shaka2 issue not caused by clappr plugin, I can reproduce it on shaka demo page http://shaka-player-demo.appspot.com/demo/

You can then open an issue at https://github.com/google/shaka-player to help them build a better player!

@leandromoreira sure, I'll clarify details and will open an issue at shaka-player repo

you can refer this issue there too if you want.

@leandromoreira just tested on cdn.clappr.io with v. 1.0.13 from https://cdn.jsdelivr.net/clappr.dash-shaka-playback/1.0.13/dash-shaka-playback.js

I see an error after clicking on Run button:
Cannot read property 'isLive' of undefined

2016-06-28 19-01-56

it should be fixed now @me-vlad thanks again

I see, the weird thing is if you just use the playback (npm start) everything run just fine.

@leandromoreira cool, it works!
just one minor issue - stream starts just after second click on the player (when autoPlay is set to false)

I'm trying to fix that now @me-vlad :D 17 is up!

17 does not solve that too!

I bet solved it.

:) yes, but...
after clicking on stop button player starts buffering

is it live? do you have this source?

yes, you can try with this stream
http://live.unified-streaming.com/loop/loop.isml/loop.mpd

var playerElement = document.getElementById("player-wrapper");
Clappr.Log.setLevel(0);
var player = new Clappr.Player({
  source: 'http://live.unified-streaming.com/loop/loop.isml/loop.mpd',
  baseUrl: '/latest',
  poster: 'http://clappr.io/poster.png',
  mute: true,
  height: 360,
  width: 640,
  plugins: [DashShakaPlayback]
});
player.attachTo(playerElement);

@me-vlad I think it's finally solved thank you so much for all the tests, can you redo all of them?

@leandromoreira thanks, I tested live and vod stream again with https://cdn.jsdelivr.net/clappr.dash-shaka-playback/1.0.19/dash-shaka-playback.js, VOD works fine.
Live stream starts, after clicking on stop button stream stops and mediacontrol bar disappears but big play button not appears.
Streams starts again after click on the player.

Live test config:

var playerElement = document.getElementById("player-wrapper");
Clappr.Log.setLevel(0);
var player = new Clappr.Player({
  source: 'http://live.unified-streaming.com/loop/loop.isml/loop.mpd',
  baseUrl: '/latest',
  poster: 'http://clappr.io/poster.png',
  mute: true,
  height: 360,
  width: 640,
  plugins: [DashShakaPlayback],
  hideMediaControl: false
});
player.attachTo(playerElement);

@me-vlad I'm going to close this one and I ask you to open a new one :) (I noticed someone had catch this same bug while on hls ... maybe this is a clappr related, anyway)

let's wait a new clappr then we can update both versions! Thanks again.