panyapoc / mobilelivestream

Mobile Live Streaming Solution on AWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mobile Live Streaming AWS

Mobile Live Streaming Solution on AWS

Encoding Consideration

Android Client

base on Yasea Android streaming client

Deploy

Howto acc

#!/bin/bash
sam package \
    --s3-bucket panyapoc-sgsrc \
    --profile howto

sam deploy \
    --stack-name mobilelive \
    --profile howto \
    --region ap-southeast-1 \
    --s3-bucket panyapoc-sgsrc \
    --capabilities CAPABILITY_NAMED_IAM

Mobilelive acc

#!/bin/bash
sam package \
    --s3-bucket <> \
    --profile mobilelive

sam deploy \
    --stack-name mobilelive \
    --profile mobilelive \
    --region ap-southeast-1 \
    --s3-bucket <> \
    --capabilities CAPABILITY_NAMED_IAM

MISC

DynamoDB Table

DDB Channel Table

  • ChannelId
  • Streamer : [Future USE] who currenty Streaming
  • State : IDLE | IN_USE | IN_PROGESS
  • RTMPEndpoint : RMTP input Endpoint for mobile to stream to this channel
  • MediaPackageHLSEndpoint : HLS Endpoint to view livestream
  • VoDS3key : S3 key folder

logging of livestream is p much VOD table

DDB VoD Table

  • VoDID
  • ChannelId : Create From which chaneel
  • StartTime : Start TS
  • EndTime : END TS
  • VoDEndpoint : HLS Endpoint to view VoD
  • Streamer : [Future USE] who streamed this VoD

Timestamp Usage

from datetime import datetime

# current date and time
now = datetime.now()

timestamp = datetime.timestamp(now)
print("timestamp =", timestamp)


timestamp = 1545730073
dt_object = datetime.fromtimestamp(timestamp)

print("dt_object =", dt_object)
print("type(dt_object) =", type(dt_object))

About

Mobile Live Streaming Solution on AWS

License:MIT License


Languages

Language:C 34.9%Language:C++ 33.3%Language:Java 16.9%Language:Assembly 12.1%Language:GLSL 1.1%Language:Python 0.7%Language:Perl 0.4%Language:Vue 0.2%Language:Makefile 0.1%Language:Objective-C 0.1%Language:Shell 0.1%Language:JavaScript 0.0%Language:HTML 0.0%