I'm trying to modify the VideoEasy template for the mediaelement.js player. My goal is to integrate captions that are provided together with the video url. I read in the VideoEasy documentation that it's possible to define your own custom variables. So I modified the template use a variable called "CC" for the caption file. It currently looks like this:
<video id="@@AUTOID@@" src="@@VIDEOURL@@" width="@@WIDTH@@" height="@@HEIGHT@@">
<track kind="subtitles" src="@@CC@@" />
</video>
Now lets say the video provided as follows:
<a href="myvideo.mp4">Video 1.1</a>, thus the VE replaces the <a>-Element with the mediaelement player. Now I want to specify a file with the captions, e.g.:
<a href="myvideo.mp4?CC=http://fullurl.to/mycaptions.vtt">Video 1.1</a>This should be translated into something like:
<video src="myvideo.mp4">
<track kind="subtitles" src="http://fullurl.to/mycaptions.vtt" />
</video>
The problem is that this doesn't work. What am I doing wrong? How can I specify a custom variable in the URL and use it in the VE templates?
Kind regards