- Show & Host Intro
- What is Streaming on Streaming?
- What is Amazon IVS?
- Low-latency Live Streaming
This file contains 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
import * as http from 'http'; | |
import * as url from 'url'; | |
import { CreateParticipantTokenCommand, IVSRealTimeClient } from "@aws-sdk/client-ivs-realtime"; | |
import { CreateChatTokenCommand, IvschatClient } from "@aws-sdk/client-ivschat"; | |
const ivsChatClient = new IvschatClient(); | |
const ivsRealtimeClient = new IVSRealTimeClient(); | |
const createChatToken = async (chatArn, userId, username) => { | |
const chatTokenInput = { |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using UnityEngine; | |
using Unity.WebRTC; | |
using UnityEngine.Networking; | |
[System.Serializable] | |
public class ParticipantToken | |
{ |
Let's take a look at server side compositing with Amazon IVS! This feature allows you to "composite" a real-time stage with multiple participants into a single low-latency stream.
For more information, check the docs!
aws ivs create-channel --name my-first-low-latency-channel
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Unity.WebRTC; | |
using UnityEngine.Networking; | |
public class WebRTCPublish : MonoBehaviour{ | |
RTCPeerConnection peerConnection; | |
MediaStreamTrack track; | |
Camera cam; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Unity.WebRTC; | |
using UnityEngine.Networking; | |
public class WebRTCPublish : MonoBehaviour{ | |
RTCPeerConnection peerConnection; | |
MediaStreamTrack track; | |
Camera cam; |
This file contains 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
import { IvsClient, StopStreamCommand } from "@aws-sdk/client-ivs"; | |
import { IvschatClient, SendEventCommand } from "@aws-sdk/client-ivschat"; | |
import { RekognitionClient, DetectLabelsCommand, DetectModerationLabelsCommand } from "@aws-sdk/client-rekognition"; | |
const chatArn = process.env.DEMO_CHAT_ARN; | |
const channelArn = process.env.DEMO_CHANNEL_ARN; | |
const responseObject = { | |
statusCode: 200, | |
headers: { |