1.6.5 • Published 2 years ago
streamapi v1.6.5
Stream Video/Audio API
Test mode (Not recommended for production usage)
import React from "react";
import { Stream } from "streamapi";
export default () => {
return <Stream
title={"Join room"}
chat={true}
testMode={true}
data={{
name: "<username>",
room: "<unique room id>",
type: "producer" or "consumer",
record: true or false,
}}
accessKey="<your access key>"
onEnded={() => {
// User clicked on the close button, the Stream component can now be unmounted and
// logic to collect post session stats can kick in
}}
theme={{
primary: "#f3f3fc",
contrast: "#6d6af8"
}}
/>
}
Production script
import React from "react";
import { Stream } from "streamapi";
export default () => {
return <Stream
chat={true}
token="<token>"
accessKey="<your access key>"
onEnded={() => {
// User clicked on the close button, the Stream component can now be unmounted and
// logic to collect post session stats can kick in
}}
/>
}
How to create a production token
https://app.gitbook.com/@streamai/s/stream/
How to get your accessKey
1.6.3
2 years ago
1.6.2
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago
1.5.9
2 years ago
1.5.8
2 years ago
1.6.5
2 years ago
1.5.7
2 years ago
1.5.6
2 years ago
1.5.5
2 years ago
1.5.4
2 years ago
1.5.3
2 years ago
1.5.2
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.9
3 years ago
1.4.8
3 years ago
1.4.6
3 years ago
1.4.5
3 years ago
1.4.4
3 years ago
1.4.3
3 years ago
1.4.7
3 years ago
1.4.2
3 years ago
1.3.7
3 years ago
1.3.6
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.9
3 years ago
1.3.5
3 years ago
1.3.4
3 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.9
3 years ago
1.2.8
3 years ago
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.0
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.1.5
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago