html5 javascript add the layer scene m3u8

  • I would like to do a simple panoramic video in the HTML dynamically add layer scene, I try to add the layer scene, the video format is m3u8, is a domain name address, in MAC IOS can be, but not in iphone. Is not a panoramic mode, but can play. Help me see, how to achieve it? Thank you Here's my code

    var krpanoReady = function(krpano){
    var xml = ' <scene name="scene_1"> <include url="skin/videointerface.xml" /> <layer name="video" url.html5="plugins/videoplayer.js" pausedonstart="false" videourl="'+weburl+'" /><image><sphere url="plugin:video" /></image></scene> ';
    krpano.call("loadxml(" + xml + ");loadscene(scene_1)");
    }
    var config = {target: "pano", swf: "krpano.swf", xml: "krpano.xml", html5: "auto", onready: krpanoReady, mobilescale:1.0, passQueryParameters:true}
    embedpano(config);


    thank you!

Participate now!

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