-
Notifications
You must be signed in to change notification settings - Fork 3
/
Test.html
120 lines (100 loc) · 4.87 KB
/
Test.html
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html><head>
<title></title>
<script src="https://s0.2mdn.net/instream/video/client.js" async="" type="text/javascript"></script><script async="" src="//www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://certify-js.alexametrics.com/atrk.js"></script><script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous">
</script>
<!-- Include Radiant Media Player JavaScript file in your <body> or <head> -->
<script src="https://cdn.radiantmediatechs.com/rmp/5.12.6/js/rmp.min.js"></script>
<!-- Player container element -->
<div id="rmpPlayer"></div>
<!-- Set up player configuration options -->
<link id="rmp-dress-code" type="text/css" rel="stylesheet" href="https://cdn.radiantmediatechs.com/rmp/5.12.6/css/rmp-s3.min.css"><script async="" src="http://tv.jazz.com.pk/landing/js/rmp.min.js"></script></head>
<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PBV9GD7"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script type="text/javascript">
function callapi(slug){
$.ajax({
url: 'https://cdn2.mjunoon.tv:9191/v2/embed-player-url',
type: 'post',
data: {
slug:slug
},
success: function(result) {
console.log(result.data.live_stream_url)
console.log(result.data.live_stream_url);
var src = {
hls: result.data.live_stream_url
};
var backupSrc = {
hls: result.data.live_stream_url
};
// Then we set our player settings
var settings = {
licenseKey: 'Kl8laXE4a2VlazI3OT9yb201ZGFzaXMzMGRiMEElXyo=',
src: src,
backupSrc: backupSrc,
autoHeightMode: true,
pip: true,
delayToFade: 3000,
gaLabel: 'Live TV',
// logo: 'https://www.mjunoon.tv/assets/images/logo_grayscale.png?a=4',
// logoWatermark: true,
// logoPosition: 'topleft',
sharing: false,
speed: 'Speed',
isLive: true,
googleCast: true,
airplay: true,
// isLiveDvr: (liveNode =='yes') ? true : false,
hlsJSMaxBufferLength: 80,
// debugLevel: 2,
hlsJSLiveSyncDuration: 12,
// contentDescription: ticker,
// contentID: ticker_status,
detectAutoplayCapabilities: true,
autoplay: true,
// mutedAutoplayOnMobile: false,
// mutedAutoplayOnMacosSafari11Plus: false,
srcChangeAutoplay: true,
playsInline: true,
skin: 's1',
skinBackgroundColor: 'rgba(0, 0, 0, 0.7)',
skinButtonColor: 'FFFFFF',
skinAccentColor: 'D9D9D9',
ads: true,
nav: true,
adBlockerDetection: true,
adEnablePreloading: true,
//adBlockerDetectedPreventPlayback: true,
adBlockerDetectedMessage: 'Ad-blocker software detected. Please disable Ad-blocker to watch stream.',
//quickRewind: 10,
adTagUrl: result.data.addTagUrl,
// adTagWaterfall: [backup_add_tag_url],
adAutoAlign: false
};
var elementID = 'rmpPlayer';
// Create an object based on RadiantMP constructor
var rmp = new RadiantMP(elementID);
// Initialization ... test your page and done!
rmp.init(settings);
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-93668328-7', 'auto');
ga('create', result.data.client_analytics_property_id, 'auto', 'site');
ga('create', result.data.analytics_property_id, 'auto', 'channel');
ga('send', 'pageview');
ga('site.send', 'pageview');
ga('channel.send', 'pageview');
}
});
}
$(document).ready(function(){
var urlParams = new URLSearchParams(location.search);
var slug = urlParams.get('slug');
callapi('afghan-tv-live');
});
</script>
<script type="text/javascript" id="">!function(b,e,f,g,a,c,d){b.fbq||(a=b.fbq=function(){a.callMethod?a.callMethod.apply(a,arguments):a.queue.push(arguments)},b._fbq||(b._fbq=a),a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],c=e.createElement(f),c.async=!0,c.src=g,d=e.getElementsByTagName(f)[0],d.parentNode.insertBefore(c,d))}(window,document,"script","https://connect.facebook.net/en_US/fbevents.js");fbq("init","2474696809324341");fbq("set","agent","tmgoogletagmanager","2474696809324341");fbq("track","PageView");</script>
</body></html>