Dear Genis,
On 02/12/2014 09:33 PM, Genis Musulmanbekov wrote:
Dear Ludmila,
We would like to place link to a video-file (which has been uploaded
before in 'webm' format) in a record of 'Thesis' collection.
What I need to do for the video playing?
Genis
If I understand correctly, you have uploaded a video record in the
Videos collection, and you would like to link it with another record, in
the Theses collection.
If you would like to show in the thesis record just the link to the
video, you can do this by updating the format template for the Theses
collection. As long as you are adding the recid of the video in the
metadata, you can either create a new format element that will display
this link in a customised manner, or you can use the BFE_FIELD directly
in the format template to display the value from the metadata with a
certain prefix and suffix.
If you would like to embed the video in the thesis record, in the sense
that you would like the player and not only a link, then you will need a
new custom format element. This format element will, in principle,
retrieve the recid of the video from the metadata of the thesis, and
then call the
bfe_video_platform_sources.format_element(BibFormatObject(recid_of_video))
Also, the format template for the thesis records will need to contain
the css and javascript used in the Video_HTML_detailed.bft (the ones
referenced at the top), as well as the html snippet for the video player:
<div class="video_black_band">
<div class="video_player">
<BFE_YOUR_NEW_ELEMENT />
<video id="mediaelement" controls preload>
</div>
</div>
Hope this helps!
Best regards,
Ludmila
--
Ludmila Marian
Software Engineer
CERN, IT Department, Digital Library Service Section