Page 1 of 1

Youtube Iframe not work on Android

Posted: Wed Jul 30, 2014 9:39 pm
by Emmz

Testing simple youtube app.
Placed player on page. with Video ID assigned.

Works perfectly in Browsers via testing mobile.

test on Android Phones ver 2.3.5 and up. I get this error ...

codeUnable to post message to https://www.youtube.com. Recipient has origin file://."/code

There are no other errors showing in eclipse.
Interestingly, the header back button and other buttons in the app do nothing as well.
If you tap the button b4 the youtube vid is initalized. The button responds. Tap it again and nothing.

tried on libraries v1.2 and 2.0

Ideas?


Youtube Iframe not work on Android

Posted: Thu Jul 31, 2014 4:27 am
by Illya Stepanov

Hi Neil,

We will check it and we will post an update here.


Youtube Iframe not work on Android

Posted: Thu Jul 31, 2014 5:57 am
by Evgene Karachevtsev

Hello Niel,

I've just tested, YouTube component works correctly for me. Could you please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us its name http://docs.appery.io/documentation/s... ?


Youtube Iframe not work on Android

Posted: Thu Jul 31, 2014 8:36 am
by Emmz

Thanks. Sorry for this.
I found the problem by editing the page.js while testing in eclipse.
In Appery On the screen tap event I added.
code
setTimeout(function() {
Appery('label_b').fadeOut(3000);
Appery('label_a').fadeOut(3000);
}, 2000); // Hide Instructions;
/code
The resulting compiled page.js in eclipse was.
code
$('#Help').bind({
tap: function() {
setTimeout(function() {
Appery('label_b').fadeOut(3000);
Appery('label_a').fadeOut(3000);
}, 2000); // Hide Instructions;
event.stopPropagation();
return false;
},
});
/code

So the event.stopPropagation(); that appery generated caused all the screen buttons not to function at all.
I mistakenly blamed Appery's youtube plugin. for the apparent issue.
Consider this matter closed. And I will not use the tap event on the screen again as it causes problems.


Youtube Iframe not work on Android

Posted: Thu Jul 31, 2014 8:38 am
by Evgene Karachevtsev

Heil,

Thank you for your update.