Failed to play rtmp stream through video.js?

problem description

for example, if you get a rtmp stream and play it on a web page, you can use video.js to find it on the Internet, but you can"t play streaming media through your own research.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

<video id="rtmpVideo" class="video-js vjs-default-skin vjs-big-play-centered" width="100%" height="100%">
                        <source src="rtmp://10.129.4.250/live/2d783dfd1f0c5557bb8154a43a88191428d" type="rtmp/mp4">
                        <p class="vjs-no-js">
                            HTML5
                        

</video>

problems

clipboard.png

what result do you expect?

use html5 to play streaming videos on web pages.


are you sure the video source address is correct? 10.129.4.250 this seems to be the private network address of the CVM, which needs to be changed to public network ip or domain name. Also, make sure that your video source does not have authentication settings (that is, you need secrect to access it)


you are playing a stream based on rtmp protocol. So the type type should be changed to type= "rtmp/flv"


how is the last problem solved? I have the same problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bea18f-39d7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bea18f-39d7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?