[ad_1]
Cocos Creator 3.4.2, webmobile construct.
I’ve a video and I wish to play it when the app launch. It may be performed on Android however not on IOS.
Here’s check hyperlink: https://sweet-shirt.surge.sh/
And the unusual suppose is: if I add a Button and when consumer click on on it, I name videoPlayer.play(). The videoplayer can play usually.
But if I name videoPlayer.play() by way of code. And tried to name it once more each one second. The videoPlayer don’t play.
Anyone have any thought to repair it? And is also there a option to get higher log, so we will know what’s the error contained in the CC engine?
This is a safari browser rule that requires the consumer to finish one click on on a web page earlier than video or audio may be performed.
Hi I clicked on on internet (earlier than and after the web page is loaded). The video nonetheless cannot be routinely
performed.
Here is the video that I examined on my Iphone.
Please be aware that I name this.videoPlayer.play() each 1 second.
let nativeThis = this;
this.schedule(() => {
console.log("schedule - " + nativeThis + " - " + nativeThis.videoPlayer + " - " + nativeThis.videoPlayer.isPlaying);
nativeThis.videoPlayer.play();
}, 1, 1000000);
[ad_2]