Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

image link to the video as dynamically


Go to End
Reply


10 Posts   1282 Views

Avatar
chinni

Community Member, 7 Posts

23 November 2011 at 1:02am

Edited: 26/11/2011 2:13am

Hi

I need to display an image. when we click on the image that video should be play in the place of image only.

<% control video %>$Player(250,250)<% end_control %>

it is playing the video but it taking the default image but i need to display a image through database
that is $image

when i click on $image i need play a $video in place of $image only not the light box or any thing

Avatar
Ryan M.

Community Member, 309 Posts

23 November 2011 at 1:59pm

Edited: 26/11/2011 2:13am

You'll need to edit the video player controller code and template to add your own code to pull a different poster image.

Avatar
chinni

Community Member, 7 Posts

23 November 2011 at 5:29pm

Edited: 26/11/2011 2:13am

Hi Ryan

Thank u for reply

plz tell me how to edit that code. I am new new to the silverstripe. if dont mind u have code plz post that code.

Avatar
Ryan M.

Community Member, 309 Posts

25 November 2011 at 11:11pm

Edited: 26/11/2011 2:13am

It's in dataobject_manager/code/flv/FLV.php on line 243. You should extend the FLV class and modify the player code to return the image from your database in place of the default image.

Avatar
chinni

Community Member, 7 Posts

26 November 2011 at 12:16am

Edited: 26/11/2011 2:13am

any one help me plz

Avatar
Ryan M.

Community Member, 309 Posts

26 November 2011 at 6:35pm

If you want explicit instructions on how to do it then I suggest you hire an experienced developer instead of fishing for free work on this forum.

Avatar
chinni

Community Member, 7 Posts

26 November 2011 at 6:39pm

Hi Rayan That work only pending in my project.
I am new to the silverstripe.

Avatar
Ryan M.

Community Member, 309 Posts

26 November 2011 at 6:43pm

I suggest you read the SilverStripe documentation at http://doc.silverstripe.org
Here are some topics that might be relevant to what you're trying to do:

http://doc.silverstripe.org/sapphire/en/topics/datamodel
http://doc.silverstripe.org/sapphire/en/reference/sqlquery

Go to Top