As explained in [https://github.com/mozilla/popcorn-js/issues/440](this issue on pocketsphinx-js repository), Youtube API v2 is deprecated, and duration retrieved with a call to that API (in public/src/util/mediatypes.js) is wrong, it always returns 236 seconds.
As explained in [https://github.com/mozilla/popcorn-js/issues/440](this issue on pocketsphinx-js repository), Youtube API v2 is deprecated, and duration retrieved with a call to that API (in
public/src/util/mediatypes.js
) is wrong, it always returns 236 seconds.I proposed a valid way to retrieve the duration and [https://github.com/mozilla/popcorn-js/pull/441](opened a pull request in pocketsphinx-js). I can make one for that repository if that helps.