Skip to content
We've just launched - check out our docs! đź“—
  • React
  • Providers
  • Studio

Studio

The studioProvider configures the client with Livepeer Studio.

import { studioProvider } from '@livepeer/react';

Usage

import { createReactClient, studioProvider } from '@livepeer/react';
 
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',
  }),
});