* Duplicate paths are ignored.
* @param $path
*/
- public function addJs($path) {
+ public function addJs($path,$collection=null) {
- // If JS is external, it will be included via the pluginJs collection
- // Otherwise, it will be compiled into the main JS file
- $collection = (preg_match('#^https?://#i', $path) === 1) ? 'pluginJs' : 'jsFiles';
+ if(null===$collection) {
+ // If JS is external, it will be included via the pluginJs collection
+ // Otherwise, it will be compiled into the main JS file
+ $collection = (preg_match('#^https?://#i', $path) === 1) ? 'pluginJs' : 'jsFiles';
+ }
if (!in_array($path, $this->$collection)) {
$this->{$collection}[] = $path;
class videoLink extends wsHTML5Link {
public static function addVideoJS($compiler) {
- $compiler->addJs('js/libs/videojs/video.min.js');
+ $compiler->addJs('js/libs/videojs/video.withscalefix.js');
$compiler->addLess('videojs/videojs');
}