videojs/video.js — pull request #884 by eXon (2013-12-10 05:58:48+00:00)
Title: Fix to reuse HTML5 tech

Two bugs were existing for Video.js when you were trying to change the tech back to HTML5.

1. The element wasn't adding himself back to the DOM.
2. The duration / volume of the player were not updated when we switch back to the HTML5 tech.

See http://jsbin.com/ocOrogAT/4 (http://jsbin.com/ocOrogAT/4/edit)

1. The first Html5 video is playing correctly.
2. The first Youtube video is playing correctly.
3. The second Html5 video is playing outside the DOM
4. The second Html5 video has the wrong duration (hasn't been updated)

If you know a smarter way to fix it, let me know. The way to fix the duration/volume looks pretty hackish to me.

(related to https://github.com/eXon/videojs-youtube/issues/45)