Sie sind nicht angemeldet.

41

Montag, 1. September 2014, 12:19

Hi,

please wait for version 1.18 ;-)

There will be a full and easy reusable example for exactly this case.

Best regards,
Klaus

42

Montag, 27. November 2017, 12:43

I have the same problem. The second time the layer is not shown.
onclick="addlayer(youtubeiframe);" does not reopen... my version 1.19.13

43

Dienstag, 28. November 2017, 20:23

Hi,

just a 'addlayer' call would only add an empty <layer> element, but nothing else.

Please see this example (included in the download package) for a Youtube example:
https://krpano.com/examples/usage/#inline-video-players

Best regards,
Klaus

44

Montag, 4. Dezember 2017, 10:46

button overlay over video layer

a bit off topic on this, but related since i am using this XML example for a video.


All is working fine.
But now i want to add a 'button' layer to skip the video and trigger some action.


I see the button layer, the mouse hovers over it, but the onclick event is not triggered.
Only when the video-layer is closed, the onclick event of the buttons is actually triggered.


It feels like something is blocking it, while the video is playing.
Is this right? can i do something about this?


as a quick test i added this layer:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
 <layer name="FF"
        type="container"
       zorder="9999999"
       align="center"
       width="50"
       height="50"
       bgcolor="0x000000"
       bgalpha="1"
       keep="true"
       alpha="1"
       bgcapture="true"
       onclick="showlog();trace(hi);"
/>



so the onclick is not triggerd when the video layer is there and playing,
but when the video layer is deleted, it does trigger.


I want to create a basic button to 'skip this video' and move on to the next step...


Any ideas?


herrpedro

Fortgeschrittener

Beiträge: 210

Wohnort: Lisbon

Beruf: Programmer/analyst

  • Nachricht senden

45

Freitag, 21. September 2018, 16:08

hi,

just added youtube to a tour. thanks.

can this be done in vr mode?
or must i "remove" the youtube button on entering vr?

thank you for your help

46

Montag, 24. September 2018, 18:00

Hi,

the WebVR Browser API allows only using manually rendered WebGL content in VR - that's excludes all HTML elements.

And the only API that Youtube offers for embedding is via <iframe> and that's a HTML element.

That means Youtube is not possible in VR.

Best regards,
Klaus