https://github.com/webrtcHacks/adapter From MDN: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture Note: It may be useful to note that recent versions of the WebRTC adapter.js shim include implementations of getDisplayMedia() to enable screen sharing on browsers that support it but do not implement the current standard API. This works with at least Chrome, Edge, and Firefox.
16 lines
352 B
TypeScript
16 lines
352 B
TypeScript
import '@babel/polyfill'
|
|
import 'webrtc-adapter'
|
|
import App from './containers/App'
|
|
import React from 'react'
|
|
import ReactDOM from 'react-dom'
|
|
import store from './store'
|
|
import { Provider } from 'react-redux'
|
|
|
|
const component = (
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>
|
|
)
|
|
|
|
ReactDOM.render(component, document.getElementById('container'))
|