If you made it here, then you’re probably wondering weather or not Google Drive is a viable option for hosting streamable videos? Well, the answer is yes!
This is a follow-up to HTML5 Video is Finally Ready, so read that first for more info on the state of HTML5 video.
In order to make files publicly playable by anyone you need to share the files as “Public on the web” via your Google Drive, otherwise standard OAuth rules apply.
Here is an example using an H.264/AVC encoded MP4 which plays on Chrome, Firefox and Safari, and apparently Internet Explorer 11 too (untested):
And the source code:
<video controls="controls"> <source src="https://drive.google.com/uc?export=download&id=0B0JMGMGgxp9WMEdWb1hyQUhlOWs" type='video/mp4'/> </video>
In order to be completely cross-browser we can’t forget about the geriatric fathers of the browser world who still claim a market share, and require a Flash fallback.
As you may already know, Google automatically encodes uploaded videos into lower bitrate FLV files for playback using Flash via the Google Drive Viewer. This means the Google Flash player can be reused like so:
No doubt you could access the raw FLV stream using a custom player of your own design, in fact Symple has a chromeless FLV player which would be suitable for the task.