I want to play the video automatically after the splash screen closes.

Asked 1 years ago, Updated 1 years ago, 42 views

As a transition when starting the application,
①Splash screen ▶ 画面 I think the menu screen is normal, but
②Splash Screen ▶ (Video (mp4 on server) ▶ I am considering it.
When playing videos, I want to play videos with pop-ups, so I click the button once to pop up any sample (such as http://editors.ascii.jp/c-minamoto/jquery/003/).

What should I do to make the transition like の?
If possible, I would like to skip the video.

monaca jquery

2022-09-30 13:52

1 Answers

I've never seen a site or app that plays videos inline on iOS, so I checked if it's possible in the first place, and it seems that cordova can play videos inline by setting the following settings.

Add to config.xml

<preference name="AllowInlineMediaPlayback" value="true"/>

Add the webkit-playsinline attribute to the video tag as follows

<video src="sample.mp4" webkit-playsinline="1"></video>

The rest might work if you rewrite the <img> tag of the DEMO to the <video> tag above.


2022-09-30 13:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.