We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Play back time in puzzle

Home Forums Puzzles Play back time in puzzle

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #80963
    riya
    Participant

    My team working with project containing text to match audio file mp3 player. we like to match the text by auto scrolling with voice over. But in puzzle we were not able to get time the exact playback time of current audio file. Is there any way to get the playback time for the audio file?
    Thanks in advance.

    #80964
    kdv
    Participant

    https://www.soft8soft.com/docs/manual/en/puzzles/Sound.html#get_playback_time
    https://www.soft8soft.com/docs/manual/en/puzzles/Sound.html#get_duration

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #80965
    riya
    Participant

    Thanks for your reply @kdv .
    I tried the above i can be able to get only the full duration of the audio file from get duration puzzle. I am not able to get the exact playback time of the audio file from get playback time puzzle. Is it any way to check the playback time of audio file (current time stamps) ? or after 5s or 10s of audio file time?

    #80967
    kdv
    Participant

    looks like the puzzle is not working at all :wacko:

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #80970
    riya
    Participant

    @kdv Thank you

    #80984

    Yep, getting current playback rate is not supported for “audio” assets yet. Try “music” instead.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #80985
    riya
    Participant

    @Alexander kovelenov Thanks for replying.
    My team tried in “Music ” too even in Music playback rate is not working. Is there any chance in future update Play back rate will work for sounds/Music?

    #80986
    kdv
    Participant

    it’s possible with Audio()

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #81000
    riya
    Participant

    @kdv I tried above code. It’s not working for me. I have a mp3 file playing with sounds like attached puzzle. In console playback time is not working like above example. Am i doing anything wrong with above example ?

    Attachments:
    You must be logged in to view attached files.
    #81002
    kdv
    Participant

    Am i doing anything wrong with above example ?

    I suppose you are using the standard “exec script” puzzle. it cannot access variables directly from another puzzle instance.

    With the the standard “exec script” puzzle it should look this way

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #81004
    riya
    Participant

    @kdv If i created the mp3 files like attached file in create list. Is there any different way to exec an Audio script?

    Attachments:
    You must be logged in to view attached files.
    #81007
    kdv
    Participant

    I don’t see how your question is related to the playback time reading :unsure:

    Try “music” instead.

    btw, it was good and working advice

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #81009
    riya
    Participant

    @kdv Instead of single mp3 player like the example you shared environment.mp3. My team playing n mp3 files for n steps. we created a list using variable. Each mp3 player will play according to steps in given text .so we like to get exact current mp3 playback time for each step. Instead of single player mp3 player like environment.mp3.Is there a way to initialize a variable in EXEC SCRIPT to play the file from sounds folder containing n number of mp3 files?

    #81010
    kdv
    Participant

    see the post above. use “music”. it’s working.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #81011
    riya
    Participant

    @Kdv Its working. Thank you so much for your help.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.