Message Boards

Liferay video control only youtube video url works

Md Rashedul Hasan Khan, modified 3 Years ago.

Liferay video control only youtube video url works

New Member Posts: 18 Join Date: 5/15/17 Recent Posts

Hi All

I'm trying to stream video using Liferay Video control :

 

The video works fine including Loop, Autoplay, Hide Controls, Mute etc. but it accepts only youtube video URL:

I tried with other URLs such as Dailymotion, Liferay Documents and Media video URL but it doesn't work. Following video URLs of a video I uploaded to Documents and Media don't work:

I prefer running with Documents and Media URL so that it doesn't show any info. On youtube video there's Youtube branding and also video title, Watch later etc. So it's better for me streaming from other sources where it wouldn't show any info.

Could anyone help me figure this out? I'm using Liferay 7.3.5 GA6. Appreceiate if ayone could guide me on this. Thanks

 

--Rashed

 

 

 

thumbnail
Christoph Rabel, modified 3 Years ago.

RE: Liferay video control only youtube video url works (Answer)

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts

I guess, you are using a video in a format that isn't supported by your browser. I just tested it and it works fine with a testvideo. Since I am on Firefox, I downloaded this sample video and uploaded it to the document library: (or you can use the url directly, should work too)

http://techslides.com/demos/sample-videos/small.ogv

The tricky thing here is that companies like youtube check which browser and OS you use and provide the video in the right format. Liferay can do that too, you need to install xuggler. When xuggler is installed, it will create "copies" of the video in various formats to support the various possible clients out there.

But I am not sure, if the video widget handles that correctly. Could be, but maybe not. If not, you would need to clone the video wiget and add support for multiple formats yourself.

But just try it first. Maybe you don't need all that and e.g. just need to support Chrome. Then it might be sufficient to tell your editors, that they have to upload the video in webm format.

 

Md Rashedul Hasan Khan, modified 3 Years ago.

RE: RE: Liferay video control only youtube video url works

New Member Posts: 18 Join Date: 5/15/17 Recent Posts

Great tip, installing xuggler it works fine. Thank you so much.

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Liferay video control only youtube video url works

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

Notice that serving larger videos from DL risks that you always download the full video, in the resolution that your author chose. Streaming providers like youtube deliver small chunks, adapt to available bandwidth and screen size, and only download those chunks incrementally - if you only watch 5% of the video, there's no need to download the full video. And for large videos that might occupy a connection for a longer time - especially when a client is bandwidth constrained.

thumbnail
Juan Gonzalez, modified 3 Years ago.

RE: Liferay video control only youtube video url works

Liferay Legend Posts: 3089 Join Date: 10/28/08 Recent Posts

Olaf answer about sending whole video when using Xuggler is wrong.It just sends the video portion browser asks using http partial responses so it should work perfectly fine and scalable.

And what Christian said about Xuggler is mainly right and wanted to clarify video client when using Xuggler should work fine for all browsers and devices as it uses native HTML 5 video player