I am not able to preview Youtube channel in Webview

I Have just entered my you tube viewer URL e.g. https://www.youtube.com/c/RepublicWorld and its not working in preview,

what to do?

Yes. If you are coding on your laptop, then it will say “YouTube.com refused to connect” in the live test on your LAPTOP. If it isn’t working on your phone then check the code again. Then it should probably work. If it doesn’t then send me the link to your project.

1 Like

OK, But I tested on Phone also, and same result :frowning:

this is the link for project:
https://x.thunkable.com/projects/5f04bea1b08aff0ff153962c/project/properties/designer/

Have you downloaded the thunkable app on your phone? If yes, then check this out
https://x.thunkable.com/copy/b55055056e895be4f2ace6d0a819c3cd
If no, then download and check it out.

1 Like

Your app is working on my phone. Neuroscientist and something written in Hindi. It works. Check it out once more

1 Like

I Seems like I had downloaded some wrong version,

I also wanna know what can be done in order to have back functionality, here when I press back button app exists.
and is there any option to have screen rotation ?

If you want your YouTube video to play. It will automatically rotate the screen 90°. If it is for something else, then please be a little more specific :slight_smile:

1 Like

What about, app exit on back button

That should work @wankhede19889jwdv

1 Like

Hi rockade,
Good to see solve problems. I do have same problem of ‘refusing to connect’ though some other websites connect
The link
https://x.thunkable.com/projects/5f12a8162b27505b9059e1e8/67d62c17-4557-4083-947d-002399fd968f/designer
Thanks in advance

Rgds
NSS

first of all just check whether the link is correct like suppose it is www.youtube.com you don’t write something like www.youtubea.com and then check. If it’s still not working properly then what you can try to do is to view it on your phone if it’s not working on the phone then it might be a common glitch so yeah reply to this and I will get back to you @naturalsilksarees14

1 Like

Thanks a lot for the suggestion.

You cannot display a lot of websites inside an iFrame. Reason being that they send an “X-Frame-Options: SAMEORIGIN” response header. This option prevents the browser from displaying iFrames that are not hosted on the same domain as the parent page.

I faced the same error when embed YouTube links. For example: https://www.youtube.com/watch?v=8WkuChVeL0s

I replaced watch?v= with embed/ so the valid link will be: https://www.youtube.com/embed/8WkuChVeL0s

It works well.

Try to apply the same rule on your case.

SAMEORIGIN

The page can only be displayed in a frame on the same origin as the page itself. The spec leaves it up to browser vendors to decide whether this option applies to the top level, the parent, or the whole chain, although it is argued that the option is not very useful unless all ancestors are also in the same origin.

1 Like

You are answering a post one year old.