【文件属性】:
文件名称:rtsp-server:用于创建RTSP服务器的低级模块
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-07 12:39:48
JavaScript
rtsp服务器
用于创建低级模块。
该项目旨在100%符合 。 如果您发现缺少的东西,请。
安装
npm install rtsp-server
用法
var rtsp = require ( 'rtsp-server' )
var server = rtsp . createServer ( function ( req , res ) {
console . log ( req . method , req . url )
switch ( req . method ) {
case 'OPTIONS' :
res . setHeader ( 'Public' , 'OPTIONS' )
break
default :
res . statusCode = 501 // Not implemented
}
res .
【文件预览】:
rtsp-server-master
----.travis.yml(98B)
----index.js(1KB)
----test.js(1KB)
----package.json(867B)
----LICENSE(1KB)
----.gitignore(13B)
----lib()
--------client-methods.js(409B)
--------server-methods.js(736B)
----README.md(2KB)