audio and video on one layer?
Mar 21, 2014
By
Kai ...
Hi All,
I ma trying to pause the audio when the video is playing and once stopped the user can continue listening to the audio. I even tried a hotspot on the player button because when you select the player it only includes the box and not the player bar. Once the video is finished, i'd like the audio to resume where it left off. I can get the uadio to stop on slides with no video, but also can't get it to resume playing.
Thanks!
21 Replies
Is it possible to have the audio on your base layer, and the video on another layer?
If so, simply set the video layer to ""pause timeline of base layer". This would allow your users to listen to the audio on your base layer, pause and watch your video, then return to the base layer and listen to the audio.
if it is possible to achieve this on a single layer, it may not be worth the extra work as the method described above works very well wtih minimal triggers.
I agree Mac. I can't use another layer and has to be triggered on this base layer. It is a nightmare. I can't hope that the user won't click the video until the audio is finished playing, that is just absurd, right?
I'm not sure if that's exactly what you want, but here is a quick example that shows how to pause/play audio, based on a video playing. This can be done with a few triggers, see below.
Is it attached?
Yes thanks.
I don't understand the video trigger?
I'm curious where the Trigger "Toggle" comes from. I can't seem to find that option.
The 'Toggle' comes from the NOT Assignment operator that is available when you select the Adjust Variable trigger action.
These kind of terms are so confusing. Apart form the basic ones there should be a list of these settings of the triggers to know when and how to use them.
- Control losses focus
- Not assignment
etc.... What do these things actually mean in lamens terms? Totally confusing and causing extra headaches.
Hi Kai,
I haven't seen a full listing of these, although I did find a good explanation of the "control losses focus" in this thread:
Think of user control as your hand. When you have your computer mouse in your hand, you are using your hand to control the mouse. When you enter information using your computer keyboard, the mouse is not in control, but now the keyboard is.
So the mouse has lost control (or control lost focus from the mouse) and the keyboard has taken control (or control has taken focus to the keyboard).
And a description from Michael previously here of the not assignment:
The Not Assignment operator toggles a T/F variable; if it is True, it will be set to False and vice versa.
The Assignment 'Variable' option can be used to assign the value of one variable to another. For example, the value of one variable is the result of a previous calculation on an earlier slide, which you then want to assign to another variable at the beginning of another slide and then execute other calculations on it. Here are two simple examples.
There is a listing of definitions of built in states.
Mike,
I finally had to apply your fix
Sad to say it doesn't work. I think it's because of this issue: When I try to set the trigger " Play audio when timeline starts" It doesn't it doesn't show the audio when I have to select an object. Only the video file and all the other objects are there. Am I missing something so rudimentary?
Thanks!
Another observation: Keep in mind the video and audio are both on the base layer.
When the slide is “playing” (and the video is not), you click on theyellow progress bar and drag it to the left to move backward, once you releasethe yellow progress bar the video begins to play.
- When you are scrubbing the seekbar, the video automatically starts playing. Also as in my initial post the audio doesn't stop once the video start playing even when applying Mike's fix.
- The trigger is set on the video for the user to click the play button and shouldn't automatically play.
- The slide is reset to initial state to allow for replay to start from the beginning.
- When clicking the replay button, if the audio isn't finished playing the audio basically picks up where it left off if you click replay midway through the audio playing.
I hope this makes sense?
No input yet??? :(
I don't know if this helps at all, but see attached the source file of my earlier example.
Thanks Michael! I will have a look. I did a work around in the mean time by placing it on a different layer. I personally don't like it form a UX perspective. I appreciate you getting back to me. Went bonkers yesterday trying to figure something less mundane.
Hi All who helped on this thread before. just checking in ot see whether someone has had any luck?
I ma in the same predicament. the last project was just handed off so the client's tech team handled it and i feel like an idiot asking them what they did.
I am now in the same boat:
1. Videos on 5 layers on one slide. How do I stop the video from playing once they navigate to the other layers. They are definitely overlapping.
Thanks!
Hi Kai,
Without knowing a little more about your new project, all I can really suggest is to check your layer properties.
I'd recommend checking to ensure the option "Hide other slide layers" is enabled. If it's not, the other layers with videos may still be playing in the background.
If you have a video playing on your base layer, you may want to enable the "Pause timeline of base layer" as well.
If you're still having trouble, please consider sharing your .story file here, so we can take a look.
Thanks!
Hi Christine,
I have done all of these. Still no luck. I had to place them all on different slides to prevent the over lapping.
I can't share the file unfortunately because of regulations. Thanks anyway.
Hi Kai,
Sorry to hear that! If you decide you'd like to revisit this, just let me know. You're welcome to share a link to the file through a private message, or we can look at sharing the file privately elsewhere.
Best,
Christine
Thanks Christine! I will send you a PM with the link of the file.
This discussion is closed. You can start a new discussion or contact Articulate Support.