Fix a Youtube player JS error that getDuration is not a function

Fixes #4164
Merge pull request #4167 from LaurentGoderre/multimedia-fixes

Fix a Youtube player JS error that getDuration is not a function