Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jonatan Oyola
Load YouTube videos using AUI
January 8, 2014 7:16 AM
Answer

Jonatan Oyola

Rank: Regular Member

Posts: 192

Join Date: June 6, 2007

Recent Posts

I am trying to load a video from youtube but it doesnt work
 1
 2AUI().use(
 3  'aui-video',
 4  function(Y) {
 5    var video = new Y.Video(
 6      {
 7        boundingBox: '#myVideo',
 8        height: 368,
 9        width: 640
10        swfUrl: 'http://videos.liferay.com/common/player.swf',
11        url: 'http://www.youtube.com/watch?v=Xy9ZNq5B9Ss'
12      }
13    ).render();
14  }
15);


Can anybody help me? thanks
James Falkner
RE: Load YouTube videos using AUI
January 8, 2014 7:39 AM
Answer

James Falkner

Community Moderator

Rank: Liferay Legend

Posts: 1406

Join Date: September 17, 2010

Recent Posts

Jonatan Oyola:
I am trying to load a video from youtube but it doesnt work
 1
 2AUI().use(
 3  'aui-video',
 4  function(Y) {
 5    var video = new Y.Video(
 6      {
 7        boundingBox: '#myVideo',
 8        height: 368,
 9        width: 640
10        swfUrl: 'http://videos.liferay.com/common/player.swf',
11        url: 'http://www.youtube.com/watch?v=Xy9ZNq5B9Ss'
12      }
13    ).render();
14  }
15);


Can anybody help me? thanks


The AUI Video component does not support Youtube playback - it only supports playback of actual videos like OGG, MP4, etc.

An alternative is to use the YouTube app from the Marketplace to display YouTube videos inline in a Liferay page.
Jonatan Oyola
RE: Load YouTube videos using AUI
January 13, 2014 10:54 AM
Answer

Jonatan Oyola

Rank: Regular Member

Posts: 192

Join Date: June 6, 2007

Recent Posts

Thanks for your response.