You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return type for Player.currentSource() should include the src property with the string value for the source url.
This is even how it is described in the documentation for the Tech class, however, the type for the Tech class doesn't actually include this property so trying to access it results in a type error.
Steps to reproduce
import videojs from the npm module
initialise a player
Call Player.currentSource().src in a project with typescript enabled
run type checking and observe the type error
Errors
No response
What version of Video.js are you using?
8.19.1
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
any
What OS(es) and version(s) does this occur with?
any
The text was updated successfully, but these errors were encountered:
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Description
The return type for
Player.currentSource()
should include thesrc
property with the string value for the source url.This is even how it is described in the documentation for the
Tech
class, however, the type for theTech
class doesn't actually include this property so trying to access it results in a type error.Steps to reproduce
Player.currentSource().src
in a project with typescript enabledErrors
No response
What version of Video.js are you using?
8.19.1
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
any
What OS(es) and version(s) does this occur with?
any
The text was updated successfully, but these errors were encountered: