You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Karl

Beginner

  • "Karl" started this thread

Posts: 12

Location: Halle (Saale)

  • Send private message

1

Monday, July 13th 2009, 7:18pm

Videoplayer: still image? preview? progress bar?

Hello,

I have some buttons the user can select/deselect and then the videoplayer will be dynamic included with the parameters videourl, width, height

Source code

1
2
3
4
5
6
7
8
9
10
<action name="videoon">
addplugin(video);  
set(plugin[video].align,center); 
set(plugin[video].loop,false);
set(plugin[video].zorder,0);
set(plugin[video].videourl,%1);
set(plugin[video].url,%SWFPATH%/plugins/videoplayer.swf);
set(plugin[video].width,%2); set(plugin[video].height,%3);
set(plugin[video].onclick,togglepause());
</action>


Works off line very well. The greatest test-video has a document size of more than 5 mb. On the server the user see nothing during loading the video.

The soundplayer-plugin has the attribute preloadsound(xxx)

I'm looking for a similar solution:

either when the main panorama ist loaded and also the videoplayer-plugin self then they should be a preload-action for the video files.

or after the onclick-event on one of the button the user should see
- a still image (or the the first frame of the video)
- the progress bar

I tried to add the two set-commands in the code above, but it don't seems to work.
set(progress.showload,bar);
set(progress.showwait,loopings);

Any ideas?

Thanks Karl

This post has been edited 1 times, last edit by "Karl" (Jul 15th 2009, 12:14am)


2

Wednesday, July 15th 2009, 2:25pm

Hi,
Works off line very well. The greatest test-video has a document size of more than 5 mb. On the server the user see nothing during loading the video.
hmm, maybe that is a server problem, normally videos are streamed...

do you know what server?
maybe the gzip-compression was not disabled for .flv files...


Quoted

I tried to add the two set-commands in the code above, but it don't seems to work.
set(progress.showload,bar);
set(progress.showwait,loopings);
that should work normally,


do you have a link to the example?

best regards,
Klaus

Karl

Beginner

  • "Karl" started this thread

Posts: 12

Location: Halle (Saale)

  • Send private message

3

Friday, July 17th 2009, 11:37am

Hi Klaus,

Quoted

hmm, maybe that is a server problem, normally videos are streamed...

do you know what server?
maybe the gzip-compression was not disabled for .flv files...
in the moment it's not possible for me to get an answer about the server compression settings.

I asked some friends to try it from far away with different results:
- no time between buttonclick and the beginn of the video
- the video will be long in coming

You can try the beta by yourself
http://www.burg-halle.de/~schikora/03101…pano/index.html

Additional information (in german)
http://www.burg-halle.de/~schikora/031010/

Next question: it is a flat-pano with fov="1". Do you have any ideas how to show the pano at the beginning with the overall width (lenght over buffers of the steam engine) an not with the overall height? In the final release of 1.0.8?

Thanks Karl

4

Sunday, July 19th 2009, 1:57pm

Hi,

in my test:
the 5269kb/s videos needs 1-2 seconds before the videos appears,
the 2644kb/s video is here intermediately,
the 3526kb/s video too,
(all test when the loading of the pano itself was already done)
Next question: it is a flat-pano with fov="1". Do you have any ideas how to show the pano at the beginning with the overall width (lenght over buffers of the steam engine) an not with the overall height? In the final release of 1.0.8?
at the moment, this can be only done manually via setting the viewing range,
e.g.

Source code

1
<view limitview="range" hlookatmin="-0.5" hlookatmax="-0.5" vlookatmin="-0.4" vlookatmax="+0.4" />


here is a direct link to your example with these settings:
http://www.burg-halle.de/~schikora/03101….vlookatmax=0.4

the next release will have an automatic mode for that,

best regards,
Klaus

Karl

Beginner

  • "Karl" started this thread

Posts: 12

Location: Halle (Saale)

  • Send private message

5

Tuesday, July 21st 2009, 3:28pm

Hi Klaus,

thank you for the tests an the solution to display the overall width of the pano.

Karl