Skip to content

Commit

Permalink
fix: fix all missing playback ids (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcadams committed Feb 14, 2023
1 parent 13e94ca commit bbd3098
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 47 deletions.
3 changes: 1 addition & 2 deletions components/react/docs/HeaderVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const PosterImage = () => {
);
};

const playbackId =
'bafybeigtqixg4ywcem3p6sitz55wy6xvnr565s6kuwhznpwjices3mmxoe';
const playbackId = '667f7flfr0od837u';

export function HeaderVideo() {
return (
Expand Down
5 changes: 1 addition & 4 deletions components/react/docs/player/CustomControlsPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ const title = 'Agent 327: Operation Barbershop';

export const CustomControlsPlayer = () => {
return (
<DocsDemoPlayer
title={title}
playbackId="bafybeida3w2w7fch2fy6rfvfttqamlcyxgd3ddbf4u25n7fxzvyvcaegxy"
>
<DocsDemoPlayer title={title} playbackId="f5eese9wwl88k4g8">
<ControlsContainer
poster={<Poster content={<PosterImage />} title={title} />}
top={<Title content={title} />}
Expand Down
2 changes: 1 addition & 1 deletion components/react/docs/player/ImagePosterPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ImagePosterPlayer = () => {
return (
<DocsDemoPlayer
title="Agent 327: Operation Barbershop"
playbackId="bafybeida3w2w7fch2fy6rfvfttqamlcyxgd3ddbf4u25n7fxzvyvcaegxy"
playbackId="f5eese9wwl88k4g8"
poster={<PosterImage />}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion components/react/docs/player/SimplePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SimplePlayer = () => {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="bafybeida3w2w7fch2fy6rfvfttqamlcyxgd3ddbf4u25n7fxzvyvcaegxy"
playbackId="f5eese9wwl88k4g8"
poster={<PosterImage />}
showPipButton
priority
Expand Down
3 changes: 1 addition & 2 deletions components/react/examples/DemoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Player } from '@livepeer/react';

import Image from 'next/image';

const playbackId =
'bafybeida3w2w7fch2fy6rfvfttqamlcyxgd3ddbf4u25n7fxzvyvcaegxy';
const playbackId = 'f5eese9wwl88k4g8';

import blenderPoster from '../../../public/images/blender-poster.png';

Expand Down
2 changes: 1 addition & 1 deletion components/react/examples/IframePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
export function IframePlayer() {
return (
<iframe
src="https://lvpr.tv?v=6d7el73r1y12chxr"
src="https://lvpr.tv?v=667f7flfr0od837u"
width={'100%'}
height={530}
allowFullScreen
Expand Down
2 changes: 1 addition & 1 deletion components/react/examples/VideoJSPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const VideoJSPlayer = () => {
fluid: true,
sources: [
{
src: 'https://livepeercdn.com/asset/6d7el73r1y12chxr/video',
src: 'https://lp-playback.com/hls/f5eese9wwl88k4g8/video',
type: 'video/mp4',
},
],
Expand Down
4 changes: 1 addition & 3 deletions pages/reference/livepeer-js.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,5 @@ Check out the following places for more livepeer-related content:
import { prefetchPlayerStaticProps } from '@lib/prefetchStaticProps';

export const getStaticProps = async () => {
return prefetchPlayerStaticProps(
'bafybeigtqixg4ywcem3p6sitz55wy6xvnr565s6kuwhznpwjices3mmxoe',
);
return prefetchPlayerStaticProps('667f7flfr0od837u');
};
64 changes: 32 additions & 32 deletions pages/reference/livepeer-js/Player.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ was passed to the viewer.
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster={<PosterImage />}
showPipButton
objectFit="cover"
Expand Down Expand Up @@ -83,7 +83,7 @@ was passed to the viewer.
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster={blenderPoster}
/>
);
Expand Down Expand Up @@ -160,7 +160,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
/>
);
}
Expand Down Expand Up @@ -228,7 +228,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
jwt={jwt}
/>
);
Expand All @@ -248,7 +248,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
priority
/>
);
Expand All @@ -265,13 +265,13 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
/>
);
}
```

<Player title="Agent 327: Operation Barbershop" playbackId="6d7el73r1y12chxr" />
<Player title="Agent 327: Operation Barbershop" playbackId="f5eese9wwl88k4g8" />

### showTitle

Expand All @@ -282,7 +282,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
showTitle={false}
/>
);
Expand All @@ -291,7 +291,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
showTitle={false}
/>

Expand All @@ -305,7 +305,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
aspectRatio="1to1"
/>
);
Expand All @@ -314,7 +314,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
aspectRatio="1to1"
/>

Expand All @@ -327,7 +327,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
loop
/>
);
Expand All @@ -336,7 +336,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
loop
/>

Expand All @@ -359,7 +359,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster="/images/blender-poster.png"
/>
);
Expand All @@ -368,7 +368,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster="/images/blender-poster.png"
/>

Expand Down Expand Up @@ -397,7 +397,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster={<PosterImage />}
/>
);
Expand All @@ -424,7 +424,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster={posterImage}
/>
);
Expand All @@ -433,7 +433,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
poster="/images/blender-poster.png"
/>

Expand All @@ -449,7 +449,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
showLoadingSpinner={false}
/>
);
Expand All @@ -465,7 +465,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
controls={{ autohide: 0, hotkeys: false }}
/>
);
Expand All @@ -474,7 +474,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
controls={{ autohide: 0, hotkeys: false }}
/>

Expand All @@ -488,7 +488,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
muted
autoPlay
/>
Expand All @@ -498,7 +498,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
muted
autoPlay
/>
Expand All @@ -513,7 +513,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
aspectRatio="1to1"
objectFit="cover"
/>
Expand All @@ -523,7 +523,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
aspectRatio="1to1"
objectFit="cover"
/>
Expand Down Expand Up @@ -551,7 +551,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
showPipButton
/>
);
Expand All @@ -560,7 +560,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
showPipButton
/>

Expand Down Expand Up @@ -630,7 +630,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
autoUrlUpload={{ fallback: true }}
showUploadingIndicator={false}
/>
Expand All @@ -648,7 +648,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
theme={{
borderStyles: {
containerBorderStyle: 'hidden',
Expand All @@ -673,7 +673,7 @@ function PlayerComponent() {

<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
theme={{
borderStyles: {
containerBorderStyle: 'hidden',
Expand Down Expand Up @@ -732,7 +732,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
mediaElementRef={mediaElementRef}
/>
);
Expand All @@ -749,7 +749,7 @@ function PlayerComponent() {
return (
<Player
title="Agent 327: Operation Barbershop"
playbackId="6d7el73r1y12chxr"
playbackId="f5eese9wwl88k4g8"
mediaElementRef={async (ref) => {
await ref?.setVolumeAsync(0.5);
}}
Expand Down

1 comment on commit bbd3098

@vercel
Copy link

@vercel vercel bot commented on bbd3098 Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs.livepeer.org
docs-livepeer.vercel.app
docs-git-main-livepeer.vercel.app

Please sign in to comment.