Page 1 of 1

Remove video after playing

Posted: Tue Apr 26, 2011 5:44 pm
by Sascha Selent
Hello everybody,

we are unfortunately still having trouble with the pano player and video. We are trying to load a new panorama after a video that was loaded through vr.attachVideo is done playing. However, even though no errors are thrown, the video just won't disappear (and the new panorama never shows). Here is what we've tried after the video has reached its end:

Code: Select all

var ns:NetStream = vr.pano.video.stream;
ns.pause();
//ns.close();

vr.pano.video.connection.close();
vr.pano.video.video.clear();

// open next panorama						
vr.pano.openNext(pano_url2);
Trying to close the NetStream results in a SecuritySandbox error. Does anybody have an idea how the video can be removed? Is there something like an unattachVideo function? Any help would be greatly appreciated. Thanks a bunch and regards!