# streamcast/trunk/iframe.html

StreamCast – bring live radio to your site with a sleek player, version trunk. 40 lines.

- Page: https://pluginprobe.com/plugins/streamcast/trunk/code/iframe.html
- Raw: https://pluginprobe.com/plugins/streamcast/trunk/raw/iframe.html
- Modified: 2026-08-25T12:06:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/streamcast/trunk/code/iframe.html#L10-L20`.

```html
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <script src="./assets/vendor/muses-player/mrp.js"></script>
        <script>
            function getQueryParam(param) {
                const urlParams = new URLSearchParams(window.location.search);
                return urlParams.get(param);
            }
            let playerData = null;
            if (window.top && window.top.location.origin === window.location.origin) {
                playerData = window.top[getQueryParam("id")];
            }
        </script>
        <style>
            body {
                margin: 0;
                width: inherit;
                overflow: hidden;
            }
        </style>
    </head>

    <body>
        <script type="text/javascript">
            if (playerData) {
                window.MRP?.insert(playerData)
                window.MRP?.setTitle(playerData.title);
                if (window.top && window.top.location.origin === window.location.origin) {
                    window.top[getQueryParam("id")] = null;
                }
            }
        </script>
    </body>

</html>
```
