You are not logged in.

1

Sunday, March 6th 2016, 7:14am

Video lagging on ipad

I've been noticing substantial lag with video on iOS (9.2.1), even using lower resolutions. I'm sure I'm missing something, but what is it?

Below is my xml file:


<krpano version="1.19" bgcolor="0x000000">

<!-- the videoplayer interface skin -->
<include url="%SWFPATH%/videointerface/videointerface.xml" />

<!-- include the videoplayer plugin and load the video (use a low res video for iOS) -->
<plugin name="video"
url.flash="%SWFPATH%/plugins/videoplayer.swf"
url.html5="%SWFPATH%/plugins/videoplayer.js"

videourl.ios="../video/video.mp4"

videourl.no-ios="../video/video.mp4"

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

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

onloaded="videointerface_setup_interface(get(name)); setup_video_controls();"
onvideoready="videointerface_videoready();"
/>

<plugin name="gyro" devices="html5" keep="true"
url="gyro2.js"
enabled="true"
camroll="true"
friction="0.0"
touch_mode="full"
sensor_mode="1"
autocalibration="true"
onavailable=""
onunavailable=""
onenable=""
ondisable=""
/>


<!-- custom control setup - add items for selecting videos with a different resolution/quality -->
<action name="setup_video_controls">
<!-- add items to the control menu of the videointerface skin -->
videointerface_addmenuitem(configmenu, vqtitle, 'Select Video Quality', true, videointerface_toggle_configmenu() );
videointerface_addmenuitem(configmenu, q1, '1024x512', false, change_video_file(q1, '../video/video-1024x512.mp4|../video/video-1024x512.webm'); );
videointerface_addmenuitem(configmenu, q2, '1920x960', false, change_video_file(q2, '../video/video-1920x960.mp4|../video/video-1920x960.webm'); );

<!-- select/mark the current video (see the initial videourl attribute) -->
if(device.ios,
videointerface_selectmenuitem(configmenu, q1);
,
videointerface_selectmenuitem(configmenu, q2);
);
</action>


<!-- change the video file, but try keeping the same playback position -->
<action name="change_video_file">
plugin[video].playvideo('%CURRENTXML%/%2', null, get(plugin[video].ispaused), get(plugin[video].time));
videointerface_deselectmenuitem(configmenu, q1);
videointerface_deselectmenuitem(configmenu, q2);
videointerface_selectmenuitem(configmenu, %1);
</action>


<!-- the panoramic video image -->
<image devices="panovideosupport">
<sphere url="plugin:video" />
</image>

</krpano>

This post has been edited 3 times, last edit by "glenohumorous" (Mar 9th 2016, 4:16pm)


2

Tuesday, March 15th 2016, 8:02am

Hi,

the problem is iOS itself!

See here:
http://krpano.com/ios/bugs/ios8-webgl-video-performance/

and here:
https://bugs.webkit.org/show_bug.cgi?id=129626

According the bugreport above Apple has already fixed that, but there is no iOS version available with that fix yet. Maybe this will come with iOS 10 or iOS 11...

Best regards,
Klaus

Similar threads