Studio
Official Livepeer provider for Studio.
The studioProvider
configures the client with
Livepeer Studio.
Usage
import { studioProvider } from '@livepeer/react';
The studioProvider
can then be instantiated with an API key.
App.js
const client = createReactClient({
provider: studioProvider({ apiKey: "yourStudioApiKey" }),
});
Configuration
apiKey
A CORS protected Studio API key. If no API key is provided, the provider will use a default key which is rate-limited.
import { createReactClient, studioProvider } from "@livepeer/react";
const client = createReactClient({
provider: studioProvider({ apiKey: "yourStudioApiKey" }),
});
baseUrl
A base URL for the provider. If no base URL is provided, the provider will use
the https://livepeer.studio
domain.
import { createReactClient, studioProvider } from "@livepeer/react";
const client = createReactClient({
provider: studioProvider({
apiKey: "yourStudioApiKey",
baseUrl: "https://studio.my-domain.com/root/api",
}),
});
Was this page helpful?