Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Youtube Iframe not work on Android

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Youtube Iframe not work on Android

Hi Neil,

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Youtube Iframe not work on Android

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... ?

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Youtube Iframe not work on Android

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Youtube Iframe not work on Android

Heil,

Thank you for your update.

Return to “Issues”