Skip to content

Monibuca 回调插件,实现兼容 srs 的回调

Notifications You must be signed in to change notification settings

pdnews/plugin-callback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

介绍

http hook plugin for m7s.

Monibuca 回调插件,实现兼容 srs 的回调,目前支持 PublishUnPublish

[Callback]
    Debug     = false
    Timeout   = 10
    Publish   = "http://127.0.0.1:8081/callback/test"
    UnPublish = "http://127.0.0.1:8081/callback/test"

消息格式

{
   "action": "on_publish",
   "client_id": 1985,
   "ip": "192.168.1.10", "vhost": "video.test.com", "app": "live",
   "stream": "livestream", "param":"?token=xxx&salt=yyy"
}
{
   "action": "on_unpublish",
   "client_id": 1985,
   "ip": "192.168.1.10", "vhost": "video.test.com", "app": "live",
   "stream": "livestream", "param":"?token=xxx&salt=yyy"
}