Explore the community Forums Lectora Lectora Questions & Answers Video sync events (triggers) questions

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #321369 Score: 0
    Profile photo of Daniel S
    Daniel S
    Member
    beginner
    intermediate
    wise owl
    curious george
    picture perfect
    friend finder
    contributor
    @ds8538

    I have some questions for any Lectora gurus out there (I am using Lectora Inspire v16.1.2):

    1) Can I remove the “fullscreen” button from default video controller (ideally with some html extension)?

    2) Is it possible to jump to video event (trigger) via javascript action?

    3) Is it possible to set up video events (triggers) via javascript action?

    4) How precise can we control video regarding time? For example, this should this be equivalent:
    – mejs.players.mep_0.setCurrentTime(26.4);
    – video event set at 26.4
    but in my test there is slight difference. I read somewhere that MediaElement (which is also used by Lectora) has time interval of 250ms. Is this correct? Can this be changed?

    Also, it’s quite cumbersome to set up events precisely with mouse and slider. It would be great if this could be done with keyboard and then move slider frame-by-frame. 🙂 I also tried changing default video editor (with Camtasia) but it seems that I can’t set up events anymore after that…

    Thank you!

    #321412 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    1. Add a style sheet with the following.

    div[id^=’mep’] .mejs-fullscreen-button {
    display:none!important;
    }

    2. – 4.  Read https://community.trivantis.com/forums/topic/events-in-audiovideo-files-again/

    You can get better response but I haven’t had the time to work on it.

    Darrel

    #321443 Score: 0
    Profile photo of Daniel S
    Daniel S
    Member
    beginner
    intermediate
    wise owl
    curious george
    picture perfect
    friend finder
    contributor
    @ds8538

    Darrel, thank you for your reply.

    I’ve read entire post from the link you provided (and it’s a great post) but it didn’t solve my problem.

    Maybe it will help to lighten up my problem a bit 🙂

    I have a mp4 video file (e.g. 60s sec long). What I want is to set some event triggers (checkpoints) at predefined times (eg. 15s, 30s, 45s). At those checkpoint I want to pause video and run some action (e.g. short quiz).

    I can do all of this with use of Lectora sync event command but there is one problem when playing such video. If I use a controller (playbar) and jump directly to 33s it triggers first (15s) and second (30s) event.

    What I need is that a user can use a controller and jump to random place on a timeline and that video won’t trigger all events before that time.

    I suppose I can’t get such behaviour with Lectora sync events (or am I maybe mistaken?), so I was asking if is possible to reach such solution via some Javascript.

    But maybe there is entirely different solution to this problem. Any idea? :=)

    Thanks!

    P.S.: Ah, I’ve tried your code for disabling fullscreen button. It removes the button but also mess-up button for volume which is on some weird place under the controller??

    • This reply was modified 3 years, 2 months ago by Profile photo of Daniel S Daniel S.
    • This reply was modified 3 years, 2 months ago by Profile photo of Daniel S Daniel S.
    #321531 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    336 pts
    @ssneg

    Lectora does trigger all events on the timeline when you skip ahead. What you can do is to modify those events a little bit so they don’t conflict with each other. E.g. instead of using just “show the quiz #1” and “show the quiz #2” you could add an action that hides ALL quizzes before showing the one you need. This way only one quiz will be show (the last one) even if the learner skips ahead.

    #321533 Score: 0
    Profile photo of Daniel S
    Daniel S
    Member
    beginner
    intermediate
    wise owl
    curious george
    picture perfect
    friend finder
    contributor
    @ds8538

    Thanks Sergey,

    but I don’t want to show the last one but the next one 🙂

    For example, I have first event at 15s, second one at 30s and a third one at 45s.
    If I skip to 35s it should trigger the next event (at 45s). It should “jump over” the first and second event.

    And if I afterwards jump to 12sec, I want it to trigger first available event (the one at 15s).

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.