Adaptive Streaming has become the neccessity for streaming video and audio. Unfortantely, as of this post, there isn't a whole lot of tutorials that accumulate all of the steps to get this working. Hopefully this post achieves that. This post focuses on using Amazon Web Services (AWS) to transcode for HLS and DASH and be the Content Delivery Network (CDN) that delivers the stream to your web page. We'll be using Video.js for the HTML5 player as well as javascript support libaries to make Video.js work with HLS and DASH.
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
declare global { | |
interface Array<T> { | |
filter(predicate: typeof Boolean): Exclude<T, undefined | null | false | 0 | ''>[] | |
} | |
} | |
export default global |
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
export class FpsCounter { | |
constructor(private maxSamples: number = 100) {} | |
private samples: number[] = []; | |
sample() { | |
this.samples.push(Date.now()); | |
if (this.samples.length > this.maxSamples) { | |
this.samples.shift(); | |
} |
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
[ | |
{ | |
"key": "cmd+enter", | |
"command": "workbench.action.terminal.focus", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "cmd+enter", | |
"command": "workbench.action.terminal.toggleTerminal", | |
"when": "terminalFocus" |
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
; Force AHK to replace already running instance of this script with newer version if script is opened again while already running | |
#SingleInstance force | |
; --------------- Windows --------------- | |
; Win+Tab = Alt+Tab | |
<#Tab::AltTab | |
>#Tab::AltTab | |
; --------------- Navigation --------------- |