import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.multistream.update({
url: "rtmps://live.my-service.tv/channel/secretKey",
}, "<id>");
// Handle the result
console.log(result);
}
run();{
"errors": [
[
"id not provided",
"Account not found"
]
]
}import { Livepeer } from "livepeer";
const livepeer = new Livepeer({
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await livepeer.multistream.update({
url: "rtmps://live.my-service.tv/channel/secretKey",
}, "<id>");
// Handle the result
console.log(result);
}
run();{
"errors": [
[
"id not provided",
"Account not found"
]
]
}Documentation Index
Fetch the complete documentation index at: https://na-36-docs-v2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the multistream target
Livepeer-compatible multistream target URL (RTMP(S) or SRT)
^(srt|rtmps?)://"rtmps://live.my-service.tv/channel/secretKey"
If true then this multistream target will not be used for pushing even if it is configured in a stream object.
Success
Was this page helpful?