+
+ /**
+ * AJAX page which retrieves a video plugin.
+ *
+ * The associated with this controller should be parameter type
+ * concatenated with '_plugin_view' and must be located in
+ * 'application/views/video'.
+ *
+ * @param string $type 'ns-vlc', 'ns-html5'
+ */
+ public function plugin($type)
+ {
+ $data['url'] = $this->input->post('url', TRUE);
+
+ $this->load->view('video/'. $type . '_plugin_view', $data);
+ }