Is it possible to play a "flat" video after a panoramic video into the same plugin ?

  • On update the playvideo action is called on a flat video just after a panoramic video playback.
    Seems that the <image><sphere></image> of the first panorama is always called for the flat panorama and I don't have any video display despite the visible attribute of the plugin set to true and width/height to 100%/prop. The use_as_videopano attribute is set to false also.
    There is a solution to avoid the black screen and display the flat panorama into the same plugin ?
    Works with 2 differents plugins (spherical video and flat video) but it's not a good solution for managing code.

  • Tested with 1.19.
    Same with 1.18.3.

    In fact I add a plugin videoplayer to be able to display a panoramic video (use_as_videopano=true, visible=false and <image> tag) but on a scene change I want to display a flat video (with the use of playvideo action) into the same plugin (use_as_videopano=false, width=100%, height=prop, no <image> tag, visible=true) but I've a black display and seems that a sphere is display behind because I've a point hotspot that I can move.

  • Demo XML

    Edited once, last by benji33 (March 11, 2015 at 10:13 AM).

  • Hi!
    you can mix flat and 360 video in one file, and swith projection settings from flat to 360 and back if you need and when you need
    i'm already done such thing :) for one of my customers
    if you interested, let me know i will show you online demo

    Best regard
    Andrey

    skype: mindlessboss

  • In one file ... means in one video file ?
    I'm interested on the load of differents videos which can be "flat" (plugin video only) or spherical (plugin video with <image> tag) into the same plugin instance.

  • Ok I can do it also but it's not a good solution for my problem.
    Fallback solution is to use a plugin videoplayer for flat and on other for spherical but I must change all the "generic" code due to this "hack". It's why I look for a better solution.

  • so far I understand you want to switch back from panoramic display to normal display as layer - right?


    I've checked that case yet, but it's already on my list.

    Yes.

    Perfect, this change will be good to avoid double plugin instance on my side for generic code.

  • Hi Klaus,

    do you have any updates on this? I would also like to switch between a panorama video and a flat/standard video. I feel like it's nearly there simply by loading the flat video into the plugin using:

    Code
    plugin[video].playvideo('myvideo.mp4', null, get(plugin[video].ispaused), get(plugin[video].time));

    and then changing to the "flat view" action as supplied in the plugin's videointerface.xml:

    Code
    videointerface_flat_view();

    The trouble is that the resulting flat video doesn't fill the view, and you're able to drag the flat video off the viewing area. I tried using "set(control.usercontrol,off);" but it doesn't seem to have an effect once I switch to the flat view.

    Is this the wrong way to go about loading up a flat video? Do I need to use a separate <layer> rather than the <plugin> element?

    Best regards, Dan

  • Hi,

    Quote

    The trouble is
    that the resulting flat video doesn't fill the view, and you're able to
    drag the flat video off the viewing area. I tried using"set(control.usercontrol,off);" but it doesn't seem to have an effect once I switch to the flat view.

    It should be enough to set the viewing limits accordingly.

    E.g. try:

    Code
    set(view.limitview, fullrange);


    after changing the <image> fov values from spherical to flat.

    See also here:
    https://krpano.com/docu/xml/#view.limitview


    Quote

    Is this the wrong way to go about loading up a flat video? Do I need to use a
    separate <layer> rather than the <plugin> element?

    No, that's already the right and recommended way.

    Best regards,
    Klaus

Participate now!

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