Videplayer Plugin - videoplayer.swf (1.0.8 beta 9)
- this plugin can be used to play videos inside krpano
- as normal flat video (via <plugin>)
- or as 3D distorted hotspot (via <hotspot>)
Download:
download it with the latest 1.0.8 beta version
Example:
VIDEO HOTSPOT EXAMPLE
XML
Example usage:
Code
<hotspot name="video"
url="videoplayer.swf"
videourl="video.flv"
ath="12"
atv="10"
scale="0.5"
rx="0" ry="0" rz="0"
distorted="true"
pausedonstart="false"
loop="true"
volume="0.7"
directionalsound="true"
range="120"
onclick="togglepause();"
/>
Display More
Attributes:
- videourl
- url of the video
- can be any FLV Flash video (.flv) or any H.264 coded video (.mp4, .m4v, .mov, .3gp)
- Note - for H.264 coded videos Flash Player 9.0.115 or higher is needed (update the minimum Flashplayer version for this in the HTML file)
- NOTE - the video url must be always relative to the main krpano swf file!!!
this is a flashplayer bug and there unfortunately no way to fix it,
see here: http://bugs.adobe.com/jira/browse/FP-1194
- pausedonstart
- set if video is paused on start
- "true" or "false", default="false"
- loop
- loop video or stop at end
- "true" or "false", default="false"
- volume
- video sound volume
- 0.0 - 1.0, default="1.0"
- directionalsound
- use directional sound when the video is played as hotspot
- "true" or "false", default="true"
- range
- range of the directional sound
- 1 - 360, default="90"
- buffertime
- time in seconds that should be buffered before starting playing
- default="0.1" (=Flash default)
- updateeveryframe
- default="true"
- only for performance optimizations!
- has only an effect when the video is played as distorted hotspot!
- when set to "false":
- the video frame will be only refreshed/updated when flash reports "there is a new frame"
- this reduces the cpu load but in situations where the flashplayer has much work to do, this can cause frame skipping (e.g. while moving in the pano)
- so use "false" with care!
Read only attributes/states:
- ispaused
- check the pause state of the video
- "true" or "false"
Events:
- onvideocomplete
- will be called when the video was played completely
- only when "loop" is set to "false"
Interface actions/functions:
- playvideo(url);
- opens a new video stream and starts playing it
- a currently playing video will be stopped and closed in this case
- closevideo();
- stops and closes the video stream
- stop();
- stops the video and moves to the first frame and pauses there
- the video can be resumed via play() or resume()
- pause();
- pauses the video at the current frame
- the video can be resumed via play() or resume()
- play(); or resume();
- resumes a paused video
- togglepause();
- pauses or resumes a video
XML example:
Code
<hotspot name="video"
url="videoplayer.swf"
videourl="video.flv"
ath="12" atv="10"
scale="0.5" rx="0" ry="0" rz="0"
distorted="true"
pausedonstart="false"
loop="true"
volume="0.7"
directionalsound="true"
range="120"
onclick="togglepause();"
/>
Display More
Some video control examples: