Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »JakeSiemer« (19. Juni 2015, 05:02)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<krpano version="1.18" bgcolor="0x000000">
<plugin name="video"
url.flash="%SWFPATH%/plugins/videoplayer.swf"
url.html5="%SWFPATH%/plugins/videoplayer.js"
posterurl.ios="video-1024x512-poster.jpg"
videourl.ios="Beach_Scene.mp4|Beach_Scene.webm|Beach_Scene.ogv"
posterurl.no-ios="video-1920x960-poster.jpg"
videourl.no-ios="Lunch_Scene.mp4|Lunch_Scene.webm|Lunch_Scene.ogv"
align="center"
loop="true"
onvideoready="fit_video_image();"
/>
<events name="video_fitting"
onresize="fit_video_image();"
/>
<action name="fit_video_image">
div(video_aspectratio, layer[video].videowidth, layer[video].videoheight);
div(screen_aspectratio, area.pixelwidth, area.pixelheight);
if(video_aspectratio GT screen_aspectratio,
set(layer[video].width, 100%);
set(layer[video].height, prop);
,
set(layer[video].width, prop);
set(layer[video].height, 100%);
);
</action>
</krpano>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
<krpano version="1.18" bgcolor="0x000000">
<plugin name="video"
url.flash="%SWFPATH%/plugins/videoplayer.swf"
url.html5="%SWFPATH%/plugins/videoplayer.js"
posterurl.ios="video-1024x512-poster.jpg"
videourl.ios="Lunch_Scene.mp4|Lunch_Scene.webm|Lunch_Scene.ogv"
posterurl.no-ios="video-1920x960-poster.jpg"
videourl.no-ios="Lunch_Scene.mp4|Lunch_Scene.webm|Lunch_Scene.ogv"
align="center"
loop="true"
onvideoready="set(image.hfov,1); set(image.vfov,0); updateobject(true,true); fit_video_image();"
/>
<image>
<sphere url="plugin:video" />
</image>
<view fovtype="HFOV" fov="1.0" fovmin="0" fovmax="1.0" limitview="fullrange" />
<control mousefovchange="0" touchzoom="false" />
<events name="video_fitting"
onresize="fit_video_image();"
/>
<action name="fit_video_image">
div(video_aspectratio, plugin[video].videowidth, plugin[video].videoheight);
div(screen_aspectratio, area.pixelwidth, area.pixelheight);
if(video_aspectratio GT screen_aspectratio,
set(view.fovtype, HFOV);
,
set(view.fovtype, VFOV);
);
set(view.fov, 1);
</action>
</krpano>
|
|
|
Quellcode |
1 |
<view ... limitview="fullrange" /> |
|
|
Quellcode |
1 |
<view ... limitview="range" /> |
|
|
Quellcode |
1 |
if(video_aspectratio GT screen_aspectratio, |
|
|
Quellcode |
1 |
if(video_aspectratio LT screen_aspectratio, |
|
|
Quellcode |
1 |
if(device.iphone, playvideo(...)); |
|
|
Quellcode |
1 2 3 |
Problem is this: Unfortunately I still have not been able to encode a working example using those settings. Any other ideas? |
|
|
Quellcode |
1 |
.... onvideocomplete="tween(layer[interface_playpause_image].alpha,0);" |
![]()
Quellcode
1 2 3 Problem is this: Unfortunately I still have not been able to encode a working example using those settings. Any other ideas?
Working how?
You can't have videos on iphone with interactivity. It's not possible.
I can't find your krpano anywhere on that site.
http://krpano.com/plugins/videoplayer/#onvideocomplete
![]()
Quellcode
1 .... onvideocomplete="tween(layer[interface_playpause_image].alpha,0);"