Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

using azure streaming video not loading in react

I have azure streaming videos that I have implemented, however initially they don't load, I just see the default html5 video player skin and the video attempts to load but then doesn't, if the page refreshes I see the azure skin and the video loads correctly, this happens with every video on the site.

How can I change it so the video loads correctly?

        <video
          id={topic.id}
          className="azuremediaplayer amp-default-skin amp-big-play-centered"
          autoPlay
          controls
          width="640"
          height="400"
          data-setup='{"nativeControlsForTouch": false}'
        >
          <source
            src={topic.url}
          />
          <p className="amp-no-js">
            To view this video please enable JavaScript, and consider upgrading to a web browser
            that supports HTML5 video
          </p>
        </video>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...