You are not logged in.

1

Tuesday, June 6th 2017, 12:59am

Flash player krpano cannot play video hotspot externally

Hi. I'm getting an error when trying to play a video hotspot with krpano flash player when targeting the hotspot with krpano().get('hotspot[videoSpot]').play(), However this works in html5 but flash player throws out 'SCRIPT438: Object doesn't support property or method "play". The hotspot video plays at start but it seems it doesn't have a play() function. Strange?


Using krpano 1.19-pr8


Thanks everyone

2

Tuesday, June 6th 2017, 3:00pm

Hi,

No, not strange, that's normal - it's not possible to make calls from Javascript directly to Flash functions!
Your code would only work for when using ONLY the HTML5 viewer.

For Flash/HTML5 compatibility there is the krpano 'Javascript API' - this one allows using the same code for both viewers:
https://krpano.com/docu/js/#top

E.g. use the 'call' function and call the krpano actions this way:

Source code

1
krpano.call("hotspot[videoSpot].play()");


Best regards,
Klaus

3

Wednesday, June 7th 2017, 7:16pm

Ty Klaus that worked!