Change DNS server when embedding YouTube in iOS app swift UIWebView

Asked 2 years ago, Updated 2 years ago, 92 views

I am creating a YouTube playback app with Swift2.
I'm playing YouTube embedded in UIWebView, but depending on the video

Limited playback on certain sites
is displayed and cannot be played.

Therefore, if you change the DNS server when you play it, you will be able to play it.
If you google many things

youtube-ui.l.google.com It became a hit.
Is this the name of the DNS server?

I don't know enough about servers and I can't solve them.

In the UIWebView of swift,
https://www.youtube.com/embed/ Movie ID
How do I implement it to change my DNS server as if I were accessing it from YouTube?

Please let me know.

Currently
let youtubeURL="https://www.youtube.com/embed/ Movie ID "
let url = NSURL (string: youtubeURL)
let urlRequest=NSURLRequest (URL: url!)
self.PlayerWebView.loadRequest(urlRequest)
and implementation.

Additional note 2015.03.17
I tried to load HTML directly and it was resolved.

ios swift xcode dns youtube-player-api

2022-09-30 21:14

1 Answers

According to the information below, DNS settings do not seem to matter in the sense that the error is a monetized video, so please watch it on YouTube.

https://productforums.google.com/forum/#!topic/youtube-ja/9Qph7xdqs_c


2022-09-30 21:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.