phenix-react-player
v2018.2.7
Published
stream view component
Downloads
7
Readme
Player
Usage:
import Player from 'player';
...
<Player
id={id}
stream={stream}
isSelf={isSelf}
onStreamEnd={onStreamEnd}
defaultAudioEnabled={defaultAudioEnabled}
defaultVideoEnabled={defaultVideoEnabled}
storeLocalStateKey={storeLocalStateKey}
showVideoControl={showVideoControl}
showAudioControl={showAudioControl}
/>
id
Required property. Unique Id (string type) for the video element. Must be unique across the DOM.
stream
Required property. Stream object.
isSelf
Required property. Determines whether or not the stream is one that you are publishing and effects mute logic.
onStreamEnd
Required property. Function which called when stream is ended.
defaultAudioEnabled
Prop sets default state for audio.
defaultVideoEnabled
Prop sets default state for video.
storeLocalStateKey
Store the state of the audio and the video using local storage if available, else cookies.
showVideoControl
The prop which is responsible for showing the video control buttons.
showAudioControl
The prop which is responsible for showing the audio control buttons.