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
Flash player krpano cannot play video hotspot externally
-
-
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/#topE.g. use the 'call' function and call the krpano actions this way:
Best regards,
Klaus -
Ty Klaus that worked!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!