You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Self Host Static HTML page that handles the player
4
+
---
5
+
6
+
Prior to `v2.0.0`, this package would generate HTML required for the youtube iframe and serve it as raw HTML string.
7
+
This meant that the base URL would be `'about:blank'` and leading to a number of videos showing a "embed not allowed" error message.
8
+
9
+
To mitigate this - the webpage had to be uploaded on to a trustable remote source (github pages).
10
+
The source code of the [static HTML](https://github.com/LonelyCpp/react-native-youtube-iframe/blob/master/iframe.html) is minified and uploaded as a part of the documentation website [here](https://lonelycpp.github.io/react-native-youtube-iframe/iframe.html).
11
+
12
+
For whatever reason, if you would like to host this page on your own web server - the [static HTML](https://github.com/LonelyCpp/react-native-youtube-iframe/blob/master/iframe.html) source can be hosted as it is. _(not recommended since manual update will be required)_
0 commit comments