Advertisement
<div id="player-container">
<p>Loading streams...</p>
</div>
<script src="https://cdn.jwplayer.com/libraries/IDzF9Zmk.js"></script>
<script>
document.addEventListener("DOMContentLoaded", async function () {
const container = document.getElementById("player-container");
container.innerHTML = "";
// --- Fallback iframe for offline streams ---
const FALLBACK_IFRAME = "https://www.canva.com/design/DAG2Inb92HQ/XKXfAQsMYKoC8KZSF1y6yg/watch?embed";
// --- Get multiple parameters ---
function getAllParams(name) {
return new URLSearchParams(window.location.search).getAll(name);
}
const moraStreams = getAllParams("mora");
const embeds = getAllParams("embed");
// (Your entire script continues here — include the full version you shared)
});
</script>
New feature added
: parseMpdWithKeys() function
This new function specifically handles URLs like:
```
https://a204aivottepl-a.akamaihd.net/sin-nitro/live/clients/dash/enc/fdb3pubmek/out/v1/aefca6420f944a9482e117f315de535f/cenc.mpd!!7e9239c1982d984a002df3ed049d0756:1b8a17598129a3618535c8fb05f103fe
```
How it works:
1. Detects the !! separator that indicates embedded DRM keys
2. Splits the URL:
· Part before !! = MPD URL
· Part after !! = Key information
3. Parses keys: Splits by : to get keyId and key
4. Returns structured data with the MPD URL and DRM keys
Now supports all these formats:
· ✅ Regular M3U8 URLs
· ✅ Regular MPD URLs
· ✅ MPD URLs with embedded keys (mpd!!keyId:key)
· ✅ Website URLs that contain hidden M3U8/MPD links
· ✅ Multiple mora and embed parameters
The code will automatically detect and properly handle your special MPD URLs with embedded DRM keys!
Here are URL examples with explanations using your demo URL as the base:
Basic Single Stream Examples
1. Single M3U8 Stream
```
https://www.rapidwaralert.online/p/player.html?mora=https://example.com/stream.m3u8
```
· What it does: Plays one direct M3U8 stream
· Use case: Simple direct stream links
2. Single Website with Hidden Stream
```
https://www.rapidwaralert.online/p/player.html?mora=https://ddkanqu.com/zhibo/25514.html
```
· What it does: Extracts M3U8 from the website's hidden span elements
· Use case: Sites that hide streams in their HTML
3. Single MPD Stream
```
https://www.rapidwaralert.online/p/player.html?mora=https://example.com/stream.mpd
```
· What it does: Plays one direct MPD (DASH) stream
· Use case: DASH format streams
Advanced Multi-Stream Examples
4. Multiple Stream Types
```
https://www.rapidwaralert.online/p/player.html?mora=https://ddkanqu.com/zhibo/25514.html&mora=https://streaming.sportsnews.id/p/sport1es.html
```
· What it does:
· Stream 1: Extracts M3U8 from ddkanqu.com
· Stream 2: Extracts MPD from sportsnews.id
· Use case: Backup streams from different sources
5. MPD with Embedded DRM Keys
```
https://www.rapidwaralert.online/p/player.html?mora=https://a204aivottepl-a.akamaihd.net/sin-nitro/live/clients/dash/enc/fdb3pubmek/out/v1/aefca6420f944a9482e117f315de535f/cenc.mpd!!7e9239c1982d984a002df3ed049d0756:1b8a17598129a3618535c8fb05f103fe
```
· What it does:
· Extracts MPD URL before !!
· Uses keyId 7e9239c1982d984a002df3ed049d0756
· Uses key 1b8a17598129a3618535c8fb05f103fe
· Use case: Protected DASH streams with ClearKey DRM
Mixed Mora + Embed Examples
6. Mora Streams + Embed Iframes
```
https://www.rapidwaralert.online/p/player.html?mora=https://ddkanqu.com/zhibo/25514.html&mora=https://streaming.sportsnews.id/p/sport1es.html&embed=https://sportzonline.st/channels/hd/hd5.php&embed=https://sportzonline.st/channels/hd/hd11.php
```
· What it does:
· STREAM 1: M3U8 from ddkanqu.com
· IPHONE STREAM: MPD from sportsnews.id
· HD SERVER: Embed iframe from sportzonline
· ALT STREAM 2: Another embed iframe
· Use case: Multiple backup options with different technologies
7. All Stream Types Combined
```
https://www.rapidwaralert.online/p/player.html?mora=https://ddkanqu.com/zhibo/25514.html&mora=https://streaming.sportsnews.id/p/sport1es.html&mora=https://a204aivottepl-a.akamaihd.net/sin-nitro/live/clients/dash/enc/fdb3pubmek/out/v1/aefca6420f944a9482e117f315de535f/cenc.mpd!!7e9239c1982d984a002df3ed049d0756:1b8a17598129a3618535c8fb05f103fe&embed=https://sportzonline.st/channels/hd/hd5.php&embed=https://sportzonline.st/channels/hd/hd11.php
```
· What it does:
· STREAM 1: M3U8 from website
· IPHONE STREAM: MPD from website
· STREAM 3: Protected MPD with DRM keys
· HD SERVER: Embed iframe
· ALT STREAM 2: Another embed iframe
· Use case: Maximum redundancy with all supported formats
Special Use Cases
8. Direct Streams Only
```
https://www.rapidwaralert.online/p/player.html?mora=https://cdn.example.com/live/stream1.m3u8&mora=https://cdn.example.com/live/stream2.mpd
```
· What it does: Bypasses extraction, plays direct stream URLs
· Use case: When you already have direct stream links
9. Embeds Only (No Extraction)
```
https://www.rapidwaralert.online/p/player.html?embed=https://sportzonline.st/channels/hd/hd5.php&embed=https://sportzonline.st/channels/hd/hd11.php&embed=https://sportzonline.st/channels/hd/hd3.php
```
· What it does: Only shows embedded iframes in sandboxed environment
· Use case: When you want to use existing streaming site players safely
Parameter Structure Summary
```
https://www.rapidwaralert.online/p/player.html
?mora=URL1 # Extract/play first stream
&mora=URL2 # Extract/play second stream
&mora=URL3 # Extract/play third stream
&embed=URL4 # First embed iframe
&embed=URL5 # Second embed iframe
```
Automatic Title Assignment
· First mora: "STREAM 1"
· Second mora: "IPHONE STREAM"
· Third+ mora: "STREAM 3", "STREAM 4", etc.
· First embed: "HD SERVER"
· Second+ embed: "ALT STREAM 2", "ALT STREAM 3", etc.
This gives you incredible flexibility to mix and match different stream sources and technologies in a single player interface!