This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link href="https://vjs.zencdn.net/7.8.4/video-js.css" rel="stylesheet" /> | |
| </head> | |
| <body> | |
| <video | |
| id="my-video" | |
| class="video-js" | |
| controls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes auto; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /run/nginx.pid; | |
| load_module modules/ngx_rtmp_module.so; | |
| events { | |
| worker_connections 1024; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Download Sintel trailer: https://download.blender.org/durian/trailer/ | |
| Run the following command: | |
| $ ffmpeg -y -i sintel_trailer-1080p.mp4 -c:v libx264 -b:v 1100k -g 48 -keyint_min 48 \ | |
| -c:a copy -f hls -hls_time 6 -hls_playlist_type vod prog_index.m3u8 | |
| $ python3 -m htttp.server | |
| Open 'http://localhost:8000/' in a browser. |