Skip to content

Instantly share code, notes, and snippets.

View samueleastdev's full-sized avatar

Samuel East samueleastdev

View GitHub Profile
@samueleastdev
samueleastdev / index.html
Created August 24, 2023 16:38
Crash Example
<html><head><title>AAMP playback in WPE browser using UVE APIs</title></head>
<script>
let url = "https://g004-vod-us-cmaf-prd-cf.cdn.peacocktv.com/pub/global/evh/Xa0/PCK_1664984712313.613_01/cmaf/mpeg_cenc/master_cmaf.m3u8?c3.ri=3779169266227869059";
let defaultConfig = {
asyncTune: false,
downloadStallTimeout: 5,
downloadStartTimeout: 3,
manifestTimeout: 1.0,
useRetuneForUnpairedDiscontinuity: true,
playlistTimeout: 10,
@samueleastdev
samueleastdev / index.html
Created August 24, 2023 12:45
Basic Aamp Starter Template
<!-- https://developer.rdkcentral.com/documentation/documentation/rdk_video_documentation/rdk-v_components/rdk-v_open-sourced_components/advanced_adaptive_media_player_aamp/aamp_app_integration_universal_video_engine_uve_apis/ -->
<html><head><title>AAMP playback in WPE browser using UVE APIs</title></head>
<script>
var url = "http://d3rlna7iyyu8wu.cloudfront.net/skip_armstrong/skip_armstrong_multi_language_subs.m3u8";
window.onload = function() {
var player = new AAMPMediaPlayer();
player.load(url);
}
</script>
<body>
@samueleastdev
samueleastdev / readme.html
Last active December 20, 2022 17:32
Setting Up Dev Environment On Windows
Install Git Bash
https://git-scm.com/download/win
Install Vscode
https://code.visualstudio.com/download
In vscode open a terminal via then menu click the down arrow next to the plus and click Select Default Profile -> Then select Git Bash
Install NVM via Git Bash in vscode
@samueleastdev
samueleastdev / PasteInGitBash.ahk
Last active October 5, 2022 09:43 — forked from 2ajoyce/PasteInGitBash.ahk
Autohotkey Copy & Paste For Git Bash
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 1
I_Icon = C:\Program Files\AutoHotkey\Letter Icons\paste.ico
ICON [I_Icon] ;Changes a compiled script's icon (.exe)
if I_Icon <>
IfExist, %I_Icon%
@samueleastdev
samueleastdev / index.js
Created September 2, 2022 18:58
Showdown JS Video Link Finder - Extension
// Finds youtube and vimeo links in code and converts to iframes css below for 16/9
/*
.iframe-wrapper {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%;
margin: 20px 0;
}
.iframe-wrapper iframe {
@samueleastdev
samueleastdev / index.js
Created September 17, 2021 21:05
Opens an Electron app from browser or asked them to install it.
var timeout;
document.getElementById('link').addEventListener('click', function(e) {
timeout = window.setTimeout(function() {
alert('install app');
}, 1000);
window.location = "app://";
e.preventDefault();
@samueleastdev
samueleastdev / DRMFairplay.swift
Created August 31, 2021 18:11 — forked from neha-bansal790/DRMFairplay.swift
DRM fairplay with hls integration
//
// DRMFairplay.swift
// Collection
//
// Created by B0203948 on 04/02/20.
// Copyright © 2020 wynk. All rights reserved.
//
import UIKit
import AVFoundation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdn.jsdelivr.net/momentjs/2.14.1/moment-with-locales.min.js"></script>
<style id="jsbin-css">
#timeline {
width: 1000px;
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@samueleastdev
samueleastdev / index.json
Created February 10, 2021 18:47
example-medialive-test.json
{
"Resources": {
"MediaLive": {
"Type": "AWS::MediaLive::Channel",
"Properties": {
"Name" : {
"Fn::Sub": "${AWS::StackName}-Channel"
},
"ChannelClass": "SINGLE_PIPELINE",
"RoleArn": "arn:aws:iam::422423811642:role/Media_Live_Role",