Pimp up krpano video-player

  • I started to use the krpano videoplayer from the krpano examples to show different videos tiggered by hotspots inside a single panorama.
    The player works fast and fine and with the hotspots it's a great tool to enhance interactive storytelling with panoramas.

    But to make it more convenient for users I need ot add at least a close button and later (sigh) video controls.

    After some fail attempts I finally managed to get a close button on the screen that does what it should do, but I still fail to get it inside the videplayer_plugin which is needed for precise positioning.
    I assume the closebutton_plugin should have the videoplayer_plugin as a parent, and if so, I must be doing something wrong with he syntax or whatever. I feel a bit uncomfortable with that layer stuff.

    Can you please give me a hint or a similar example of how to correctly add it?

    Thanks a lot
    Jürgen

  • What's with creating your plugins in an action? That makes it hard to see what's going on and customize per device. Use the xml layer structure like a normal person. ;)

    <layer name="video_container" .. >
    <layer name="video_close" .. />
    <layer name="video_player" .. />
    </layer>
    Use the container to hold your graphics and inherit it's settings. Change its viability or alpha to control everything. Align your graphics to the container. The container to the window. Rearrange your structure to reflect your zorder. Makes doing devel quick and easy and much better to troubleshoot or handle exceptions for touch devices, retina displays and mobile devices because you can use device specific attributes.

  • Thank you Sasha.
    Yes probably this would make things a bit easier.
    But the code above is from the master himself, so I suggest Klaus sees an advantage in doing so.
    Unfortunately I am myself have no idea about pros and cons besides that for me it looks more complicated :D

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!