7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » image link to the video as dynamically
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 727 Views |
-
image link to the video as dynamically

23 November 2011 at 1:02am Last edited: 26 November 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 $imagewhen i click on $image i need play a $video in place of $image only not the light box or any thing
-
Re: image link to the video as dynamically

23 November 2011 at 1:59pm Last edited: 26 November 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.
-
Re: image link to the video as dynamically

23 November 2011 at 5:29pm Last edited: 26 November 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.
-
Re: image link to the video as dynamically

25 November 2011 at 11:11pm Last edited: 26 November 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.
-
Re: image link to the video as dynamically

26 November 2011 at 12:16am Last edited: 26 November 2011 2:13am
any one help me plz
-
Re: image link to the video as dynamically

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.
-
Re: image link to the video as dynamically

26 November 2011 at 6:39pm
Hi Rayan That work only pending in my project.
I am new to the silverstripe. -
Re: image link to the video as dynamically

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
| 727 Views | ||
| Go to Top | Next > |


