boffbowsh/ss_tvos

Player() object gets destroyed after reference is lost

Opened this issue · 0 comments

jyc66 commented

I've had video streams stop playing after anywhere from 5 seconds to 20-30 minutes since upgrading to tvOS10. I believe I've tracked it down to the Player object. It's locally defined and at some point the system destroys the object since there are no references to it. The solution is to define it as a global variable.

Relevant area:
var player = new Player();
var video = new MediaItem('video', this.url + authToken);