Body: <p>I have little hope finding any help since it looks like an iBooks bug to me, but here's what I found:</p>
  
  <p>If I have in my EPUB file an XHTML document containing <strong>only</strong> a <code>&lt;video&gt;</code> element with the <code>autoplay="autoplay"</code> attribute, it starts playing when I land on the page, and pauses when I go to the next or previous page, just as expected.</p>
  
  <p>Now if my document contains <em>anything else</em>, like a <code>&lt;div&gt;</code> or even the letter <code>F</code> or whatever, before or after the <code>&lt;video&gt;</code> element, the video doesn't play automatically.</p>
  
  <p>Not sure if I should post an answer explaining that, because my problem is not solved, but this question might help others having the same kind of issue and not needing to include else on the page.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-30T17:58:47.380Z
Comments.Text: Now that I think of it, I guess it might be meant to prevent videos from autoplaying in a document spanning over several pages, with the video possibly appearing on the 15th page, but automatically starting as soon as you enter the first page…
Comments.UserDisplayName: sylbru
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-01T18:05:42.417Z
Comments.Text: iBooks supports a lot of things other reading systems don't, but they do it strangely :)
Comments.UserDisplayName: idiotprogrammer
Tags: <epub><apple-books>
Title: iBooks: video tag with autoplay property won't play if there's something else in the document
UserDisplayName: sylbru
ThreadText: # iBooks: video tag with autoplay property won't play if there's something else in the document
  
  (Asked by: username_0 on 2017-06-30)
  
  I have little hope finding any help since it looks like an iBooks bug to me, but here's what I found:
  
  If I have in my EPUB file an XHTML document containing **only** a  element with the `autoplay="autoplay"` attribute, it starts playing when I land on the page, and pauses when I go to the next or previous page, just as expected.
  
  Now if my document contains *anything else*, like a  or even the letter `F` or whatever, before or after the  element, the video doesn't play automatically.
  
  Not sure if I should post an answer explaining that, because my problem is not solved, but this question might help others having the same kind of issue and not needing to include else on the page.
  
  **Tags:** epub, apple-books
  
  > **Comments:**
  > **username_0**: Now that I think of it, I guess it might be meant to prevent videos from autoplaying in a document spanning over several pages, with the video possibly appearing on the 15th page, but automatically starting as soon as you enter the first page…  
  > **username_1**: iBooks supports a lot of things other reading systems don't, but they do it strangely :)  
  
  ---
  
  ## 0 answers
  
  