peatiscoding / wowza-webrtc-client-react

WoWza streaming Engine WebRTC Client as React Component.
3 stars 5 forks source link

Can't get player working correctly #1

Open gogojimmy opened 4 years ago

gogojimmy commented 4 years ago

Hi, I want to use simple player as your example

import {
  WebRTCPlayer as Player,
  WebRTCPublisher as Publisher,
} from 'wowza-webrtc-client-react'
import { WebRTCConfiguration } from 'wowza-webrtc-client'

const config: WebRTCConfiguration = {
  WEBRTC_SDP_URL: 'wss://5ee18093bf43d.streamlock.net/webrtc-session.json',
  WEBRTC_APPLICATION_NAME: 'test',
  WEBRTC_FRAME_RATE: 30,
  WEBRTC_AUDIO_BIT_RATE: 64,
  WEBRTC_VIDEO_BIT_RATE: 3500,
}

class App extends React.Component {
  render() {
    return (
      <div>
        <Player
          id="player-test"
          ref="player"
          streamName="Jimmy"
          style={{ width: '100%', height: '100vh' }}
          rotate="cw" // 'cw'|'none'|'ccw'
          config={config}
          autoPlay={false}
          onPlayerStateChanged={(status) => {
            console.log('Player state has changed', status)
          }}
        />
      </div>
    )
  }
}

But I always got error Bailed on calculation size info is not valid, It seems like an error from video element but I don't know where is wrong

timoziemann commented 2 years ago

same here

Silaszur commented 2 years ago

Same here, did someone find any fix?