Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mark committed Mar 27, 2023
1 parent b290342 commit b6aa8b1
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/pages/examples/toronto.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import * as React from 'react'

// mui
import { styled } from '@mui/system';

// libs
import "rsuite/dist/rsuite.min.css";
import { MetaProvider, MetaEditor, PlayerConfigProps } from 'pixel-streaming'

// configs
import defaultConfig from 'src/views/Player/defaultConfig'


const config: PlayerConfigProps = {
...defaultConfig,
debugMode: 'off',
showToolbar: false,
psHost: 'wss://ps1.unrealos.com/',
}


const Wrapper = styled('div')(({ theme }: any) => ({
'#streamingVideo': {
// objectFit: 'cover',
}
}))


const PlayerView = () => {

const newConfig: PlayerConfigProps = {
...defaultConfig,
...config,
}

// alert(JSON.stringify(newConfig, null, 2))

return (
<Wrapper>
<MetaEditor {...newConfig} />
</Wrapper>
);
}

export default function AppHOC() {
return (
<MetaProvider>
<PlayerView />
</MetaProvider>
);
}

1 comment on commit b6aa8b1

@vercel
Copy link

@vercel vercel bot commented on b6aa8b1 Mar 27, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.