TVDigital - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of TVDigital.php

  1. <?php
  2. <iDOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <title>tvdigital</title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8.   <!--
  9.  
  10.   Uses the latest versions of video.js and videojs-contrib-hls.
  11.  
  12.   To use specific versions, please change the URLs to the form:
  13.  
  14.   <link href="https://vjs.zencdn2.net/5.16.0/video-js.css" rel="stylesheet">
  15.   <script src="https://vjs.zencdn2.net/5.16.0/video.js"></script>
  16.   <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  17.  
  18.   -->
  19.  
  20.   <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet"></link>
  21.   <script src="https://unpkg.com/video.js/dist/video.js"></script>
  22.   <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  23.   
  24.   
  25.  
  26. <li>
  27. <ul>
  28. <div class="sidebar">
  29. <nav class="mt-2">
  30. <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">    
  31.                 </ul></li>             
  32. </div>
  33. <li class="nav-item">
  34.         <a href="https://3qcd7ej6de9wocko586k4g-on.drv.tw/PL-PLAY/digitaltv.html" class="nav-item">
  35.                 </div>
  36. <p>หน้าแรก</p>
  37. </a>
  38. </li>
  39. <li class="nav-item">
  40. <a href="yrl" class="nav-link ">
  41.                         </div>
  42.                         <div>
  43. <p>หนัง</p>
  44. </a>
  45. </li>
  46. <li class="nav-item">
  47. <a href="url" class="nav-link active">
  48.                         </div>
  49.                         <div>
  50. <p>TV Live</p>
  51. </a>
  52. </li>
  53. <li class="nav-item">
  54. <a href="index.php?a=xxx" class="nav-link ">
  55.                         </div>
  56.                         <div>
  57. <p>AV-18+</p>
  58. </a>
  59. </li>
  60. </ul><div style="; :0px; width:100%"><center>
  61. <video id="my-video" class="video-js vjs-default-skin vjs-fluid" controls preload="none"
  62.   width="640" height="364" poster="https://images.droidsans.com/wp-content/uploads/2014/04/doodee-sticker.png" data-setup="{}">
  63.     <source src="https://jk3lz82elw79-hls-live.5centscdn.com/Geo/eae835e83c0494a376229f254f7d3392.sdp/Geo/eae835e83c0494a376229f254f7d3392.sdp2/chunks_dvr.m3u8" type='application/x-mpegURL'>
  64.     <source src="https://jk3lz82elw79-hls-live.5centscdn.com/Geo/eae835e83c0494a376229f254f7d3392.sdp/Geo/eae835e83c0494a376229f254f7d3392.sdp2/chunks_dvr.m3u8" type='application/x-mpegURL'>
  65.     <class="vjs-no-js">
  66.       To view this video please enable JavaScript, and consider upgrading to a web browser that
  67.       <li  data-url=="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
  68.     </p>
  69.   </video>
  70.  </div>
  71. </body>
  72. </html>
  73.     <ul id="playlist">
  74.  
  75.   <script>
  76.   $(function(){
  77. $("#playlist li").on("click", function() {
  78. var player = videojs('my-video');
  79. player.pause();
  80. var new_url = $(this).attr("data-url");
  81. player.src(new_url);
  82. // set src track corresponding to new movie //
  83. player.load();
  84. player.play();
  85. });
  86. });</script>
  87.        
  88.        
  89.  
  90.     </head>
  91.    
  92. <ul>
  93.                                   <div>                                              
  94. <button>
  95.   <li><a href="https://3qcd7ej6de9wocko586k4g-on.drv.tw/PL-PLAY/digitaltv.html">ฟรีทีวี</a></li></button>
  96.  <button><li><a href="go:sports">ช่องกีฬา</a></li></button>
  97.   <button><li><a href="https://3qcd7ej6de9wocko586k4g-on.drv.tw/PL-PLAY/movietv.html">ช่องภาพยนตร์</a></li></button>
  98.     <button><li><a href="go:documentary">สระคดี</a></li></button>
  99.  
  100. </ul>
  101.                 <body>
  102.  <ul id="playlist">
  103. <div style="align=center; padding-top: 1%;">
  104. <h4 style="text-align: center;">ทีวีดิจิตอล</h4>
  105. <ul style="list-style-type:none">
  106. <style>ul{padding-left:0px; text-align:center;}
  107. li{ display:inline-block;padding:0px;}
  108. </style>
  109. <section> 
  110. <li data-url="https://wopep.com/02_3HD_720p/chunklist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-ch3.jpg"  border="3px"></li>
  111. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/5hd/playlist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-ch5.png"  border="3px"></li>
  112. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/7hd/playlist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-ch7.png"  border="3px"></li>
  113. <li data-url="https://wopep.com/02_8HD_720p/chunklist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-ch8.png"  border="3px"></li>
  114. <li data-url="https://smart-tv.livedoomovie.com:4431/02_MCOTHD_720p/chunklist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-mcot.jpg"  border="3px"></li>
  115. <li data-url="https://thaipbs-live.cdn.byteark.com/live/playlist_1080p/index.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-tpbs.jpg"  border="3px"></li>
  116. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/thairahttvhd/chunks.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-thairath.png"  border="3px"></li>
  117. <li data-url="https://wopep.com/02_TRUE4U_480p/chunklist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/sd-24u.png"  border="3px"></li>
  118. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/pptvhd/playlist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-pptv.png"  border="3px"></li>
  119. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/gmmchannel/playlist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/sd-gmmchannel.jpg"  border="3px"></li>
  120. <li data-url="https://wopep.com/02_AMARINHD_720p/chunklist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-amarin.png"  border="3px"></li>
  121. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/onehd/playlist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-gmmone.jpg"  border="3px"></li>
  122. <li data-url="https://edge2-bkk.3bb.co.th:9443/MONO29_HLS_1080P/mono29hls_1080TH.stream/chunklist_w1021782105.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-mono.png"  border="3px"></li>
  123. <li data-url="https://wopep.com/02_WORKPOINT_720p/chunklist.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/hd-workpoint.png"  border="3px"></li>
  124. <li data-url="https://freelive.inwstream.com:1936/freelive-edge/nbt/chunks.m3u8"><img src="https://www.i-moviehd.com/wp-content/uploads/2021/06/sd-nbt.png"  border="3px"></li>
  125.  
  126.  
  127.  </section>                          
  128.                                                          </div>
  129.                                                         <br> <hr size="0.0" color="#444">
  130.                                                       <h5   <p style="text-align: center;">แอดมินเลงไปๆ</span></span></p>
  131.         </div>
  132. <style>
  133. img{border-radius:20px ; border-color: black; padding: 1px; margin:2px; height:100px; width: 100px;}
  134.                 body{background-color: #1a1a1a;}
  135.                         </style>
  136.                         <style>
  137.                           body {
  138.                             margin-left:0px;
  139.                               margin-right:0px;
  140.                                   margin-top: 0px;
  141.                                       background: #00000;
  142.                                           text-align: center; 
  143.                                               color: #aaa;
  144.                                                  
  145.