RTSP-Streaming mit Node js?HTML

HTML-Programmierer
Guest
 RTSP-Streaming mit Node js?

Post by Guest »

Ich verwende das Paket node-rtsp-stream, um RTSP-Streaming auszuführen. Wie kann ich es in der MVC-Struktur implementieren und zurückrufen?
Controller:

Code: Select all

var RTSP = require('./models/rtsp.js');
var startRTSP = function startRTSP(queryData) {
console.log("startRTSP enterred******************")
console.log("queryData : "+JSON.stringify(queryData))
stream = new Stream({
name: 'name',
streamUrl: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov',
wsPort: 9999
});
};
Modelle:

Code: Select all

router.get('/', function(req,res){
RTSP.startRTSP(req.body);
res.send("SUCCESS")
})
Ansichten:

Code: Select all

$.ajax({
url:'/',
type:'POST',
cache:false,
success:function(data){
console.log("RTSP Result  : "+JSON.stringify(data)
var canvas = document.getElementById('rtspvt');
var ws = new WebSocket("ws://localhost:9999")
var player = new jsmpeg(ws, {canvas:canvas, autoplay:true,audio:false,loop: true});
}
});

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • RTSP -Streaming mit Knoten JS?
    by Anonymous » » in HTML
    0 Replies
    4 Views
    Last post by Anonymous
  • Streaming über RTSP oder RTP in HTML5
    by Anonymous » » in HTML
    0 Replies
    18 Views
    Last post by Anonymous
  • Geben Sie mit Lesen von Frames aus der CCTV -Kamera mit OpenCV über RTSP aus
    by Anonymous » » in Python
    0 Replies
    0 Views
    Last post by Anonymous
  • Reduzieren Sie die Latenz eines Software-RTSP-Switches
    by Guest » » in Python
    0 Replies
    17 Views
    Last post by Guest
  • Vanilla-Android-Emulator spammt RTSP in Wireshark
    by Guest » » in Android
    0 Replies
    12 Views
    Last post by Guest