Hi everyone,
I’m working on a Life ray portal that allows users to upload and view short videos. The videos are usually edited beforehand in video editor free and I’m trying to figure out the best way to manage them in Life ray.
Should I store them directly in Life ray’s documents and media, or use external storage with references?
Good question! Liferay has a free course (Mastering Liferay Assets and Content) that discusses topics like this one, which might be of interest to you. It’ll be updated in the next few weeks with information about some recently released features, but I believe the info about video hosting should remain the same.
Specific to your question, this is what the course currently describes (see this lesson) about this topic. There’s also info about choosing formats/resolutions to optimize videos, so I’d recommend taking a look at the whole lesson’s content if you’re able.
Host Videos Externally
Liferay highly recommends hosting your videos on external, dedicated streaming platforms and linking to them using external video shortcuts. This approach helps avoid system resource strains and oversized files.
There are two methods for leveraging videos hosted on third-party platforms:
-
Fragments: Use the External Video or Video URL fragments to embed external videos on a page. While both fragments function similarly, the Video URL fragment includes additional video controls for autoplay, loop, and mute.
-
Video Shortcuts: Create external video shortcuts in Documents and Media. You can then leverage external video shortcuts in other Liferay applications, including fragments, web content, and search.
Liferay’s external video shortcuts support YouTube, Vimeo, Facebook, and Twitch by default. While you can create custom shortcut providers, it requires specialized technical knowledge. See Creating Video Shortcut Providers for more information.