Herco van Brug
Posts: 0
Joined: Tue Jan 28, 2014 12:11 pm

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

Setting property 'Video ID' on event 'Page Load' doesn't work on youtube object. setting it on a label or text area works correctly so the ID is passed over but the youtube object doesn't pick it up. pressing they 'youtube' icon opens youtube without video ID.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello! Sorry, it's a known bug. We have already reported this issue. Working on fix.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

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

Hi,

This bug is not fixed yet. This is a workaround:

Appery(name).attr("src", "https://www.youtube.com/embed/" + id + "?wmode=transparent");

where a variable name -- YouTube component's name,
Id -- video's id from YouTube

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

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

Thank you Nikita,I will try your method.

Anton6737105
Posts: 0
Joined: Sat Mar 15, 2014 7:22 pm

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

And BTW it looks that if I use youtube object in the mobilegrid (to make a feed from youtube) the app hangs (even if I configure static VideoID rather that calculate this).
I mean I supposed to see 3 different titles with the same video for each item (s VideoID is hardcoded) but actually even titles can't be displayed properly.
As soon as I remove the youtube object from the page titles, pubdates start being displayed properly.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

Hello!
Could you give us exact steps to reproduce?

Anton6737105
Posts: 0
Joined: Sat Mar 15, 2014 7:22 pm

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

Sure.

  1. Create a datasource for Youtube xml feed
    https://gdata.youtube.com/demo/index....
    or exactly my one: http://gdata.youtube.com/feeds/base/v...

  2. Create a mobilegrid (as usually)

  3. label_date map with the pub date, label_ID with a link and a JS code "return value.slice(31,42);"
    (actually it is not necessary, removing JS changes nothing)

    At this step everything works, I can see 3 items with dates, exctracted video id's (as max-result=3)

  4. Add youtube element to the form (insert into the mobile grid)
    Even if you explicitly set its video_id you will see only one item with the video according to configured video_id.
    labels will not be calculated (instead of the date of publication it will display "label_date" as it was configured on the design stage), new items will not appear .
    So it looks like youtube element prevents from going over the feed to subsequent elements...

    Current workaround is avoid using youtube element (just to map "description" to the label). In such a case everything works fine (but video size is too big for small screens) so I hope I'll be able to map id extracted from the link to video_id of the youtube element soon (in April update?)

Anton6737105
Posts: 0
Joined: Sat Mar 15, 2014 7:22 pm

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

And how is it going on? Have you replicated the issue?

Return to “Issues”