Explore the community Forums Lectora Lectora Questions & Answers Display Controller only on Mobile View

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #327755 Score: 0
    Profile photo of TxLady
    TxLady
    Member
    beginner
    intermediate
    advanced
    contributor
    wise owl
    curious george
    1 pt
    @TxLady

    Since the mobile view doesn’t auto-play sound, how do I make the controller visible for the viewer to play only in the mobile view?

    I want to keep the auto-play invisible option for desktop.

    #327797 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    1. Touching the video should “Play”, even if there’s no controller.

    2. You can use two videos, one with controller the other without or a custom play button and position it out of the stage in Desktop view.

    3. You can use Javascript:

    On: Page show
    Action: Run javascript
    Javascript:

    document.getElementsByClassName("mejs-controls")[0].style.display = "none";

    Only if “CurrentView” is equal to “Desktop”.

    Tim

    This post has received 1 vote up.
    #327844 Score: 0
    Profile photo of TxLady
    TxLady
    Member
    beginner
    intermediate
    advanced
    contributor
    wise owl
    curious george
    1 pt
    @TxLady

    I will try that.  Thank you.  I will let you know if it works.

    #327928 Score: 0
    Profile photo of TxLady
    TxLady
    Member
    beginner
    intermediate
    advanced
    contributor
    wise owl
    curious george
    1 pt
    @TxLady

    Well – after reading and re-reading your wonderful help – it finally worked.  First go-around I put the speaker icon and wondered why it didn’t work.  What is that thing for if it’s not a player?  Anyway, I picked a nice player and did what you said – and all is well.  Thank you so much.  Who would have thought moving the player off the edge of the screen for desktop would still allow it to play?  I would have thought it would have acted like it simply wasn’t there and not play.  Great idea!

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

You must be logged in to reply to this topic.