Share a videoplayer plugin instance between 2d and 3d video scenes

  • Hello everyone,

    For my krpano based project, I’m trying to switch between 2d and 3d video scenes.

    According to the documentation, in order to render flat videos, the <layer /> notation is needed although to render 3d videos <image /> along with a <sphere /> is needed.

    Here is a highly simplified version of my code which works:

    My question is the following: how can I can refactor this code to share the same video plugin instance instead of duplicating it with the url="../plugins/videoplayer.js”.

    Would it be possible to put it in a shared layer and reuse it in each scene? That way, I can make sure the performance is the best and it wouldn't have problems with autoplay on Android after the first tap.

    Thank you in advance for helping!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!