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>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!