You are not logged in.

1

Saturday, April 25th 2015, 12:30am

Videos do not loop on iOS

Hi guys

Anybody has some experience with 360 videos on ios (8.1)?
I am loading a krpano viewer to UIWebView instance. The video plays fine, I can control it and all. The only problem seems to be that the video doesn't loop. I have tested it in the browsers (PC) and all seem fine there. For testing purposes I use one of the videos from the krpano website (the one with Dubai).
I also tried to fire onvideocomplete but it doesn't work either (looping is set to false in that case, of course). Seems like the video end is never reached? But why?

The xml is pretty simple:

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
<krpano version="1.18" bgcolor="0x000000">

	<plugin name="video"
	    	url.html5="plugins/videoplayer.js"
	    	videourl="video-1920x960.mp4"

	    	pausedonstart="true"
	    	loop="true"
	    	enabled="false"
	    	zorder="0"
	    	align="center" ox="0" oy="0"

	    	width.no-panovideosupport="100%"
	    	height.no-panovideosupport="prop"

	    	onloaded=""
	    	onvideoready="js( videoReady() );"
	/>

	<image devices="panovideosupport">
		<sphere url="plugin:video" />
	</image>


	<view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fovmin="75" fovmax="150" fisheye="0.35" />
</krpano>


Any ideas? Thanks a lot!

EDIT: tested on the following: iphone simulator - doesn't loop. iphone 6 with 8.2 - doesn't loop. iphone 6 with 8.3 - doesn't loop. ipad 3 with 8.3 - does loop (???). Actually you don't even have to embed the videos and load them to the webview. Just open the videos page examples here on krpano.com in safari on iphone, it behaves the same.

This post has been edited 2 times, last edit by "Fygo" (Apr 27th 2015, 4:41pm)


2

Friday, May 8th 2015, 9:57pm

Hi,

there was an iOS bug related to the video buffering (the OS reports wrong states).

Please try the latest 1.19 pre-release 2 version. This version contains a workaround for this bug, there the looping should work.

Best regards,
Klaus

3

Tuesday, May 12th 2015, 12:28am

Great, thanks Klaus. At the end I made a workaround, too, but I will definitely check it out!

benji33

Intermediate

Posts: 244

Location: France

Occupation: Senior Software engineer

  • Send private message

4

Monday, May 18th 2015, 2:44pm

Loop doesn't work for me on iPhone 6 with 1.19 pre-release2 into all these plugin cases :

Source code

1
loop="true"


Source code

1
2
loop="false"
onvideocomplete="seek(0);play();"


And also when updating loop attribute and/or onvideocomplete event into the scene.onstart event.

5

Monday, May 18th 2015, 2:56pm

Hi,

have you updated the videoplayer plugin?

For me looping is working fine and I can't image a reason why it shouldn't...

Do you have a link to a not working example?

Best regards,
Klaus

benji33

Intermediate

Posts: 244

Location: France

Occupation: Senior Software engineer

  • Send private message

6

Tuesday, May 19th 2015, 1:49pm

Email with demo files has been sent. Thanks.

shinji

Beginner

Posts: 4

Location: Miyazaki JAPAN

  • Send private message

7

Monday, June 1st 2015, 6:34pm

Hi


My video does not loop.(iOS)
However, not all.

Video export in the afttereffects and Autopano Video does not loop.
http://bamboograss.penne.jp/test/150601_…p_not/tour.html


Video export in the Handbrake does loop.

http://bamboograss.penne.jp/test/150601_…op_ok/tour.html


To me I do not know this difference.

Please Help!

8

Monday, June 15th 2015, 10:24am

Hi,

I've finished the analyzing of the video looping problem - the problem seems to be related to iOS and the video itself. From krpano and Javascript side everything is correct - the video playback positions and the rendering itself is all correctly.

That means the reason why the video frame doesn't get updated is on iOS side and there it might depend on the video and its encoding settings...

Best regards,
Klaus

9

Wednesday, May 18th 2016, 6:59pm

klaus,

I tried 1.19 version as well and I can't get it to loop in iOS. But even if that fixed it, it turns out I can't upgrade from 1.18 because I have some plugins I'd have to rewrite and man not be possible, especially in time.

It could be an issue with encoding like you mentioned...

I'm in dire need to get loop on iOS and trying to figure out a way to to achieve it perhaps using krpano.call() with binding plugin events. Don't really care how, I'd event be happy with a hack.

Thanks!!

10

Wednesday, May 25th 2016, 10:38am

Hi,

video looping should work!

About can't use 1.19 because of 'plugins' sounds a bit strange - there should be no problem here... the plugin API haven't been changed.

Best regards,
Klaus

Similar threads