Closed Christilut closed 3 years ago
Thank you! We'll need to add some test cases around this. The mediaUrl
should be optional only if you're using an external player object. If you're using the HTMLMediaElement based player then it should still be required.
I've changed the typings so that mediaElement
is no longer required since it's not used when using an arraybuffer.
I'll add some tests soon.
Would you mind putting this change on a branch, please?
Removed the required for mediaUrl in the setSource method.
If no mediaUrl is present, it will run
playerCanPlayHandler
since no callback is made otherwise.See #351