F
F
Frel2018-07-20 09:50:14
JavaScript
Frel, 2018-07-20 09:50:14

How can I make the video play only once?

How can I make the video play only once? Those. if you go to another page, the video was finished.
Can you change this code

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekssamos, 2018-07-20
@alekssamos

Catch the onplay and onended events of the onprogress ilt, and if it is played, write the flag to the storage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question