Hello,
i need subtitles in a 360° Video which is running in a videopano Tour.
I dont wanna use two videos, one with and one without subtitles because of the size. Instead i would like to use the typical subtitle files like .sub, .txt, .srt or .vtt. But how can i manage this to get this to work? Is it working over the textfield plugin or the video plugin?
If possible please add some example code. There are a few topics about this but no solution which is working without putting every line in a single textfield...
Here is the videopano Code.
Code
<krpano>
<action name="startup" autorun="onstart">
if(device.panovideosupport == false,
error('Sorry, but panoramic videos are not supported by your current browser!');
,
loadscene(videopano);
);
</action>
<scene name="videopano" title="360° Video">
<!-- include the videoplayer interface / skin (with VR support) -->
<include url="skin/videointerface.xml" />
<include url="skin/vtourskin_design_glass.xml" />
<!-- include the videoplayer plugin -->
<plugin name="video"
url.html5="%VIEWER%/plugins/videoplayer.js"
url.flash="%VIEWER%/plugins/videoplayer.swf"
posterurl="video-3840x1920-poster.jpg"
pausedonstart="false"
loop="false"
volume="1.0"
onloaded="add_video_sources(); videointerface_play('Hoch 3840x1920');"
userinteractionworkarounds="true"
/>
<!-- use the videoplayer plugin as panoramic image source -->
<image devices="panovideosupport">
<sphere url="plugin:video" />
</image>
<!-- set the default view -->
<view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fovmin="75" fovmax="130" distortion="0.0" />
<action name="add_video_sources" >
videointerface_addsource('Gering 1024x512', 'video-1024x512.mp4', 'video-1024x512-poster.jpg');
videointerface_addsource('Mittel 1920x960', 'video-1920x960.mp4', 'video-1920x960-poster.jpg');
videointerface_addsource('Hoch 3840x1920', 'video-3840x1920.mp4', 'video-3840x1920-poster.jpg');
);
videointerface_play('Hoch 3840x1920');
</action>
</scene>
</krpano>
Display More
I hope someone knows what i mean and can give me some answers
would be really nice
thanks in advance