May 2018
Intermediate to advanced
470 pages
13h 54m
English
The Media component will render details of an individual media record and stream the video in a basic ReactPlayer with default browser controls:

The Media component can call the read API to fetch the media data itself or receive the data as props from a parent component that makes the call to the read API. In the latter case, the parent component will add the Media component, as follows.
mern-mediastream/client/media/PlayMedia.js:
<Media media={this.state.media}/>
In MERN Mediastream, we add the Media component in a PlayMedia component that fetches the media content from the server using the read API, and passes it to Media ...
Read now
Unlock full access