Is it possible to embed videos in remarkup in a similar way to how images can be dragged on to the editor?
Even if it is just the browsers built in HTML5 player, this would be a great feature!
nateguchi2 | |
Jan 9 2015, 2:19 PM |
F1679254: out.ogv | |
Jun 7 2016, 9:43 PM |
F1679238: meow.mp4 | |
Jun 7 2016, 9:24 PM |
F1679224: IMG_0370.MOV | |
Jun 7 2016, 9:16 PM |
Is it possible to embed videos in remarkup in a similar way to how images can be dragged on to the editor?
Even if it is just the browsers built in HTML5 player, this would be a great feature!
rP Phabricator | |||
D16121 Add "video/quicktime" as a default Video MIME type | |||
D16076 | rP9469e3d6ac7a Embed videos in Remarkup at actual size | ||
D11297 | rP411cf1345763 Add Videos to Remarkup |
A while ago, we added support for the HTML5 <audio /> tag. We can take the same approach for <video />.
D7156 is the major change to look at. The fix will look something like:
Some sort-of-related discussion in T6674.
Managed to get this working on our install, will bring together a Diff after testing.
I believe this is now resolved and accounted for. See the remarkup documentation for some details.
If you've adjusted files.viewable-mime-types on your install, you may need to update it to add the new video MIME types. You may also want to review files.audio-mime-types: we now expect it to include video mime types that you want to enable media=audio for a particular type. You can compare the default values to what you've set to see what's missing.
Browser support for media formats varies, so not all browsers will be able to play all videos (for example, Safari can not play OGG by default).
I can imagine some future improvements to this feature:
I'm not currently planning to pursue these since it's not clear if they're really useful (and transcoding is probably quite complicated). If you're interested in these features or run into issues, let us know.