Hi,
We wish implement the 360° with dynamic videos + audios url. I can't sadly generate on the fly the xml. I use the initvars in the html page and it works great as I dont have the audio file for iphone.
If I add the audio like below, the url is with both video + audio link > error: loading video failded.
Code
<script> embedpano({initvars:{ myposter:"http://www.metadelic.com/misc/krpano/examples/360/gotthard_video-1024x512.jpg", mylowvideo:"http://www.metadelic.com/misc/krpano/examples/360/gotthard_video-1024x512.mp4|http://www.metadelic.com/misc/krpano/examples/360/iphone-audio.m4a", myhighvideo:"http://www.metadelic.com/misc/krpano/examples/360/gotthard_video-1024x512.mp4|http://www.metadelic.com/misc/krpano/examples/360/iphone-audio.m4a" }, swf:"360video.swf", xml:"/misc/krpano/examples/360/360var.xml", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:true});</script>
and the call in xml:
Code
<action name="add_video_sources"> videointerface_addsource('1024x512', '%$mylowvideo%', '%$myposter%'); videointerface_addsource('2560x1280', '%$myhighvideo%', '%$myposter%');</action>
Can be seen here: http://www.metadelic.com/misc/krpano/360var.html
If I copy the whole links and paster it in xml for test purpose, they works:
Code
<action name="add_video_sources"> videointerface_addsource('1024x512', 'http://www.metadelic.com/misc/krpano/examples/360/gotthard_video-1024x512.mp4|http://www.metadelic.com/misc/krpano/examples/360/iphone-audio.m4a', '%$myposter%'); videointerface_addsource('2560x1280', 'http://www.metadelic.com/misc/krpano/examples/360/gotthard_video-1024x512.mp4|http://www.metadelic.com/misc/krpano/examples/360/iphone-audio.m4a', '%$myposter%');</action>
How can I use the initvars with a pipe in links in html page to handle 2 resolutions + audio for iphone (same track for both resolutions)?
Thank you for your input.
Best regards,
Dom