K
K
ksenia_strakhova2019-10-16 18:08:31
Video
ksenia_strakhova, 2019-10-16 18:08:31

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

1 answer(s)
K
Kudis, 2019-10-16
@kudis

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 question

Ask a Question

731 491 924 answers to any question