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.
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
You'll need to edit the video player controller code and template to add your own code to pull a different poster image.
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.
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.
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.
Hi Rayan That work only pending in my project.
I am new to the silverstripe.