Hallo,
Ich habe in einem Pano ein Video eingebunden, das in der Desktop-Version läuft.
Bei der Umstellung auf mobile Version wollte ich den Code auch für das Video anpassen.
Ich habe einen TV Bildschirm als Hotspot (TV) definiert, darüber wir dann per Click das Video auch als Hotspot (film) gelegt und gestartet.
Ich weiß nicht, warum in der mobilen Version über Ipad oder Android nur das Bild der Posterurl ein- und ausgeblendet wird.
Hat das was mit den toggle.pause Events zu tun?
Vielleicht sieht jemand, was ich hier falsch gemacht habe, danke für jeden Hinweis!!
Grüße
M.
Hier der Code
Code
<!--abdunklung hintergrund -->
<hotspot name="hintergrund" keep="true" url="%SWFPATH%/skin/black.png" align="lefttop"
x="0" y="0" width="300%" height="100%"
autoalpha="true" zorder="0" flying="1.0" alpha="0" enabled="false"/>
<!--tv screen-->
<hotspot name="tv"
devices="desktop|mobile|tablet"
url="%SWFPATH%/skin/tvscreen.png" style="tooltip" tooltip="Grußwort" keep="false"
ath="-67.403" atv="-2.198" zoom="false" distorted="true" details="8" flying="0"
width="789" height="474" scale="0.28"
scale9grid="" scalechildren="false" rotate="0" rx="0" ry="0" rz="-0.28" edge="center" ox="" oy="" zorder="100"
onclick="style[tooltip].onout();
looktohotspot();
set(hotspot[film].visible,true);
hotspot[film].togglepause();
if(isandroid, set(hotspot[hintergrund].alpha,0.5); , tween(hotspot[hintergrund].alpha,0.5,0.3,easeOutQuad));"/>
<!--Video als Hotspot-->
<hotspot name="film"
url.flash="%SWFPATH%/plugins/videoplayer.swf"
url.html5="%SWFPATH%/plugins/videoplayer.js"
videourl.desktop="%SWFPATH%/plugins/grusswort_1280-720.flv|%SWFPATH%/plugins/grusswort_1280-720.webm"
videourl.mobile.or.tablet="%SWFPATH%/plugins/grusswort_480-320.webm|%SWFPATH%/plugins/grusswort_480-320.mp4|
%SWFPATH%/plugins/grusswort_480-320. flv"
preferredformat.firefox.or.chrome="webm"
posterurl="%SWFPATH%/skin/tvscreen-mobile.png"
scale.desktop="0.166"
scale.tablet="0.5"
scale.mobile="0.42"
ath="-67.384" atv="-2.286"
rx="-2" ry="0.5" rz="-0.38"
edge="center" zoom="false" distorted="true" zorder="200"
visible="false" loop="false" pausedonstart="true" directionalsound="true" range="110" volume="0.7"
ondown="hotspot[film].togglepause();
set(Hotspot[film].visible,false);
if(isandroid, set(hotspot[hintergrund].alpha,0); , tween(hotspot[hintergrund].alpha,0,0.3,easeOutQuad); );"
onvideocomplete="stop();
set(hotspot[film].visible,false);
if(isandroid, set(hotspot[hintergrund].alpha,0); , tween(hotspot[hintergrund].alpha,0,0.3,easeOutQuad));
lookto(20,0,110,smooth(25,15,25));"/>
Display More