Closed (fixed)
Project:
Flowplayer API
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2011 at 14:52 UTC
Updated:
4 Jan 2013 at 14:36 UTC
I'm attempting to use the rtmp streaming plugin without success. Is there any additional configuration required to make use of the plugin?
function MYTHEME_preprocess_page(&$vars) {
if ($vars['node']->type == 'video') {
global $language;
$current_language = $language->language;
$video_desc = $vars['node']->field_video_desc[$current_language][0]['value'];
$video_width = $vars['node']->field_video_width[$current_language][0]['value'];
$video_height = $vars['node']->field_video_height[$current_language][0]['value'];
$video_path = $vars['node']->field_video_path[$current_language][0]['value'];
$video_path = 'mp4:saw/2011/lechasseur/IMG_0010.mp4';
flowplayer_add('#video-player', array(
'clip' => array(
'provider' => 'rtmp',
'url' => 'mp4:saw/2011/lechasseur/IMG_0010.mp4',
),
'plugins' => array(
'rtmp' => array(
'url' => 'flowplayer.rtmp.swf',
'netConnectionUrl' => 'rtmp://cdn30.canadacast.ca/vod',
),
),
));
$vars['video_player'] = "<div id=\"video-player\" style=\"width:" . $video_width . "px; height:" . $video_height . "px;\"></div>";
}
}
Comments
Comment #1
mlecha commentedUsing 'log' => array( 'level' => 'debug'), // and checking the log Firebug. Looks like the player is hanging on the loading of rtmp plugin.
Any thoughts?
[LOG] time 12:06:20.969 :: org.flowplayer.view::PluginLoader : intitializeBuiltInPlugins() [Loadable] 'rtmp', builtIn false
[LOG] time 12:06:20.969 :: org.flowplayer.view::PluginLoader : intitializeBuiltInPlugins() [Loadable] 'controls', builtIn false
[LOG] time 12:06:21.00 :: org.flowplayer.view::PluginLoader : starting to load plugin from url http://localhost/sites/all/modules/flowplayer/flowplayer/flowplayer.rtmp...
[LOG] time 12:06:21.00 :: org.flowplayer.view::Preloader : Launcher instantiated [object Launcher]
[LOG] time 12:06:21.16 :: org.flowplayer.view::Preloader : init()
[LOG] time 12:06:21.16 :: org.flowplayer.view::Preloader : stage has size 480 x 320
[LOG] time 12:06:21.16 :: org.flowplayer.view::Preloader : init(), _app already instantiated returning
[LOG] time 12:06:21.517 :: org.flowplayer.view::PluginLoader : load in progress
[LOG] time 12:06:21.532 :: org.flowplayer.view::PluginLoader : load in progress
Comment #2
mlecha commentedWorks!
To answer my own questionI "Is there any additional configuration required to make use of the plugin?"
Yes, I had to update the Flowplayer .swf files to a newer version. Clear Drupal cache. And clear browser cache to load new .swf files.
Comment #4
artt commentedThanks.
The same question and answer happened to me.