You are not logged in.

1

Thursday, May 19th 2016, 5:31pm

Video error -> image fallback

I'm having trouble loading with Safari and IE 11. Other browsers seem to load fine. I know there is a bug with Safari crossdomain video even with CORS, and don't know whats up with IE. Both say "loading video failed" in the log popover...

As much as I love the video pano, I need to create a fallback to simply show an image pano sphere. How can I do this without showing errors?

Can I do something with onvideoerror plugin listeners? Or do i do something dynamic with <image devices=""> since I know the browsers that are causing trouble?

Thanks!!

BTW I'm using v1.18.5

This post has been edited 1 times, last edit by "BOX" (May 19th 2016, 5:54pm)


2

Thursday, May 19th 2016, 10:49pm

Its not ideal, but i used device tags and it worked, and just in time. But I'd still like a more dynamic solution if possible. Here is what I did since the video was failing on Safari Desktop and IE11:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<krpano version="1.18" bgcolor="0x000000">
	
	<plugin devices="firefox|chrome|edge"
		name="video"
	  url.flash="videoplayer.swf"
	  url.html5="videoplayer.js"
	  posterurl.ios="Lab-medium.jpg"
	  posterurl.no-ios="Lab.jpg"
		videourl="Lab.m4v|Lab.webm|Lab.ogv"
	  pausedonstart="false"
	  loop="true"
	  enabled="false"
	  zorder="0"
	  align="center"
	  ox="0"
	  oy="0"
	  volume="0.0"
	  width.no-panovideosupport="100%"
	  height.no-panovideosupport="prop"
	  onvideoready="js(onvideoready());"
	/>
	
	<preview url="Lab-low.jpg" />
	
	<image>
		<sphere devices="firefox|chrome|edge" url="plugin:video" />
	  <sphere devices="ie|safari|ie|ipod|iphone|ipad|chromemobile|android|androidstock" url="Lab.jpg" />
	</image>

</krpano>

3

Wednesday, May 25th 2016, 10:36am

Hi,

you could use the onerror event of the videoplayer plugin:
http://krpano.com/plugins/videoplayer/#onerror

and additionally also check the 'panovideosupport' devices setting:
http://krpano.com/docu/xml/#available-devices

Best regards,
Klaus

4

Wednesday, May 25th 2016, 10:52pm

Thanks for the help. onerror never calls with these network errors... panovideosupport has a false flag as it's not aware of the issue. Ideally if a script could be written to run before the video plugin runs, it could be resolved.