Join GitHub today
Fix NO_SRC when play is hit before the video elem src is set #3378
Previously, if play is triggered before the video element has a source, Video.js would throw PLAYER_ERR_NO_SRC and this message would flash in the player briefly.
Specific Changes proposed
This checks whether the player has a source set on play, and if not, adds a loadstart handler to the tech to ensure that the source is loaded before playing.