AI TOOLS

Share a page with a video file as a link

A product demo, lesson or portfolio page from Claude or ChatGPT with a <video> tag in it. Where the MP4 has to live, which format plays everywhere, how to get a poster frame, why autoplay needs muted and playsinline, and how to send the page as a link.

4 min read·

Ask Claude or ChatGPT for a product demo page, a lesson or a portfolio and you often get one HTML file with <video controls src="demo.mp4">. On your computer it plays, because demo.mp4 sits next to the file.

Upload only the HTML file and the player is a black box with a dead play button. The page has to point at a video file the link can reach.

Put the video in Media

In the FileShare Pro app, open Media and drop the MP4 in. It gets its own URL on r.fileproapp.com; Copy URL puts it on your clipboard. Replace demo.mp4 in the page with that URL, or give the AI tool the URL and ask it to use it.

Media files count toward your storage and the per-file limit: 100 MB on Free, 250 MB on Pro, 1 GB on Team. At 5 Mbit/s, a common rate for 1080p screen recordings, video is about 37 MB a minute, so the Free limit holds about two and a half minutes. For longer videos, embed YouTube instead.

Embedding the video in the HTML as base64 makes the file about a third larger than the video, and every visitor downloads all of it before the page appears. Keep that for clips of a second or two.

Use H.264 MP4

An MP4 with H.264 video and AAC sound plays in Chrome, Safari, Firefox and Edge. Screen recorders and most export dialogs offer it as the default or as "MP4 (H.264)".

A .mov straight from an iPhone is usually HEVC, which some browsers on some computers cannot play. Export it as H.264 MP4 before putting it in Media.

Seeking and Safari need byte ranges

When a viewer drags the scrubber, the browser asks the server for just that part of the file with a Range request. Safari asks for ranges before it plays anything, and will not play a video from a server that ignores them.

Media URLs answer Range requests with only the part asked for and send Accept-Ranges: bytes, so the video plays in Safari and the scrubber works everywhere. A cloud-drive "anyone with the link" address often does neither, and some of those return a download page instead of the video.

Poster frame and preload

Without a poster, the player shows black or the first frame until it loads. Export a still from the video as a JPG, put it in Media and add poster="URL of the JPG" to the <video> tag.

Add preload="metadata" so the browser fetches the length and size of the video, not the video itself, until someone presses play. Visitors who never press play then download a small part of the file instead of all of it.

Autoplay needs muted and playsinline

Browsers block video with sound from starting on its own. A background or hero video starts when it carries autoplay, muted and playsinline together: <video autoplay muted loop playsinline src="...">. Without muted it stays still until the visitor clicks.

playsinline keeps the video inside the page on an iPhone. Without it, Safari on iPhone takes the video full screen when it plays.

The share view passes autoplay, fullscreen and picture-in-picture through to your page, so the fullscreen button in the player works in the shared link.

Upload it and send the link

Drag the HTML file onto the FileShare Pro dashboard and copy the link. Viewers need no account, and they can leave comments on the page, such as "cut the first 10 seconds of the demo".

To swap the video, upload the new one to Media, put its URL in the page and upload the new HTML over the old file; the link stays the same: updating a shared link without changing it.

Related: a page with an audio player, a page with an embedded YouTube video and why a page that works in chat breaks when hosted.

Frequently asked

Does a password on the page protect the video file?

No. The password protects the page, not files in Media. A Media URL plays for anyone who has it: password-protecting an HTML page.

Does the page with the video show up in Google?

No. Shared files carry a noindex header: keeping a preview out of Google.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free