I want to load KRpano.swf(video_player) in swf and run in browser. Need to use exemple in the folder "examples\as3-interface\flash-cs4-embed-example"? Is there any easy way?
Load video pano in swf
-
-
Where my is mistake? doesnt work
krpano = krpanointerface;
// open the krpano log and show a message:
krpano.call("showlog(true);");
krpano.trace(0, "ready...");var image:Object = krpano.get("image");
image.sphere.url = "plugin:video";var view:Object = krpano.get("view");
view.hlookat = -90;
view.vlookat=0;
view.fov=90;
view.fisheyefovlink=0.70;
view.fisheye=0.60;
view.fovmax=100;
view.fovmin = 50;
view.limitview = "lookat";var display:Object = krpano.get("display");
display.details = 20;
display.flash10 = "on";krpano.call("addplugin(video);");
var vid:Object = krpano.get("plugin[video];");
vid.url = "plugins/videoplayer.swf";
vid.videourl = "vids/myvideo.f4v";
vid.parent = "STAGE"; -
Work! but there are problems. the video loads and play but my navigation controls don't work, video doesnt rorate and I get and error saying
ERROR: download of "file://project_directory/plugin:video" failed
i know that there is problem when the video file is located in a different folder, but I put everything into one folder. But the problem is not solved. error saying
ERROR: download of "file://project_directory/plugin:video" failed
how to solve the problem?
-
Hi,
there is a problem in the current version, when the video is not in the same folder as the swf file,
this will be fixed in the next release,best regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!