Skip to main content
Participant
May 11, 2017
Question

Remove The Play button & White Screen that shows on mobile Adobe Captivate 2017

  • May 11, 2017
  • 14 replies
  • 14415 views

I would like to Remove The Play button & White Screen that shows on mobile devices with Adobe Captivate 2017. In desktop it's ok, because works autoplay, but on mobile not.

This topic has been closed for replies.

14 replies

Inspiring
September 24, 2018

Is there a certain spot where you've added

cp.movie.play();

into the index.html file?

I've tried in a couple of places, but the white screen with the play button is still appearing.

Thanks.

Participating Frequently
September 25, 2018

From my experience you have to wait until the module is ready before you can trigger the cp.movie.play() function to skip the Play button.

Try adding this to your index.html file. I typically add my script stuff just before the closing </head> tag.

<script>

  window.addEventListener("moduleReadyEvent", function () {

       cp.movie.play();

  });

</script>

Inspiring
September 25, 2018

Thanks, that did the trick!

thisguy4xapi
Inspiring
August 22, 2018

One way to remove it is add:

cp.movie.play()

to your index.html in the <script> portion.  I use it all the time to remove play button from iPAD mobile.

Lilybiri
Legend
August 22, 2018

Ok, will definitely check this out.

Participating Frequently
August 16, 2018

Edited - The post was awaiting approval on the blog. I figured as much there just wasn't any indication that was actually happening.

I tried to post this comment on the blog post that Lilybiri mentioned but for some reason, it didn't appear to be going through. No indication of a review period or anything.

Anyways, I think I have a solution that is a bit better in regards to implementation in order to keep you from having to edit the CPLibraryAll.css and CPM.js files every time they are generated during a publish. To start with I'll mention that I opted for having the Play button completely transparent as mentioned in the main post.  But I also made my Play button the same size as the Poster image I created.  Regardless, the implementation is the same no matter what appearance you go for.

First, create a custom CSS file that contains any custom settings you want to make to the size/position etc. of the Play button. Make sure to tag every setting you want to override with !important to ensure your settings are chosen above all others that may exist or be inherited from. Then place the file in C:\Program Files\Adobe\Adobe Captivate 2017 x64\HTML\assets\css to ensure it is included every time you publish your project. I'll post a copy of my CSS if anyone wants to see it.

*:focus{outline:0;}.autoPlayButton{width:1024px !important;height:768px !important;left:0 !important;top:0 !important;}

Next, edit the index.html file located 2 levels up in the HTML folder and add a <link> to your custom CSS near the top of the document just before the first <style> element with the text/css information. Again, this ensures that this modification is included every time you publish a project. (Be sure to make a backup copy of your index.html file if you haven't already in case you need to revert changes and forget what you did down the road.)

Finally, create a custom javascript file and insert the following code in the file.  Place the file in the assets\js folder that is up 1 level from the CSS folder and then add a <script> reference to the index.html file that was just edited to ensure that it too is included in your project publishes. The reference can go pretty much anywhere in the Head section, I put mine just before the closing tag.  Alternatively, you could opt to add some javascript directly to the index.html file that was edited earlier. However, with this method, you can expand upon any custom CSS that you want to create and maintain externally.

window.addEventListener("moduleReadyEvent", function (evt) {
cp.autoplayImage.style.opacity = 1; //set poster image to 100% opacity
});

With this configuration, it's a no-brainer. You just publish and move on.

Edited - It is also easily modified if you need to make adjustments for another project. The biggest benefit to this setup is that you only have to set it up once rather than after every project publish.

Inspiring
June 18, 2018

Hi Lilybiri ... do you have mor infos about 2disallowing autoplay by browsers"? what is it all about? What will happen if browser does not allow autoplay? Which browser does not allow it?

Currently all browsers playback our content that was created with captivate versions that did not have the "play" button at start. And all content works well.

So could you be more specific about autoplay, please - or where do we get further information and solutions? (to us, and to all of our customers the play button is/will not be acceptable).

Many thanks in advance.

Alex

Lilybiri
Legend
June 18, 2018

I am not a browser expert at all, but as we say in Flanders 'I feel the rain shower announcement in the air'. At this moment the most recent version of desktop Chrome and lot of mobile browsers prevent AutoPlay. It may not show yet for older published CP-courses, but I do see quite a lot of complaints in the forum that the audio in the first slide will not play (had that experience myself in one of the rare tutorials where I didn't disable AutoPlay).

When will it rain? I have a feeling that in the (near) future more browsers will disable AutoPlay, so I just create all courses now with AutoPlay disabled, where I tweak everything to make the experience as pleasant as possible for the learner. Have a look at my most recent post in this portal (about Audio and Pausing Timeline): it shows how such a revamped first slide looks. I don't like to insert a link, because that means comment has to be approved, which can take time since the team is very busy at this moment.

If your clients do not want the Play button, they will have to stick with older browser versions and older Captivate vesions.

I went to the other forum, where I can safely insert a link (without need for approval):

Pausing Timeline and Audio clips - eLearning

Inspiring
June 18, 2018

Thanks for your ultra quick answer. To me it is hard to understand to put the blame on the browsers, while captivate has no acceptable option to offer. We can live with no autdio on the first screen; but taking so much effort to create a first screen (which in the end has not much functionality) is just another annoying part a) in production, and b) for the users. I do understand that the way browsers are/will be designed has impact on an authoring tool like Captivate, but the current solution will not be acceptable be our customers at all. So, may I ask again: Do you know - or does anyone know - how to override the play button so that no extra click is needed? What will be Adobe's srategy on this situation (of which certainly many users/priducers are unhappy)?

