Sie sind nicht angemeldet.

1

Donnerstag, 11. März 2021, 18:37

Embed video from own database

Hello everyone,
I am currently trying to link videos hosted on a private database into a layer element in my krpano.


I thought I could just link it similarly to how Klaus did in this forum post:

https://krpano.com/forum/wbb/index.php?p…37827#post37827

Quellcode

1
2
3
4
5
<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);"
/></plugin>

But i discovered that this did not work. Though I also tried it the given example of Klaus and always get the error:

loading of 'http://www.youtube.com...' failed!

This is the same whether I use youtube or my own link, which goes something like this:

url='https://raumerfinder.cdn.mediamid.com/resources/video7/video_embed.html?url=/cdnvidhls/video445294/5008800/video_config.json&autostart=false&defaultquality=high&mute={mute}&st={st}&skin={skin']https://raumerfinder.cdn.mediamid.com/resources/video7/video_embed.html?url=/cdnvidhls/video445294/5008800/video_config.json&amp;autostart=false&amp;defaultquality=high&amp;mute={mute}&amp;st={st}&amp;skin={skin}

I know that I cant use the videoplayer plugin as the file format I am using isn't compatible, but does anyone know how I might get the video to show up and play as Klaus did for the youtube link?


Thanks in advance and best regards,
Annicka

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Donnerstag, 11. März 2021, 19:19

Hi

it won't work. You must use Iframe and layer type text.

Look here:

https://krpano.com/releases/1.20.9/examp…e-video-players


https://krpano.com/releases/1.20.9/viewe…ers-example.xml

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Freitag, 12. März 2021, 11:53

Hey Piotr,
Thanks for the links. I looked into them and as far as I can see yes the youtube player uses an Iframe for one embed option, but for the flash version it just embeds it regularly.

The thing I don't understand is how they make it work, since the user wouldn't have the actual files. Every time I try something like that my videos wont load I would like to avoid the use of an Iframe.

I'd appreciate any advice or ideas.

thanks in advance :)

Annicka

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Freitag, 12. März 2021, 13:56

There is currently no other option for embedding YouTube videos. Flash player died a long time ago and will never come back, thankfully :)

What are you afraid of? Embedding in an iframe is normal procedure. If YouTube allows it then use it.


If you don't want to use external services then you can use the videoplayer plugin.


https://krpano.com/plugins/videoplayer/#top


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

5

Mittwoch, 17. März 2021, 12:10

Thank Piotr,
Due to my client wanting to see if there was a way to embed the videos directly without the use of iframes, and without having to actually have to host the videos on our server, I wanted to see the possibilities.

Seeing as I would have needed to develop a plugin for their media database we have instead settled on iframes instead ;)
Thanks again for the help.
Best regards,
Annicka

6

Samstag, 20. März 2021, 10:59

Hi,

you can load a video from other servers, but therefore you need to have direct access to the video file itself (that means not a link to full website like youtube) and the server needs to allow the access (with the CORS setting set on the server).

Best regards,
Klaus