Home > front end >  HTML 5 js play webrtc RTSP streaming video
HTML 5 js play webrtc RTSP streaming video

Time:10-06

How do I use js play
RTSP streaming video?Set the webrtc server, signaling server, make hole server has been set up successfully. And to be able to call the local camera play

But how do I don't have to plug-in directly h5 js play RTSP stream, RTSP address is called hai kang IPC cameras, thank you
Note: can't find a lot of data on the net, and basic it is called local camera, also please do not copy and paste
 var servers=[{
The credential: "myvm,"
Username: "myvm,"
Urls: [
"Turn: 192.168.0.134:3478? Transport=udp,
""Turn: 192.168.0.134:3478? Transport=TCP "
]
}];
Var loadingParams={
MediaConstraints: {" video ": true," audio ": true},
OfferOptions: {},
PeerConnectionConfig: {
"RtcpMuxPolicy" : "the require,"
"IceServers" : the servers,
"BundlePolicy" : "Max - bundle"
},
PeerConnectionConstraints: {" optional ": []},
IceServerRequestUrl: 'http://192.168.0.134/v1alpha/iceconfig? Key=none ',
IceServerTransports: "'
WssUrl: 'the ws://192.168.0.134:8090/ws',
WssPostUrl: 'http://192.168.0.134:8090',
BypassJoinConfirmation: false
};
Var appController;
AppController=new appController (loadingParams);

CodePudding user response:

Found on the lot, there are a lot of, or see https://segmentfault.com/q/1010000013117129/a-1020000013581070 here

CodePudding user response:

Directly to the camera, need hai kang cameras also supports webRTC, there is no
Another is you use similar gateway mode, the need to conversion in the server (similar to a gateway) and direct access to your own gateway

CodePudding user response:

Webrtc play RTSP with local camera flow difference is:
1, the local camera is getUserMedia () get to the local flow, coding, sending, decoding and displaying
2, RTSP can pull flow, to send, decoding and displaying
Specific how to implement, not tried, I guess the idea should be right
  • Related