InterventionsC
Known Participant
May 29, 2018

Hi There,

This relates to the original post and the link to Poster Image - AutoPlay - Captivate blog

If anyone can help at all I'd be extremely grateful.  I'm trying to do the same and am having 2 problems:

1. I can't resize the poster image to fit the whole player screen.  As you can see from my screenshot it is a lot smaller.  Are there specific dimensions I should use do you know?  The one I have created is basically a cropped screenshot of a slide I have created in Captivate.

2. I have followed the instructions (to the absolute letter!) on how to switch the default play icon to a transparent icon (then add the poster image on top).  I cannot get rid of the nasty blue outline (please see screenshot) however hard I try.  Can anyone please help to identify what I am doing wrong?  I've been trying to fix this all day!

I can live with the 70% opacity issue for now.  That's not as pressing as the terrible blue box!

Many thanks, Heather

R_H__
Inspiring
May 29, 2018

To remove the blue boxes from the whole course, once the course is published, go to Assets > CSS > CPLibrary.css

Insert this at the start of the file and then save.

*:focus {

    outline: 0;

}

InterventionsC
Known Participant
May 29, 2018

Oh brilliant, thank you -  that has worked!!! I wish I had posted this question 5 hours ago.  Thank you so much.  I have no programming skills AT ALL.

Can anyone help me with the resizing please?

Thanks!

Heather

sabre123
Participating Frequently
April 27, 2018

Maybe a simulated click can be used:

document.getElementById('thePlayBtn').click();

Lilybiri
Legend
April 27, 2018

For Desktop, you can still activate AutoPlay, will work on browsers that allow AutoPlay.


As for SL: it is a SWF file playing in a HTML wrapper, not HTML output.  Do you prefer that solution? No real responsive projects, only rescalable?

sabre123
Participating Frequently
April 27, 2018

Yep, HTML with Flash under the hood. Also, I thought SL used their app to play content on mobile devices....at least that's how it was some time ago. I recall it being dodgy when using a custom nav.

sabre123
Participating Frequently
April 26, 2018

Can you hide it with the method provided in this thread?

A brute-force fix would be to replace the Play_icon.png file with an empty, transparent png file. Locate the Play_icon.PNG file within the respective Captivate folder, copy and paste to create a backup (to be safe), then open the Play_icon in a graphics program, delete the image, and save as a transparent .png. Every time you publish, it will use the transparent png and, hence, not display the Play button.

If it's sitting there expecting the user to click or tap something, then that may not be viable.

Lilybiri
Legend
April 26, 2018

I blogged with steps about eeniving play button, adding a poster image and

take away the automatic dimming of the poster. Search blog.lilybiri.com

sabre123
Participating Frequently
April 26, 2018

Outstanding, Lieve! Thanks for the acknowledgment, too.

Poster Image - AutoPlay - Captivate blog

sabre123
Participating Frequently
April 26, 2018

Really? Seems very odd. Did you check to see if it's the Start and End in the Preferences that have been set by default?

R_H__
Inspiring
April 26, 2018

In the Start and End settings, with the AutoPlay button checked (and I tried unchecked) the Play button appears.

I tested locally on Windows 10 desktop - Chrome, IE and Firefox and the button is there. Also tried uploading to Scormcloud, button is still there.

R_H__
Inspiring
April 26, 2018

Looks like the Captivate April 2018 update has forced this play button at the start of all courses now, both desktop and mobile. Has anyone found out how to get rid of this permanently yet?

I think i might be rolling back my version of Captivate.

Paul Wilson CTDP
Community Expert
Community Expert
April 27, 2018

Adobe has changed the default on Autoplay due to recent browser updates that have discontinued auto-playing media in web pages. Here is the post about that:

https://helpx.adobe.com/captivate/kb/captivate-responsive-courses-not-autoplay-browsers.html

Paul Wilson, CTDP
Dirlo
Inspiring
April 27, 2018

...

And this is meant to be an improvement ???...

Now the learners (on desktop) will have to click two times to enter a project... instead of one... If I understand clearly !...

And we will have to make new introduction-poster to replace this play button ???...

Pfffff...

...

klsheehannz
Participant
March 19, 2018

I have a question ... I've created a faux landing slide image (and hidden the original slide), and set this to appear at the start of the module.

However, when played (and I've only tested using the HTML5 in Browser preview option) the image is dulled like it hasn't loaded fully.

For comparison, the colours should look like this:

Any thoughts on what's causing this and/or whether there's a way to show the image properly?

Lilybiri
Legend
March 20, 2018

I have the same experience, don't remember this to happen in CP9, will log a bug. Have a look at this movie: the Poster image is the same as the first slide. The difference is very celar, especially since I use a dark background:

SharedActions

I got feedback on my bug report. The dimming of the poster image is 'by design'. It is menat just to highlight the transparent play button provided automatically from Captivate.