Loss of sound when changing video file on ios device.

  • Hi,

    I have the following xml setup and when changing video files on ios mobile it losses the sound from the .mp3. Also when returning to video the sound was working on, the sound doesn't start again. Do you need to implement the .mp3 again?

    Thanks


    <!--
    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-1024x512.mp4|video-1024x512.webm|Sequence.mp3" videourl.no-ios="video-1920x960.mp4|video-1920x960.webm" 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();"/>
    <!--
    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-1024x512.mp4|video-1024x512.webm'); ); videointerface_addmenuitem(configmenu, q2, '1920x960', false, change_video_file(q2, 'video-1920x960.mp4|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>
    <!-- set the default view - normal/rectilinear projection -->
    <view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fovmin="75" fovmax="150" fisheye="0"/>
    <control usercontrol="all" mouseaccelerate="0.40" mousespeed="3.23" mousefriction="0.79" headswing="0.00" keybaccelerate="0.50" keybspeed="10.00" keybfriction="0.90" keybinvert="false" mousefovchange="0.0" keybfovchange="0.0" keycodesleft="37" keycodesright="39" keycodesup="38" keycodesdown="40"/>
    </krpano>

Participate now!

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