0

I changed the src of the source

    <video controls height="500" width="750">
<source src="/path"/>
</video>

How can I load the player with the new src in react.js?

1 Answers1

-1

You should use state or props, they will call Render method if find changes. Than simply move your src to Video element. Your code should looks like this:

<video src={this.state.src} controls height="500" width="750"/>