Fixed the Javacript error in the YouTube player
Fixes #5189
Fixed the YouTube player duration not updating properly
Merge pull request #5299 from LaurentGoderre/fix-youtube

Fix youtube issues