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   1201 Views

Avatar
chinni

23 November 2011 at 1:02am (Last edited: 26 November 2011 2:13am), Community Member, 7 Posts

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.

23 November 2011 at 1:59pm (Last edited: 26 November 2011 2:13am), Community Member, 309 Posts

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

23 November 2011 at 5:29pm (Last edited: 26 November 2011 2:13am), Community Member, 7 Posts

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.

25 November 2011 at 11:11pm (Last edited: 26 November 2011 2:13am), Community Member, 309 Posts

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

26 November 2011 at 12:16am (Last edited: 26 November 2011 2:13am), Community Member, 7 Posts

any one help me plz

Avatar
Ryan M.

26 November 2011 at 6:35pm Community Member, 309 Posts

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

26 November 2011 at 6:39pm Community Member, 7 Posts

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

Avatar
Ryan M.

26 November 2011 at 6:43pm Community Member, 309 Posts

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