Solution to start playing video in Unity and then not automatically playing the video after packaging the web package

Solution to start playing video in Unity and then not automatically playing the video after packaging the web package

The automatic playback mentioned here refers to the automatic playback of videos after entering the program. It can also be interpreted as the start of playing videos or sounds without any operation after entering the program. 1. Analysis of the reasons. First, through Baidu analysis, it was found that the new version of the browser
has
been Sound autoplay is no longer supported, and videos are not restricted, but because videos also include sounds, videos cannot autoplay either.
2. Solution:
2.1. Browser settings solution
can solve the problem by setting the browser management sound settings. Just set the sound to allow automatic playback, but this is not very convenient because we can set it ourselves, but For a product, users sometimes don't or find it troublesome, so I personally like the second solution.
2.1.1. Firefox browser settings
Baidu’s solution:
https://blog.csdn.net/fivestar2009/article/details/109052063
Firefox browser settings are as follows: Open Firefox browser and find the settings
Insert image description here

Insert image description here
2.1.2. Google Chrome settings
Google Chrome settings are as follows: Open Google Chrome settings
Insert image description here
Insert image description here
Insert image description here
2.2. Add a start play button before the video or audio automatically plays.
I think this solution is very acceptable and convenient for users. It’s also more comfortable.
Baidu’s solution:
https://www.mzwu.com/article.asp?id=4411

Guess you like

Origin blog.csdn.net/qq_37179591/article/details/118541674