Streamedian / html5_rtsp_player

Play RTSP stream from IP camera in browser in this HTML5 player without plugins
Apache License 2.0
2.61k stars 598 forks source link

there is no video show in the webpage #67

Closed wangnuannuan closed 6 years ago

wangnuannuan commented 6 years ago

I open a rtsp video stream by using VLC and the url is 127.0.0.1:8554/time ; then i run the server using node.js and open the index.html in folder named example . but there is no video show in the webpage; what the Console output is

WSP/1.1 INIT proto: rtsp host: 127.0.0.1 port: 8554 seq: 1

protocol data WSP/1.1 JOIN channel: 1 seq: 2

WSP/1.1 WRAP contentLength: 55 seq: 3

OPTIONS * RTSP/1.0 CSeq: 1 User-Agent: SFRtsp 0.3

RTSP/1.0 200 OK Server: VLC/2.2.8 Content-Length: 0 Cseq: 1 Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER

WSP/1.1 WRAP contentLength: 106 seq: 4

DESCRIBE rtsp://127.0.0.1:8554/time RTSP/1.0 Accept: application/sdp CSeq: 2 User-Agent: SFRtsp 0.3

RTSP/1.0 200 OK Server: VLC/2.2.8 Date: Tue, 30 Jan 2018 09:25:24 GMT Content-Type: application/sdp Content-Base: rtsp://127.0.0.1:8554/time Content-Length: 1206 Cache-Control: no-cache Cseq: 2

rbaumi commented 6 years ago

Same problem here.

[client:rtsp] RTSP/1.0 200 OK
CSeq: 20
Server: Wowza Streaming Engine 4.7.5.01 build21752
Cache-Control: no-cache
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD, GET_PARAMETER
Supported: play.basic, con.persistent
Session: 1537996073;timeout=60

**122** streamedian.min.js:2 [transport:ws] got data

I can see messages got data but no video is presented. I'm trying to play default test video:

rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov

using both my own server and also wss://specforge.com/ws/ - same result. Any idea what can cause this?

Edit: somehow I missed in console:

[mse] Error occured: error occurred when decoding
Client paused
hitswa commented 6 years ago

Yap with me too...

In example code it runs with rtsp://127.0.0.1:8554/test and it playe a video I don't know from where it is getting this video from my own local stream.

However its not running BigBuckBunny commented stream in example.

I tried to stream through VLC and it didn't playing that too on Port 8554 but it show this error in console

[transport:ws] [ctrl] close. code: 3000 Failed to connect to remote