Answer the question
In order to leave comments, you need to log in
How to output video from infoblock property?
I create a property of the File type in the infoblock, I specified the file types: mpg, avi, wmv, mpeg, mpe, flv, mp4
What code should be inserted into template.php to display it in the public part of the site?
Answer the question
In order to leave comments, you need to log in
For the property 'MY_VIDEO' it would be like this:
First in result_modifier.php get the src of the file
then paste the resulting $arItem['PROPERTY_MY_VIDEO_SRC'] into template.php in the place you need.
You can use the standard player to play . Only necessarily in html5 mode - no flash.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question