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.
There are ways to get the url of the video file (.flv) but it violates the terms of youtube. Imagine a website that indexes all those videos, stealing their bandwidth ;)
But Im not sure if youtube has a crossdomain.xml. Without that you would run into security sandbox errors.
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
But krpano doesnt have a youtube player, but a videoplayer.
![]() |
Source code |
1 2 3 4 5 6 |
<plugin name="youtube" url="http://www.youtube.com/v/7pyXV9lv3nY?version=3&autoplay=1&autohide=1&controls=0&loop=0&modestbranding=0&rel=0&showinfo=0" align="center" maskchildren="true" onloaded="registercontentsize(640,390);" /> |
No, that's not possible for 'security reasons' - YouTube doesn't allow pixel/bitmap access to the video, but that would be required to be able to distorted/transform the video to a pano!Any way to play YouTube videos in the Video player plugin as the 360 panorama?
![]() |
Source code |
1 |
onclick="close-pane(ui-youtube_blank);removeplugin(youtube-video);" |
![]() |
Source code |
1 |
set(plugin[youtube-video].start,0); |
</plugin></plugin>
The youtube player can be used as and as but not as distorted hotspot - youtube prohibits the video bitmap access, but that kind of access would be necessary for distorted hotspots.
there the video is distorted by the newer Flashplayer 10 internal DisplayObject rotation settings,in this link youtube player can be distorted </plugin></plugin>http://1.s3.envato.com/files/15254400/preview2.html
can you look at this sample please.
Yes thats true. They allow it through their own embedding code. That code generates a player (with play, rewind, mute etc), links to youtube, commercial (income for them), and links to similar videos.
But krpano doesnt have a youtube player, but a videoplayer. That videoplayer requires a direct url to the source (a flv, mp4 etc). Youtube provides a somewhat encoded url, with some tricks you can find the true url to the flv. But you can imagine that youtube doesnt support or allow for this. All references of youtube would be removed, no links to youtube and no commercials showing. So it would cost youtube only money with nothing in return. You're basicly using youtube for free hosting ;)
But basicly it's this:
http://www.abdulqabiz.com/blog/archives/…er-side-script/
you have a youtube url like:
http://www.youtube.com/watch?v=V3BsjxDZJM0
And you rewrite it to:
http://www.youtube.com/v/V3BsjxDZJM0
and put that url in the videoplayer.![]()
Hi,
Here simple example:
http://krpano.com/examples/youtube/
And here the xml of it:
http://krpano.com/examples/youtube/youtube.xml
The youtube player can be used as <plugin> and as <hotspot> but not as distorted hotspot - youtube prohibits the video bitmap access, but that kind of access would be necessary for distorted hotspots.
Best regards,
Klaus
Hi,
that examples embeds the Youtube Flash viewer application, that means that example works only in Flash,
maybe your Safari is showing the HTML5 version... ?
Best regards,
Klaus
![]() |
Source code |
1 2 3 4 5 6 |
<krpano> <plugin name="mask" devices="flash" keep="true" preload="true" url="skin/b_closevideo.png" blendmode="multiply" width="100%" height="100%" enabled="false" zorder="0"/> <preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16"/> <plugin name="youtube" url="https://www.youtube.com/watch?v=ZXQlMgiPd8k?version=3&autoplay=1&autohide=1&controls=0&loop=0&modestbranding=0&rel=0&showinfo=0" align="center" maskchildren="true" onloaded="registercontentsize(640,390);"/> </krpano> |
This post has been edited 2 times, last edit by "mstoss" (Jul 24th 2013, 10:38pm)