Closed mattsobo closed 7 years ago
@benjipott any update? Is this being maintained?
this.player_.options_['sources']
probably should be rewritten to this.player().currentSrc()
so you aren't accessing "private" variables. However, that will only get the previously active source.
Also, the this.player_.options_['sources']
is only generated via the Player.getTagSettings()
method that is called in the constructor. So dynamic sources would be impossible to retrieve.
Complex sources aren't even available in video.js
, but I have had an outstanding pull request for those features.
If I load the player via the following:
The error occurs because this.player.options['sources'] is empty. My video tag has no sources defined as these are loaded dynamically via the script. Can the src also be queried to get a list of videos? Also, this.player_.currentTime() returns 0 no matter where the playback is.