Forum Discussion
Remove play button on html5 opening screen in Storyline 360
Is there a way of editing the code on one of the files to remove the big play button that appears on the opening screen of a mobile device accessing the html5 file? I've seen threads on how to do it on SL2, but not on SL 360. I can't seem to locate the player_compiled.js (or story_compiled.js) file to even edit it. I'm using SL 360 publish to Web with HTML5 only content option. When the published file gets uploaded to mobile iOS device, the opening screen is always the Play button (see image below). And yes, I know that editing published files is not supported by Articulate.
95 Replies
Hi there, Oscar!
Play Button on Mobile
The play button is standard on mobile devices since it requires user interaction. To add more color to the 'why':
What you're describing is the intended behavior for Storyline content on a phone. It's the same approach for how iOS handles videos, for instance. Videos get a play button on the phone and then go full-screen when clicked. This is done due to the limited real estate on the phone. The same approach is taken for Storyline content. - Adam
Let me know if that helps. I'll also surface the need to customize how that play button looks with our team!
- OscarGagliardiCommunity Member
Hi Katie,
Thank you for your quick reply. Yes, I understand why the need of the play button at the start of a Storyline module, specially on mobile devices. As a user I will like to have an option to make some minor custom modifications to this page. For example, changing the color of the background and play button, maybe adding some additional text or increasing and centering the title of the program.
I have been able to customize the start screen using css, but of course it will be nice if the customization options reside within the Articulate Storyline Authoring tool.
Thank you to Articulate for producing this great authoring tool and for all the features it keeps adding. It really show the dedication Articulate has to the industry and its customers.
Oscar
- DocFoxCommunity Member
And I'm just going to keep saying this until someone at Articulate listens/understands:
A "play" button at the beginning of Storyline content is only necessary when there is content that might autoplay (e.g., audio or video) at the beginning. If Articulate can't figure out how to intelligently detect that, the author should be allowed to set whether or not a play button appears.
For example, if I have a drag-and-drop exercise that I create in Storyline, there is no reason at all for mobile users to first click a confusing "Play" button to begin dragging the objects. The dragging itself (or the selection of a multiple choice option or the clicking on a hotspot or...) IS the user interaction. You do not need to create a perfunctory or substitute user interaction (the play button) to indicate the user's willingness to begin the real user interaction.
H5P content is a great example of this. Most H5P content types work brilliantly across mobile devices and browsers without the need for a play button to launch or activate them.
And it's not just about styling that play button -- it's about displaying it only when it is absolutely necessary. For a great deal of content, it is not necessary (and is, in fact, confusing and cumbersome for the end user).
- OscarGagliardiCommunity Member
Well said Eric. On Desktop computers a module that doesn't have audio or video on the first slide doesn't display the awful screen with the play button. On mobile devices it appears regardless. I think we need Articulate to first address the inconsistency and then provide us with a way to customize this screen.
Oscar
- Anne-SellerCommunity Member
Hi Everyone,
I found this solution (from Sebastjan F.) in another forum post:
Replace the </script> </html> tags at the bottom of the index.html (or story_html5.html) file with this code:
<!-- This removes the play button overlaĂ½: -->document.addEventListener("DOMNodeInserted", function(event) {
if($(event.target)[0].className=="launch_interstitial"){
player.revealPostInterstitial();
}
});
</script>
</html>
It works for me in SL2, so I hope it works for SL360 too.Cheers,
Anne- HDDevTechCommunity Member
Unfortunately this didn't work for me in the latest version of SL360
- JessieBernal-f8Community Member
- TacySalcidoCommunity Member
THANK YOU!
- JorgeCampos-369Community Member
That worked. Thank you for sharing this!
- MathNotermans-9Community Member
At last found how to overcome the playbutton on Mobile... thx to Mike and Rachel for pointing me in the right direction..
Indeed in SL360 it is in the ds-slides.min.js..
What i did was unminifying the file...so it becomes what more readable
Used this here... https://unminify.com/
I added several console.log("now this happens") to the ds-slides.min.js to figure out where what happened exactly and thus soon found that there are several functions in it that cause the playbutton on mobiles.
onMobileStart
createMobileStartOverlay
showMobileStartOverlay
killMobileStartOverlay
All quite promising...so could i just call one of these functions ?After several tests and retry's i found that just adding
this.onStart(); at the end of the onMobileStart function overrides the play button and mobile behaves as desired.
So this is onMobileStart inside ds-slides.min.js
onMobileStart: function (t) {
var e,
n = this;
(this.rejectDeferred = t.rejectDeferred),
o.addClass(document.body, "resume-shown"),
(e = { visible: !0 }),
t.mobileStartAsPrompt && (e.isResumePrompt = !0),
this.setState(e, function () {
var t = null != n.refs.resume ? n.refs.resume : n.refs.playIcon;
c.env.is360 || t.focus(), l.trigger(u.startOverlay.READY);
});
this.onStart();
},
Do test it with this one...
https://360.articulate.com/review/content/70c26959-da56-4891-9d58-06277ed61d32/review- PhilMayorSuper Hero
Thanks for this Math. How does slide behave with audio or video on does it auto play?
Sent from my iPhone
- MathNotermans-9Community Member
Will make some tests with audio, video and more in it. Actually will test a Storyline block in Rise too, cause the default SL behaviour on mobile especially hindered me with SL blocks...
- MathNotermans-9Community Member
A test with audio on mobile is here...
https://360.articulate.com/review/content/26772712-a9cc-43f2-abc0-0071ef7759c2/review
No default Storyline play button. I tried to trigger audio automatically but that doesnot work. To play audio on mobiles a button and userinteraction as shown here is still needed. But for me thats fine. I want control and not a fixed setting in the Storyline player.
Next test will be video, expecting the same result...and then into Rise.
@Articulate. DO implement it this way in ds-slides.min.js too...
When done testing video and in Rise i will add my unminified ds-slides file so the developers can check upon that... - MathNotermans-9Community Member
The video works too. No 'Big-Black-Play-Button-Of-Despair', Storyline opens without it and you can play video by clicking on it.
https://360.articulate.com/review/content/974b35bf-5287-4512-8ab8-b03bde41809c/review
Next one, testing in Rise... - MathNotermans-9Community Member
And the Rise test works also as expected. Thats great... no autoplay however, but i donot mind.
I tested only on my Samsung Galaxy J7..
The ds-slides.min.js and the unminified version i attach. Do rename your original when working with this and do keep a copy of it outside the default Articulate folder ("C:\Program Files (x86)\Articulate\360\Storyline\player\unified\html5\lib\scripts") because when they update Storyline all here will be overwritten.
I exchanged the original ds file for my edited one, so all i publish will be without the 'Big-Black-Mobile-Play-Button'.
ds-slides.edits.js is the unminified file with my edits in it.
ds-slides.min.js is the same file, but now minified again and thus ready for use...
Kind regards,
Math- AnthonyGossCommunity Member
Forgive my lack of understand, but when I go into this folder, I do not see ds-slides. All I see is slides.min.js. Do I just need to add ds-slides.edits.js to this folder to make this work?
- AndreaCalleiaCommunity Member
Is there an update on this known bug as I am still dealing with this and it looks very bad for the user to have to press the arrow each time they start a module.
- MathNotermans-9Community Member
If you ask Articulate employees, its by design and no bug ;-)
As Storyline uses the sIides.min.js files from your local Program Files folder, i added 'this.onStart()' to the slides.min.js file by default. So now every publish i do has that automagically correct in it and i never have to bother about it.
In fact i did something extra. I use 'Symbolic Links' to point that file ( and some others ) to a local folder on my harddrive. That way i can edit those files whenever i want and need. Program Files folder doesnot allow editing. This way i added some code for me unmissable to the files.- LanceCorleyCommunity Member
Most helpful Math. thanks. can you tell me in my folder i have slides.min.js. Do I just download your ds.slides.min.js and rename it to slides.min.js to work? I am on storline 360 version 3.48.24159.0 . I have a drag and drop block with no video or audio and i get this bloody play button. Thanks in advance.
- GaryOvergaard1Community Member
Math,
Just wanted to say thank you for coming up with and sharing this workaround. It works wonderfully! This recently became an urgent need for me as well, and feel very fortunate and grateful to have found your posts. Nice work!
Best regards
Gary- MathNotermans-9Community Member
Love to help.. with pleasure Gary.
Related Content
- 4 months ago