In D5 using the jwplayer module I was able to make a call like this.

   $params['width'] = 720;
   $params['height'] = 440;
   $params['file'] = 'viewName';
   $params['playlist'] = 'right';
   $params['playlistsize'] = '140';
   $params['rotatetime'] = '3';
   $params['autostart'] = 'true';
   $params['link'] = 'http://www.mywebsite.com';
   print jwplayer_get_player($params);

where 'file' was the name of my playlist view. For the dash player I'm able to do the same thing pretty much only change the print command to 'dashplayer_get_player($params);. Now that I'm upgrading to D6 and the flv media player I'm wondering if there is a similar call for the flvmediaplayer? There doesn't seem to be a flvmdiaplayer_get_player() function.

Comments

cparrish817’s picture

for now what I've done is switch to using the swftools so now my code reads like this.

   $params['width'] = 720;
   $params['height'] = 440;
   $params['file'] = 'viewName';
   $params['playlist'] = 'right';
   $params['playlistsize'] = '140';
   $params['rotatetime'] = '3';
   $params['autostart'] = 'true';
   $params['link'] = 'http://www.mywebsite.com';
   print swf('viewName', array(params=>$params));

I'm still using jwplayer as my video player but accessing though swftools, Which just seemed the easier way to go.

arthurf’s picture

Status: Active » Closed (fixed)