Page 2 of 4

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Sat Mar 29, 2014 6:54 pm
by Alena Prykhodko

Hi Anton, we've reported a bug, it is already fixed on our Test environment, should be pushed on Production with next release on mid-April.


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Mon Apr 14, 2014 5:42 pm
by Anton6737105

Have you fixed it indeed? I've just tried to add aYoutube component with a fixed VideoID to my working mobilegrid and this grid stops working again :-(


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Mon Apr 14, 2014 6:12 pm
by Maryna Brodina

Hello!
We will check with developers team.


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Wed Apr 16, 2014 6:38 pm
by Maryna Brodina

Hello!

Unfortunately this bug still hasn't been fixed...


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Wed Apr 16, 2014 6:42 pm
by Anton6737105

Ooops... So I'd wait for a few months until new version? I'm new here and do not have any experience with such workflow here.


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Wed Apr 16, 2014 6:43 pm
by Maryna Brodina

We will try to find a workaround.


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Thu Apr 17, 2014 12:23 pm
by Kateryna Grynko

Hi Anton,

Remove YouTube component from Grid, instead add it in mapping using JavaScript. For example, run this code in mapping from item to grid:precodefunction parseUrlVars(url) {
var vars = [];
var params = url.slice(url.indexOf('?'));
if(params.indexOf('#')>=0) {
/Remove all symbols after '#'/
params = params.slice(0, params.indexOf('#'));
}

Code: Select all

 params = params.slice(1).split('&'); 
 for (var i in params) { 
    var item = params[i].split('='); 
    vars.push(item[0]); 
    vars[item[0]] = item[1]; 
 } 

 return vars; 

}
var urlVars = parseUrlVars(value['link']), videoId = urlVars['v'];
var youtube = $('<iframe dsid="youtube" name="youtube" videoid="'+videoId+'" frameborder="0" allowfullscreen="1" title="YouTube video player" width="320" height="200" src="https:&#47;&#47;www&#46;youtube&#46;com/embed/'+videoId+'?enablejsapi=1"></iframe>');
$(element)&#46;find('[name="mobilegridcell_4"]')&#46;append(youtube);/code/prewhere 'mobilegridcell_4' is a grid item name where you add YouTube video.


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Thu Apr 17, 2014 4:46 pm
by Anton6737105

YES! It works! Thank you so much!
Well, I'l try make it autoscale to fit the grid cell width but now it's much easier for me.

You're the most responsive team I ever saw!


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Sat Apr 19, 2014 6:15 pm
by RobertJay

If I simply add the control and set the video ID property, I get a Youtube error message. Does this mean that the control is still under repair? Thanks.


Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object.

Posted: Sat Apr 19, 2014 6:45 pm
by Alena Prykhodko

Hello!

Unfortunately this bug hasn't been fixed yet.