X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fvideo.php;h=6f22400d107fb2b7ae920a7ace04181e35df1d21;hb=ad7daf2de4288cff974e97ec9290533ba732df3b;hp=0003f742e277209f709b146906f4c479ce573905;hpb=c3cb1c599db718a4fd81c7df57850fced9f64c02;p=living-lab-site.git diff --git a/application/controllers/video.php b/application/controllers/video.php index 0003f74..6f22400 100644 --- a/application/controllers/video.php +++ b/application/controllers/video.php @@ -1,7 +1,7 @@ $data['video']['title'] . ' -- ' . $this->config->item('site_name'), - 'css' => array('jquery-ui.css', 'NextShare_VLC_plugin.css'), - 'js' => array('jquery.min.js', 'jquery-ui.min.js', 'NextShare_VLC_plugin.js', 'video.js'), + 'css' => array( + 'jquery-ui.css', + 'jquery.ui.nsvideo.css', + 'video.css' + ), + 'js' => array( + 'jquery.js', + 'jquery-ui.js', + 'jquery.ui.nsvideo.js' + ), //'metas' => array('description'=>'','keywords'=>'') ); $this->load->library('html_head_params', $params); @@ -50,9 +58,14 @@ class Video extends CI_Controller { $this->load->view('header'); // Preloading video plugin. - // TODO plugin auto (type + definition) - $data['plugin_content'] = $this->_plugin('ns-html5', - $data['video']['url'][0], TRUE); + // TODO plugin auto: type and format + if ($data['plugin_type'] == 'auto') + $data['plugin_type'] = 'ns-html5'; + $data['asset_index'] = 0; + + // TODO remove old AJAX plugin content +// $data['plugin_content'] = $this->_plugin('ns-html5', +// $data['video']['url'][0], TRUE); $this->load->view('video/watch_view', $data);