From 6f697a638fb42689b4a86e8b91a19985e3338c77 Mon Sep 17 00:00:00 2001 From: Steve Seguin Date: Mon, 7 Dec 2020 08:18:42 -0500 Subject: [PATCH] Update IFRAME.md --- IFRAME.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IFRAME.md b/IFRAME.md index bc9bffb..0b93c64 100644 --- a/IFRAME.md +++ b/IFRAME.md @@ -20,6 +20,8 @@ Adding that iframe to the DOM will reveal a simple page accessing for a user to An example of how this API is used by OBS.Ninja is with its Internet Speedtest, which has two OBS.Ninja IFrames on a single page. One iframe feeds video to the other iframe, and the speed at which it does this is a measure of the system's performance. Detailed stats of the connection are made available to the parent window, which displays the results. https://obs.ninja/speedtest +More community-contributed IFRAME examples can be found here: https://github.com/steveseguin/obsninja/tree/master/examples + A sandbox of options is available at this page, too: https://obs.ninja/iframe You can enter an OBS.Ninja URL in the input box to start using it. For developers, viewing the source of that page will reveal examples of how all the available functions work, along with a way to test and play with each of them. You can also see here for the source-code on GitHub: https://github.com/steveseguin/obsninja/blob/master/iframe.html One thing to note about this iframe API is that it is a mix of URL parameters given to the iframe *src* URL, but also the postMessage and addEventListener methods of the browser. The later is used to dynamically control OBS.Ninja, while the former is used to initiate the instance to a desired state.