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
| /// <summary> | |
| /// Get all Greek holidays for requested year | |
| /// </summary> | |
| /// <param name="year">Year of holidays</param> | |
| /// <returns>List of dates of all public holidays, except weekends</returns> | |
| public static List<DateTime> GreekHolidays(int year) | |
| { | |
| var easter = GetOrthodoxEaster(year); | |
| var holidays = new List<DateTime>(); | |
| package Hangman; | |
| import java.util.Scanner; | |
| import java.util.Random; | |
| public class Built { | |
| public static void main(String[] args){ | |
| Scanner scanner = new Scanner(System.in); | |
| Random random = new Random(); | |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python (Updated for Python 3.7) | |
| Usage: | |
| ./dummy-web-server.py -h | |
| ./dummy-web-server.py -l localhost -p 8000 | |
| Send a GET request: |
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:
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| #!/bin/bash | |
| echo "" | |
| # Root check | |
| if [[ "$UID" -ne 0 ]]; then | |
| echo "!! This script requires root privileges. sudo ./create_koken.sh" | |
| echo "" | |
| exit | |
| fi |