Studio
The studioProvider
configures the client with Livepeer Studio (opens in a new tab).
Usage
React
import { studioProvider } from '@livepeer/react';
The studioProvider
can then be instantiated with an API key.
const client = createReactClient({
provider: studioProvider({ apiKey: 'yourStudioApiKey' }),
});
Configuration
apiKey
A CORS protected (opens in a new tab) 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',
}),
});