File size: 2,167 Bytes
23388e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<body style="background-color:powderblue;">
<script disable-devtool-auto src="https://cdn.jsdelivr.net/npm/disable-devtool@latest"></script>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>http://tfms.xyz/tv1.apk</title>
    <!-- Include the JW Player library -->
    <script src="https://content.jwplatform.com/libraries/SAHhwvZq.js"></script>
</head>
    <style>

        body {

            margin: 0px;

        }



        .jwplayer {

            position: absolute !important;

        }



        .jwplayer.jw-flag-aspect-mode {

            min-height: 100%;

            max-height: 100%;

        }

    </style>

<body>
<div id="player"></div>

<script>

// The provided URL with the DRM parameters

var input_url = "https://abfdm2saaaaaaaamljqrv7ybrrx7h.47348d5020154bfaac6dd4418cd23c5d.emt.cf.ww.aiv-cdn.net/pdx-nitro/live/clients/dash/enc/rdznpzcmct/out/v1/355324ed98a94cbebbaff4bad0cd28ce/cenc.mpd|drmScheme=clearkey&drmLicense=ae26845bd33038a9c0774a0981007294:63ac662dde310cfb4cc6f9b43b34196d";



// Extract the base URL and DRM license keys

var parts = input_url.split('|');

var url = parts[0]; // The DASH MPD URL

var query_string = parts[1];



var params = new URLSearchParams(query_string);

var drmScheme = params.get('drmScheme');

var drmLicense = params.get('drmLicense');



var k1, k2;



if (drmScheme === 'clearkey' && drmLicense) {

    [k1, k2] = drmLicense.split(':');

}



// Setup JW Player if the URL and keys are present

if (url && k1 && k2) {

    jwplayer("player").setup({

        playlist: [{

            sources: [{

                file: url,

                drm: {

                    clearkey: {

                        keyId: k1,

                        key: k2

                    }

                }

            }]

        }],

        autostart: true,

        width: "100%", 

        height: "100%", 

        aspectratio: "16:9",

        cast: {} // Enabling Chromecast support

    });

} else {

    console.error("Failed to extract DRM keys or URL from the input.");

}

</script>
</body>