Skip to content

Commit

Permalink
Fixed typo on index.html (mdn#4749)
Browse files Browse the repository at this point in the history
* Fixed typo

* Update files/en-us/web/media/autoplay_guide/index.html

Co-authored-by: wbamberg <[email protected]>

Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
ammaraslam10 and wbamberg authored May 6, 2021
1 parent 0130a34 commit 28ea7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/media/autoplay_guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h4 id="Example_Handling_play_failures">Example: Handling play() failures</h4>

<p>Any other errors are handled as appropriate.</p>

<p>If you want to start playing the video after the first interaction with the page, <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval">setInterval()</code> might be used to achieve this:</p>
<p>If you want to start playing the video after the first interaction with the page, <a href="/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval"><code>setInterval()</code></a> might be used to achieve this:</p>

<pre class="brush: js">let playAttempt = setInterval(() => {
videoElem.play()
Expand Down

0 comments on commit 28ea7af

Please sign in to comment.