clappr / dash-shaka-playback

A dash playback (based on shaka-player) for :clapper: Clappr
BSD 3-Clause "New" or "Revised" License
77 stars 27 forks source link

Prevent access of invalid references #91

Closed joaopaulovieira closed 3 years ago

joaopaulovieira commented 3 years ago

Summary

Some calls to this.shakaPlayerInstance.getManifest() are doing before one valid shaka player instance exists. This PR prevents those access to avoid log noises.

Changes

How to test

A picture is worth a thousand words

Before

https://user-images.githubusercontent.com/5631063/103773574-0775fc80-500a-11eb-8f80-2481cb30202f.mov

After

https://user-images.githubusercontent.com/5631063/103773598-1197fb00-500a-11eb-9739-af2f5243f61c.mov