Alas, no luck so far...it is working as regular but there is no preview image.....I'm sorry I am out of my depth and cannot make suggestions here......hopefully we can get it to work?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
black canvas with flv video problem - swfobject customization?
- Previous 10 entries
- 1
- Page 22(current)
- 3
- Next 10 entries
Man, I'm just not with it today. Would help if I used the URL of the image and not the object itself.
public function Player($width = null, $height = null)
{
if($width === null) $width = self::$video_width;
if($height === null) $height = self::$video_height;
$image = ($thumb = $this->VideoThumbnail()) ? $thumb->CroppedImage($width,$height)->URL : "";
self::$player_count++;
Requirements::javascript('dataobject_manager/code/flv/swfobject.js');
Requirements::customScript(sprintf(
"swfobject.embedSWF('%s','player-%s','%d','%d','9.0.0','expressInstall.swf',{file : '%s',image : %s},{allowscriptaccess : 'true', allowfullscreen : '%s'})",
$this->SWFLink(),
self::$player_count,
$width,
$height,
$this->FLVLink(),
$image,
$this->AllowFullScreen()
)
);
return "<div id='player-".self::$player_count."'>Loading...</div>";
}
Hi there UncleCheese... I have reinstalled DataObject_Manager from SVN and placed the new code in FLV.php and am getting the "Loading......" again - almost there I hope!!
Uncle Cheese - we got it!!!!!!!!!!!!!!!!!! I pasted the earlier revised line 251 code into your latest function and it works great. THANKS A MILLION - the local non-profit sustainability organization I am helping - will really benefit from all the hard work you have done developing these features and helping silverstripe newbies like me implement quality multimedia solutions. THANKS AGAIN UNCLE CHEESE
Could you send me a link?
Sorry, missed your last message. Yay! It's working. Rock on, dude.
I'll roll that into SVN.
Actually, just to be sure, can you paste in the Player() function that ultimately worked? Thanks.
public function Player($width = null, $height = null)
{
if($width === null) $width = self::$video_width;
if($height === null) $height = self::$video_height;
$image = ($thumb = $this->VideoThumbnail()) ? $thumb->CroppedImage($width,$height)->URL : "";
self::$player_count++;
Requirements::javascript('dataobject_manager/code/flv/swfobject.js');
Requirements::customScript(sprintf(
"swfobject.embedSWF('%s','player-%s','%d','%d','9.0.0','expressInstall.swf',{file : '%s',image : '%s'},{allowscriptaccess : 'true', allowfullscreen : '%s'})",
$this->SWFLink(),
self::$player_count,
$width,
$height,
$this->FLVLink(),
$image,
$this->AllowFullScreen()
)
);
return "<div id='player-".self::$player_count."'>Loading...</div>";
}
- Previous 10 entries
- 1
- Page 22(current)
- 3
- Next 10 entries