Skip to content

Instantly share code, notes, and snippets.

@cupuyc
cupuyc / protocols.csv
Last active November 1, 2020 12:35
Video Protocols
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
Protocol,Description
RTMP,"This is the first protocol that should be mentioned, because it is an old protocol that did a great job in the time the Adobe Flash shined in pair with Adobe Media Server. Nowadays, many live broadcast applications still utilize it to ingest video data from broadcaster app/device to media servers. Unfortunately browsers can’t play it natively."
WebRTC,"Web Real-Time Communications comes to allow modern browsers to support video chats. It combines many other protocols under the hood. The business value of it is unquestionable. It provides low-latency and automatic quality adjustments depending on network conditions."
HLS,"HTTP Live Streaming allows desktop and mobile browsers to natively play video content. Used as protocol for live steam in YouTube, Twitch."
MPEG-DASH,"Similar to HLS used for live stream events, and envisioned as the successor of it. However this is a downside that some mobile browsers can’t play it natively."
CMAF,"The youngest technology on the live streaming mark
# From https://gist.github.com/cupuyc/8855d0e958d977ef9d6928542e35a886
set -e
mkdir -p .ebextensions
# Define instance type to use
tee -a .ebextensions/ec2-settings.config > /dev/null <<EOT
option_settings:
aws:autoscaling:launchconfiguration:
openapi: 3.1.0
info:
title: Digital Bank sign-in API
version: '1.0'
summary: Allows bank clients to sign in.
contact:
name: G2
servers:
- url: 'http://localhost:3000'
paths:
asyncapi: '2.2.0'
info:
title: Kafka API with Core-Processing
version: 1.0.0
description: This service is part of core bank and responsible for accepting card operations commands
channels:
paymentTransactions/InitTransaction:
publish:
message:
$ref: '#/components/messages/InitTransaction'
asyncapi: '2.2.0'
info:
title: Internal Digitalbank EventBus on Azure EventGrid
version: 1.0.0
description: This service is in charge to pass data between Azure Step Functions and Digital Mobile Payments Service.
channels:
internalPayments/InitPayment:
publish:
message:
$ref: '#/components/messages/InitPayment'

Testing on Mac

Add to /etc/pf.conf

block out proto udp from any to any
block in proto udp from any to any
pass out proto udp from any to any port 53
pass in proto udp from any to any port 53

To apply: