YouTube iframe gets error code 5

Using the YouTube iframe player in iOS UIWebView, I occasionally see the onError event with error code 5 ("The requested content could not be played in the HTML5 player or another error occurred related to the HTML5 player").

The error is not related to specific videos (i.e. the video throwing the error plays just fine at other times). It is curious that errors often happen in packages: several videos from different channels will cause the same error (each in the new UIWebView).

At some point, the error disappears, and the same video can be seen on the device that originally had the error. This has been going on for several months.

+4
source share

All Articles