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

Fixes #4164