2322

How to enable autoplay .h264 video in html

Question:

I am trying to get a h.264 video to autoplay in Qualtrics. Here is the HTML code for the video (I've removed the source from the code).

<video class="qmedia" controls="true" height="480" preload="auto" width="640"><source src="blah" type="video/mp4" /><embed align="middle" autoplay="true" bgcolor="white" class="qmedia" controller="true" height="480" pluginspage="http://www.apple.com/quicktime/download/" src="blah" type="video/quicktime" width="640" /></video>

I've tried autoplay ="true" and autoplay ="autoplay" and adding < video autoplay> to the end of the code. None of these have caused the video to autoplay. Does anyone know how to enable this in the HTML?

Answer1:

autoplay and controls are both just true if they exist, no need to set them equal to anything. The following worked fine in my test:

<video class="qmedia" controls autoplay height="480" preload="auto" width="640"> <source src="blah.mp4" type="video/mp4" /> <embed align="middle" autoplay="true" bgcolor="white" class="qmedia" controller="true" height="480" pluginspage="http://www.apple.com/quicktime/download/" src="blah.mov" type="video/quicktime" width="640" /> </video>

Recommend

  • Viewstate - utter confusion.
  • How to encode h.264 live stream to RTP packet with Java
  • Three.JS Shadow to object
  • Pulling through text into div
  • Python - how to read Windows “Media Created” date (not file creation date)
  • bxslider stopping video element autoplay
  • How to remove special characters in file names?
  • How to do popup on new site for 301 redirected users?
  • $this->params returns null in cakephp model
  • JPA/Hibernate - Entity name seems to be important. If I rename to “Bob” works fine
  • HTML5 video only works in IE. The other browsers shows the black screen
  • Hibernate to update table schema
  • Can't delete or rename original file after resizing
  • How to view images from protected folder with php?
  • D3 get axis values on zoom event
  • Display images in Django
  • Jackson Parser: ignore deserializing for type mismatch
  • Test if a set exists before trying to drop it
  • OpenGL 3.3 on Mac OSX El Capitan with LWJGL
  • Change multiple background-images with jQuery
  • Resize panoramic image to fixed size
  • How to set/get protobuf's extension field in Go?
  • Trying to switch camera back to front but getting exception
  • How to show dropdown in excel using jrxml (jasper api)?
  • Importing jscolor library in angular 2
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • How do I configure my settings file to work with unit tests?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • python draw pie shapes with colour filled
  • sending mail using smtp is too slow
  • Busy indicator not showing up in wpf window [duplicate]
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • Binding checkboxes to object values in AngularJs
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • How can I use `wmic` in a Windows PE script?
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?