You are not logged in.

VVBali

Beginner

  • "VVBali" started this thread

Posts: 11

Location: Bali, Indonesia

  • Send private message

1

Thursday, April 25th 2013, 6:03pm

Video not loading with global krpano.swf

Trying to use single krpano.swf (and krpano.js) files for all my panos/tours (outside the pano/tour folders) for convenient updating.
My plugins are also located in a single folder for the same purpose.

When the krpano.swf is inside the tour folder, the videoplayer loads the video inside the pano just fine.

Example: http://www.virtualvisitbali.com/developm…waowintonl.html

However when I load the krpano.swf from outside the tour folder, the pano opens fine but the video doesn't load!?

Example: http://www.virtualvisitbali.com/developm…waowextonl.html

The xml file of the pano is at http://www.virtualvisitbali.com/developmentvr/waow/waow0.xml

Hopefully somebody can take a moment to have a look what I am doing wrong here.

2

Tuesday, April 30th 2013, 6:57pm

Hi,

this is a Flashplayer limitation - the url of the video needs to be relative to the main swf file...

See the note here:
http://krpano.com/plugins/videoplayer/#videourl

Best regards,
Klaus

Sam Rohn

Trainee

Posts: 109

Location: Brooklyn, New York

Occupation: 360° VR Photographer

  • Send private message

3

Wednesday, May 1st 2013, 10:42am

using placeholders in xml is usually a good idea when working with global swf + js files, also with CMS like wordpress etc, helps keep files from being called from virtual url paths which do not actually exist as real directories

try something like this

Source code

1
2
3
url="%SWFPATH%/my-path/videoplayer.swf"
videourl="%SWFPATH%/my-path/my-video.flv"
etc


see this discussion for more info

Placeholders (%HTMLPATH%, %SWFPATH%, etc..), why to use them??

sam
Sam Rohn :: 360° Panoramic Photography :: Location Scout :: New York City :: www.samrohn.com

PanoPress :: WordPress Plugin for 360° Panoramas in Flash & HTML5 :: www.panopress.org

This post has been edited 1 times, last edit by "Sam Rohn" (May 1st 2013, 10:52am)