Dolphin currently uses the browser's default HTML5 audio/video interface. I don't like that, so I've opted to use VideoJS to create a unified look across all devices and browsers. I wrote about this in a thread a while back, but I'll make a tutorial here.
First: Demo
You can see the new player in action here:
- Video: http://www.trydolphin.net/m/videos/view/sintel-trailer-1080p
- Audio: http://www.trydolphin.net/m/sounds/view/07-I-m-Henry-the-VIII-I-Am
Instructions
Edit /boonex/modules/html5av/classes/BxH5avModule.php and ...
1. Look for (around line 89):
$sOverride = ' <video controls preload="auto" autobuffer ' . $sAutoPlay . $sPoster . ' style="width:100%; height:' . getSettingValue('video', 'player_height') . 'px;" id="' . $sId . '"> ' . $sSourceWebm . ' <source src="' . BX_DOL_URL_ROOT . "flash/modules/video/get_file.php?id=" . $iFileId . "&ext=m4v&token=" . $sToken . '" />
Replace the whole bit with this:
$sOverride = ' <link href="//vjs.zencdn.net/4.12/video-js.css" rel="stylesheet"> <script src="//vjs.zencdn.net/4.12/video.js"></script> <video class="video-js vjs-default-skin vjs-big-play-centered" data-setup=\'{}\' width="100%" height="' . getSettingValue('video', 'player_height') . 'px" controls preload="auto" autobuffer ' . $sAutoPlay . $sPoster . ' id="' . $sId . '"> ' . $sSourceWebm . ' <source type=\'video/mp4\' src="' . BX_DOL_URL_ROOT . "flash/modules/video/get_file.php?id=" . $iFileId . "&ext=m4v&token=" . $sToken . '" />
2. Look for (around line 230):
$sOverride = ' <audio controls ' . $sAutoPlay . ' preload="auto" autobuffer style="width:100%" id="' . $sId . '">
Replace the whole bit with this:
$sOverride = ' <link href="//vjs.zencdn.net/4.12/video-js.css" rel="stylesheet"> <script src="//vjs.zencdn.net/4.12/video.js"></script> <audio class="video-js vjs-default-skin vjs-big-play-centered" data-setup=\'{}\' width="100%" controls ' . $sAutoPlay . ' preload="auto" autobuffer style="width:100%" id="' . $sId . '">
3. Look for (around line 344):
$sOverride = ' <video controls preload="auto" autobuffer id="' . $sId . '"> ' . $sSourceWebm . ' <source src="' . BX_DOL_URL_ROOT . "flash/modules/video_comments/get_file.php?id=" . $iFileId . "&ext=m4v&token=" . $sToken . '" />
Replace the whole bit with this:
$sOverride = ' <link href="//vjs.zencdn.net/4.12/video-js.css" rel="stylesheet"> <script src="//vjs.zencdn.net/4.12/video.js"></script> <video class="video-js vjs-default-skin vjs-big-play-centered" data-setup=\'{}\' width="100%" controls preload="auto" autobuffer id="' . $sId . '"> ' . $sSourceWebm . ' <source type=\'video/mp4\' src="' . BX_DOL_URL_ROOT . "flash/modules/video_comments/get_file.php?id=" . $iFileId . "&ext=m4v&token=" . $sToken . '" />
That's it. Clear all cache and take a look.