1

I am using an html5 video tag where the src is a data uri:

<video controls>
   <source type="video/mp4" src="data:video/mp4;base64,{data} />
<video>

which Chrome renders with controls: controls However if I click the download button on the right, the file downloads as download.mp4. Is there anyway to control that filename?

Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120

1 Answers1

-3

In the src attribute just type the name that you want to display while downloading the video. The same name will be displayed while downloading.

<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video

In this example, the name of the file to be downloaded will be movie.mp4

Hem
  • 1
  • 1
  • 3