0 votes
by (1.1k points)
edited by
@@.vid;
    <video controls autoplay loop>
        <source src="pics/example 1/example 1.mp4" type="video/mp4">
    </video>
@@

The general commands like loop and show controls work except autoplay, I do not know if this can be a browser problem (I use chrome) or if this is a mistake of mine.

1 Answer

0 votes
by (149k points)
selected by
 
Best answer

Many modern web-browsers, especially those used on mobile devices, now require the user to interact with the current page before the autoplaying of media will work. This restriction was introduced mainly to stop malicious web-sites forcing the downloading & playing of large & unwanted media content.

So if you are trying to autoplay that video on the first Passage of your project then this may be the reason it isn't working. The solution in this case is to make the first Passage informational (welcome, credits, summary, etc..) instead and move the actual start to the second Passage.of your project (linked to from the first). This way the user will have interacted with the page at least once.

I also noted that you have space characters in the folder and file names of the video file, this is generally not a good idea when dealing with web based technologise. I suggest replacing those space characters with either an standard dash (minus sign) character or an underscore.

pics/example-1/example-1.mp4
or
pics/example_1/example_1.mp4

... also most operating systems (other than Windows) are case sensitive when it comes to the letters in folder and file names so make sure you keep using a single letter case (generally all lower) like you currently are.

...