Hm. I think I used your example on the way, but maybe I had made multiple mistakes and ended up with this one. I will try again to sort that out. Thanks for looking!
Yours,
Michael
Hm. I think I used your example on the way, but maybe I had made multiple mistakes and ended up with this one. I will try again to sort that out. Thanks for looking!
Yours,
Michael
Hi guys!
Any news about inserting Youtube html5 player into Krpano? Any ideas?
On some forums I've read that adding
or
to youtube player parameters forces youtube use its html5 player.
I tried the code like this:
<plugin name="youtube" devices="html5"
url="http://www.youtube.com/v/0kW2Vh3KeEs?html5=1"
align="center"
maskchildren="true"
onloaded="registercontentsize(640,390);"
/>
but is shows loading error. "html5-true" makes no difference either(((
Does anybody have some positive results in this?
Hi,
for html5-only you could use iframes within the textfield plugin,
e.g.
<layer name="youtubeiframe" devices="html5"
url="textfield.swf"
html="[iframe width='560' height='315' src='//www.youtube.com/embed/iQx28i6w0jc' frameborder='0' allowfullscreen][/iframe]"
width="560"
height="315"
padding="0"
align="center"
/>
Note - use padding=0 and the same width/height for the iframe and the plugin size.
Best regards,
Klaus
Woaaaaoowww)))
It works!!! You're as always a magician and wizard, Klaus))
HUGE thanks!!!
Yes! Thank you.
But I desperately need the button which stop the video and Youtube window - like in Hans's example:
http://wirestam.com/panos/Flash/youtube/youtest1.html
red "stop player" button ....
marty
Okay, thanks to Klaus we have now a solution for html5 which works flawlessly.
I've spent now some time playing around with Flash version of this and the only "corner stone" I stumble upon is how to mute video when "close" button of the background layer is pressed. If i remove the layer with video, it disappears but sound goes on. I tried a workaround - added a soundinterface and tried to use "stopallsounds(true);" in hope that this will force the sound to stop, but to no effect((( I set "mute=true", of course.
I will keep try and error, maybe some of you here have other ideas?
Yes Alexey,
I asked here and here and maybe many times more in the past....
Yeap, seems no way without a flash plugin...
Hi again!)
I'm now playing with video from Vimeo inside the tour. For html5 I used the same code as was suggested by Klaus for using with youtube.
<layer name="video_3" devices="html5"
url="plugins/textfield.swf"
html="[iframe src='http://player.vimeo.com/video/93491995' width='640' height='480' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen][/iframe]"
width="640"
height="480"
padding="0"
align="center"
/>
It works flawlessly for html5.
With Flash, I tried using link to the video inside the url of the layer, like this:
<layer name="video_3" devices="flash"
url="http://player.vimeo.com/video/93491995"
align="center"
maskchildren="true"
onloaded="registercontentsize(640,480);"
/>
But it throws error: "ERROR: decoding failed - http://player.vimeo.com/video/93491995".
Maybe there's some workaround for this inside Krpano (and no need to write an AS3 plugin)?
Thanks!
But it throws error: "ERROR: decoding failed - http://player.vimeo.com/video/93491995".
It's not possible to include a whole website as Flash plugin!
Look here for Vimeo Flash embedding:
http://developer.vimeo.com/player/embedding#flash
Try:
<layer name="video_3" devices="flash"
url="http://vimeo.com/moogaloop.swf?clip_id=93491995"
align="center"
maskchildren="true"
onloaded="registercontentsize(640,480);"
/>
Best regards,
Klaus
Hi Klaus,
I use your code:
<layer name="youtubeiframe"
devices="html5"
url="plugins/textfield.swf"
html="[iframe width='560' height='315' src='//www.youtube.com/embed/lmzrvtThVj4' frameborder='0' allowfullscreen][/iframe]"
width="560"
height="315
padding="0"
align="center"
/>
It works fine on Google Chrome / Internet Explorer and Smartphone, but it don't work on Firefox ...
Can you give me some help ?
Thanks a lot
Hi,
Can you give me some help ?
For being able to help, I would need more information of course.
So please post your not-working example.
Best regards,
Klaus
Hi Klaus,
I've solved my problem by my own.
1) I change the value for "html5" into the the tour.html file. From"auto" to "prefer".
<script>
embedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"prefer", passQueryParameters:true});
</script>
2) Check the "about:config" into firefox to manage WebGL options
Now it works fine.
Hi,
this way you only change that viewer preference.
For a correct solution use a Flash AND HTML5 solution.
See the post here for a Flash solution:
load a youtube video
Just as note - the next krpano version 1.18 will include a full Youtube video example that works the same in Flash and HTML5.
Best regards,
Klaus
Hi klaus,
To kill the sound you talk about this code :
Ok it works but how to switch from "remove" to "add" ?
I need to make a button that will show and hide the layer.
Here is my code :
<hotspot name="videospoticone_1" url="images/icone_video.png" style="draghotspot|tooltip" tooltip="Voir la Vidéo" ath="48.241" atv="-2.693" scale="1" zorder="-1" onclick="set(layer[videoyoutube1].visible, true);set(layer[youtubeclose1].visible, true)" />
<layer name="videoyoutube1"
url="plugins/textfield.swf"
html="[iframe width='560' height='315' src='http://www.youtube.com/embed/lmzrvtThVj4' frameborder='0' allowfullscreen][/iframe]"
width="560"
height="315"
padding="0"
align="center"
visible="false"
/>
<plugin name="youtubeclose1" url="images/close.png" parent="layer[videoyoutube1]" style="draghotspot|tooltip" tooltip="Fermer" distorted="true" align="topright" x="-25" y="-25" zorder="8" visible="false" onclick="set(layer[videoyoutube1].visible, false);set(layer[youtubeclose1].visible, false)" />
Display More
Here the layer is visible and hide but the sound is always On.
I try the "addlayer" solution, but nothing happen ...
Can you tell me when the krpano version 1.18 will be out ? It will be free for KRPano user with comercial licence ?
Thanks
Can you tell me when the krpano version 1.18 will be out ?
As soon as everything is ready, hopefully soon.
It will be free for KRPano user with comercial licence ?
Yes, the current 1.17 license is valid for all 1.x.x versions (from 1.17 and up).
Best regards,
Klaus
Perfect for the new KRPano version
What about "removelayer" and"addlayer" question ? Some ways ?
Hi,
sorry, but I don't know what you mean with addlayer/removelayer in this case...
Technically both would be possible - static define via xml or dynamic via actions like addlayer and set - the result will be the same.
Best regards,
Klaus
Klaus,
Here is what I'm looking for :
Close button code :
Now If I click on the Hotspot "Show YouTube Video" I can't laod the YouTube Iframe. So I was thinking about using the code :
But I can't laod the layer "youtubeiframe" anymore ...
Thanks for your help.
Don’t have an account yet? Register yourself now and be a part of our community!