Skip to content

Instantly share code, notes, and snippets.

@tabital0
tabital0 / index.html
Created August 10, 2023 06:06
ts video player
<div class="flowplayer fixed-controls no-toggle no-time play-button obj" data-key="$812975748999788" data-live="true" data-share="false" data-ratio="0.5625" data-logo="">
<video autoplay="true">
<source type="application/x-mpegurl" src="http://linux-app.tv:8080/live/sham1/sham1/9055.ts">
</video>
</div>
@tabital0
tabital0 / index.html
Last active July 2, 2023 11:40
Basic Shaka-Player
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/shaka-player/2.5.12/controls.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/shaka-player/2.5.12/shaka-player.ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/shaka-player/3.0.0/shaka-player.compiled.js"></script>
<script defer src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<meta charset="UTF-8">
@tabital0
tabital0 / docker-automatic-media-server.md
Created April 3, 2023 16:36 — forked from matthewdowns/docker-automatic-media-server.md
Docker Automatic Media Server - Setup Guide

Introduction

This guide is focused on building a completely autonomous request-based media server using individual docker containers.

Most of the images we will be using are maintiained by linuxserver.io. They maintain many up-to-date versions of the most popular tools used for media servers.

Our full stack includes:

  • Plex Media Server - Plex Media Server is the back-end component to Plex, a self-hosted media platform.
  • Transmission - A lightweight torrent downloading client.
@tabital0
tabital0 / _0__ssl_certbot_letsencrypt.md
Created February 18, 2022 22:31 — forked from maxivak/_0__ssl_certbot_letsencrypt.md
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
@tabital0
tabital0 / gen.php
Created January 14, 2022 18:24 — forked from nemoTyrant/gen.php
nginx secure link
<?php
$ts = '1463646983';
$hash = str_replace('=', '',strtr(base64_encode(md5('1463646983 secret', TRUE)), '+/', '-_')); // base64url
echo $hash;
?>
#user nobody;
worker_processes auto;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/mvideo2.pid;
events {
@tabital0
tabital0 / secure_link.php
Created January 12, 2022 05:55 — forked from darkworks/secure_link.php
generate URL for nginx secure_link #nginx #linux
@tabital0
tabital0 / secure_link.php
Created December 23, 2021 00:32 — forked from bftanase/secure_link.php
generate URL for nginx secure_link
@tabital0
tabital0 / HTML5VIDEOBROADCASTING
Created December 20, 2021 00:35 — forked from Manishfoodtechs/HTML5VIDEOBROADCASTING
live-broadcast-on-html-page-with-html5-video-injust-30-minutes
https://dev.to/manishfoodtechs/live-broadcast-on-html-page-with-html5-video-injust-30-minutes-3pp6
===========================================================================================
# 1: Install Nginx + RTMP module.
sudo apt install -y nginx
sudo apt install -y libnginx-mod-rtmp
# 2: Installing required & additional software.
@tabital0
tabital0 / README.md
Created December 15, 2021 23:42 — forked from mrbar42/README.md
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster