A progress time bar for the videoplayer plugin

  • Hi Michel hank you for this work, i am looking for a load bar for an hotspot video distorder, of course when i use yours for plugin i have a problem with the x value, as you describe it
    you can have a look at this link it is just a test (the bar is on the hotspot not on the first plugin)

    another question, do you know how to do an action at a time from a hotspot video ?


    Thank you for your answer

    JPC

  • Hi all,

    i was working on this video player in krpano and with the briljant code of Michel.
    now i find something i don't understand. I think it's a 'bug' in the code.
    Well, i don't see it.

    What happens is that when you reached the end of the video and click somewhere half way and then use the pause or play button, it starts over again. every time...
    so the resume function makes it's start from beginning everytime after reaching the end for the first time.

    Here is a link:
    http://virtualtuur.com/krpano/videoplayer

    http://virtualtuur.com/krpano/videoplayer/code/video.xml

    Anybody?

    Tuur *thumbsup*

  • Hi, I tried to figure out what is wrong...
    No idea yet.
    Did you try with a toggle pause?
    You define 2 buttons, try to toggle pause on both.
    You need an action to reset the video to zero, pause it, hide the pause and reveal the play button.
    Seems that at the end you must press "pause" to start it over.
    why you did not use the button "crop" function?
    If you intend to be i(diot)OS compatible toggle "alpha" and "zorder", not "visible"!

    *smile*
    Hope I can help, even if a fraction of how much everybody here helped me!


    What happens is that when you reached the end of the video and click somewhere half way and then use the pause or play button, it starts over again. every time...
    so the resume function makes it's start from beginning everytime after reaching the end for the first time.

    Here is a link:
    http://virtualtuur.com/krpano/videoplayer

    http://virtualtuur.com/krpano/videoplayer/code/video.xml

    Anybody?

    Tuur *thumbsup*

  • ok,
    problems solved.
    videoplayer with play/pause and volume slider.

    Officinepanottiche , what do you mean with this?

    Quote

    why you did not use the button "crop" function?
    If you intend to be i(diot)OS compatible toggle "alpha" and "zorder", not "visible"!

    Tuur *thumbsup*

  • Sorry, I try to write more clearly...
    In krpano you can use a "crop" function, that helps building buttons with different states. It is indeed VERY helpful and powerful (see the downladable examples).
    Another way is to toggle the buttons changing their Zorder.

    iOS have some difficulties with "visible".

    Hope it helps!

  • Hello!

    I'm trying to make a sequence of videos.
    When one finishes the other start automatically.
    I'm using onvideocomplete to load an action that is:

    Code
    <action name="video2">
    playvideo(sequence01.f4v);
    </action>


    There are two problems now:
    1) The timebar doesn't adapt to the new video length
    2) I can't make any actions to load a new video (video3)
    3) Can't make the loop="false" on the new one.

    I can also make it with buttons:
    At the end of each video a button appear to load next video.
    Would it be easier to do?
    Any suggestions?

    Tuur,
    Could you please share the volume and play/pause code as a <include url""> xml?
    I'm missing something here and can't put it to work.

    Best Regards,

    Daniel Farjoun
    http://www.xyz360.com.br

  • Hi can you please guide me on applying the progressbar on a 360 player.

  • Dear officinepanottiche,


    mikel26 has sent the following message from krpano.com Forum (https://krpano.com/forum/wbb):

    Hi

    Hope is all well to you.

    I saw this post from krpano

    http://www.corriere.it/Primo_Piano/Cu…avigabile.shtml

    by any chance mind giving me information on adding the play pause seek
    bar the navigation controller hd and fullscreen function ?

    Thank You Please do reply ASAP.

    Hi, mikel26!!!
    I simply followed the instruction in this 3d!
    I modified the code to my needs and my interface.

    Fullscreen is something I took from the basic KRpano controller (as code) and applied to my design.
    HD is something I coded myself in krpano, the whole thing is composed by 5videos in 2 versions, dh and sd, my load system has a "flag" when HD is on and simply changes the path of the video folder to the one desired (preloading is a bit tweaked also)
    Sorry I cannot disclose the code....

  • Back into Videos on iPad again.
    I finally got these working in a way I wanted it and, best of all, I understodd most parts of the code that I'm using *smile*

    To put a cherry on top I would love to add some controls to the video.
    Buttons for Start/Pause/Stop and Sound are not much of an issue, but what about the timebar?
    I found that the version that was generously provided here is not woking on the iPad.

    Any chance to get this going?
    Or can anybody share a working example of video in panos with controls on the ipad?
    Won't need distorted hotspots.

    Thank you so much
    Jürgen

  • well, in this part of code there is some that makes error on iPad.. on desktop is ok.. time bar and volume control..

    when you find the problem, let me know!

  • Thats an old one, I already tried this :D
    And of course I found the error, wich is pretty easy to find and to solve *tongue*
    But even when corrected it doesn't work on iPad, which is no surprise as it contains the same old timebar-code from the beginning.

  • ah ok ,

    i don't know. didn't put time in that lately..
    can you give a hint for the ipad problem in the code?
    and do you share the new one then..?
    the code.


    Tuur *thumbsup*

  • This is the code for distorted hotspot videos :
    I know something is wrong in this code and any improvement is welcomed.
    for exampel,at line 108, i forced to disable "check_for_parents" function and add "set(parents_return,%1);" at line 109

Participate now!

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