Warning [2] Use of undefined constant uid - assumed 'uid' (this will throw an Error in a future version of PHP) - Line: 34 - File: inc/plugins/gizli_icerik.php PHP 7.4.3-4ubuntu2.20 (Linux)
(showthread.php:31:require_once)->(global.php:122:run_hooks)->(class_plugins.php:142:bam_announcements)->(bam.php:329:parse_message)->(class_parser.php:244:run_hooks)->(class_plugins.php:142:gizli_icerik_run)->(gizli_icerik.php:34:error_callback)->(class_error.php:153:error)->Warning [2] Use of undefined constant cancp - assumed 'cancp' (this will throw an Error in a future version of PHP) - Line: 34 - File: inc/plugins/gizli_icerik.php PHP 7.4.3-4ubuntu2.20 (Linux)
(showthread.php:31:require_once)->(global.php:122:run_hooks)->(class_plugins.php:142:bam_announcements)->(bam.php:329:parse_message)->(class_parser.php:244:run_hooks)->(class_plugins.php:142:gizli_icerik_run)->(gizli_icerik.php:34:error_callback)->(class_error.php:153:error)->Warning [2] Use of undefined constant uid - assumed 'uid' (this will throw an Error in a future version of PHP) - Line: 34 - File: inc/plugins/gizli_icerik.php PHP 7.4.3-4ubuntu2.20 (Linux)
(showthread.php:31:require_once)->(global.php:122:run_hooks)->(class_plugins.php:142:bam_announcements)->(bam.php:329:parse_message)->(class_parser.php:244:run_hooks)->(class_plugins.php:142:gizli_icerik_run)->(gizli_icerik.php:34:error_callback)->(class_error.php:153:error)->Warning [2] Use of undefined constant cancp - assumed 'cancp' (this will throw an Error in a future version of PHP) - Line: 34 - File: inc/plugins/gizli_icerik.php PHP 7.4.3-4ubuntu2.20 (Linux)
(showthread.php:31:require_once)->(global.php:122:run_hooks)->(class_plugins.php:142:bam_announcements)->(bam.php:329:parse_message)->(class_parser.php:244:run_hooks)->(class_plugins.php:142:gizli_icerik_run)->(gizli_icerik.php:34:error_callback)->(class_error.php:153:error)->Warning [2] Use of undefined constant uid - assumed 'uid' (this will throw an Error in a future version of PHP) - Line: 34 - File: inc/plugins/gizli_icerik.php PHP 7.4.3-4ubuntu2.20 (Linux)
(showthread.php:1133:build_postbit)->(functions_post.php:843:parse_message)->(class_parser.php:244:run_hooks)->(class_plugins.php:142:gizli_icerik_run)->(gizli_icerik.php:34:error_callback)->(class_error.php:153:error)->Warning [2] Use of undefined constant cancp - assumed 'cancp' (this will throw an Error in a future version of PHP) - Line: 34 - File: inc/plugins/gizli_icerik.php PHP 7.4.3-4ubuntu2.20 (Linux)
(showthread.php:1133:build_postbit)->(functions_post.php:843:parse_message)->(class_parser.php:244:run_hooks)->(class_plugins.php:142:gizli_icerik_run)->(gizli_icerik.php:34:error_callback)->(class_error.php:153:error)->

  • Welcome to the English.10tl.net
  • The first english 10tl.net forum.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title: HLS Stream Embed
#1
The following will allow your users to embed HLS stream videos in their posts.

Regular Expression (Linkleri görebilmek için Üye Olun veya Giriş Yapın.):
Code:
\[m3u8\](?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))\[/m3u8\]


Replacement:
Code:
<video id="video" width="800" height="600" controls autoplay
class="videoCentered"></video>
<script src="https://cdn.jsdelivr.net/hls.js/latest/hls.js"></script>
<script>
  if(Hls.isSupported()) {
    var video = document.getElementById('video');
    var  hls = new Hls({ autoStartLoad:false });
    hls.loadSource('$1');
    hls.attachMedia(video);
hls.startLoad(1);
    hls.on(Hls.Events.MANIFEST_PARSED,function() {
  hls.startLoad(20);
      video.play();
  });
}
</script>
Test Value:
Code:
[m3u8]https://nn.geo.joj.sk/live/hls/jojplus-360.m3u8[/m3u8]

To allow users to set auto play and mute options you will need to adapt the code.
 
Reply
Thanks given by:
  


Forum Jump:


Browsing: 1 Guest(s)