Using multiple web objects in layers - how to stop the video?
Nov 13, 2015
By
Cheryl Kent
Hello,
I am creating a sort of video gallery. I have thumbnail images which when clicked will show a layer with a relevant video on it. I have used web objects to add a youtube video to each layer. However if I click the next thumbnail image to show the next layer before a video has finished playing, the first video is continuing and you get audio for both videos - in fact you can get several playing at the same time.
How can I stop a video playing once a layer is hidden?
I have ticked the layer property to hide other layers.
I am intending to have 15 videos/layers on the same slide.
Any assistance appreciated.
41 Replies
Hi Ashley,
The mp4 files are hosted on Adobe Connect so we have written a custom webpage that displays this content and then link to that page from our WebObject.
We haven't discovered any consistency in the browsers that are experiencing difficulties yet unfortunately. Some students are using IE, others Chrome and others are having the issue on their tablets.
Muting the volume button on the WebObject when the student clicks the button to move onto the next slide would probably do the trick for us but we haven't been able to implement that functinality just yet as my Javascript skills are not the best!
Thanks for your help,
Ian
Hi Ian,
I don't know a lot about Adobe Connect, sorry! Are all the MP4 files on the same page there? So that when you access and play one it could actually be playing the others too?
Your javascript skills are better than mine - guaranteed, as mine are non-existent! Keep us posted if you're able to figure that our and share the solution here.
The MP4 filese are all hosted seperately unfortunately. I'll keep investigating and keep you posted! Thanks.
Hi @ Ashley Terwilliger
We are using storyline 3, and have same issue found in this thread.
Let me Explain, I have embed a youtube video us embed code in a slide layer, when I open up that layer and starts the video and then close it before video come to an end, slide hides but video sound doesnt stop.
I am attaching a sample storyline file here. Plz have look and suggest me some solution (I think it an issue with storyline which should be solved by your development team)
Regards
Hi 360!
Thanks for sharing your file and allowing us to take a look.
I published your file and I'm not having an issue with the video sound remaining.
Do you have the same issue with my published output here? If so, please share what browser you are seeing the issue in so that I can take another look.
I have the same issue in Storyline 2. Haven't tried it in Storyline 3. Basically you don't appear to be able to stop a video when running as a web object (the only way to stream YouTube videos since the API changed years ago). I'm using multiple layers each with a short video. You can close the layer but the video still runs in the background so you end up with multiple videos running at the same time. You can't use a 'Stop Media' trigger as Storyline doesn't recognise the web object as media.
Any fix?
On the same topic. Will Storyline EVER support YouTube embed again? Why is it so difficult?
John, you should be able to accomplish this with a javascript trigger which talks to the youtube api. Have you looked at going that route?
That route sounds quite technical Michael! Do you know why embed codes work with Vimeo and other video streaming sites but not YouTube?
The embed code should work with Youtube too. I just worked on a project for someone in the past few weeks that used an embedded Youtube video, let me see if I can find it...
I think I found it. Check out this thread and the attached project file and code: https://community.articulate.com/discussions/articulate-storyline/audio-and-video-overlapping-storyline-2
The code might need some alteration for your use, so let me know if you need any help with that.
The problem appears to be with the HTML5 output only. It appears to work fine in Flash.
Michael if I want to use that javascript how do I edit it to 'stop' the video when the layer is hidden?
Check this out and let me know if it's working for you: http://www.andersonelearning.com/demo/Stop_Youtube_Video_When_Layer_Hidden_SL2/story.html
I'm not seeing the video right away even though the audio is playing...Might be something to so with Youtube forcing https. See the attached project file for all the code. I've posted the web object code below in case you don't know how to extract it from the published project.
Thanks Michael, I'll give that a go! Appreciate your help.
Interesting. In Chrome it takes ages to actually load and start running the video....approximately 45 secs but when you close the layer it stops the video. In Edge the video also takes a while to load but it loads more quickly, however the close layer fails to stop the video. Just shows how the different browsers deal with the content.
I'll have to find a simpler more robust solution I think.
Edited: The previous project exhibited the same behavior, but it wasn't obvious because the video portion was hidden and only audio was used. I'll look into this more tomorrow.
Michael....yes you can only 'hear' the video of course...but that's the annoying bit!
This discussion is closed. You can start a new discussion or contact Articulate Support.