直播API说明

API 透过 标准 json进行交互,所有api需要 key ,如果key 错误,将统一返回

{
  "code" : -1,
  "msg" : "api秘钥不正确"
}

创建直播频道

创建普通的 频道

POST /api/create?key=xxxx
{
	"name" : "测试频道",
	"source" : "d:\\wfsroot\\somebody.mp4",
	"type" : "general"  
  
}

type 可选值 “general” 或者 “rtmp”
注意, 如果type 是rtmp类型, source字段 表示 推流的标识,比如我们通过 obs 推流 rtmp://ip/live/xxxxxx

创建编码的直播频道 (增加vc,ac 字段)

{
  "name" : "测试频道",
  "source" : "xvckieufd",
  "type" : "rtmp"  ,
  "vc" : {
    "vb" : 1024,
    "framerate" : 25,
    "resolution" : "1280x720"
  },
  "ac" : 1  
}

vc,ac 字段不是必须,如果不填,那么表示不进行转码
vc.vb 视频码率
vc.framerate 帧速率
vc.resolution 分辨率

接口返回

{
  code: 0,
  id : "xxxxxx", //频道id
  url: {      
      "m3u8" : "http://ip/hls/index.m3u8",
      "share" : "http://ip/shaare/xxxx",
      "rtmp": "rtmp://ip/live/xxxx",
      "push" : "rtmp://ip/live/xxxx"
  }}

m3u8字段表示 m3u8的视频地址
share字段表示 m3u8的页面地址
rtmp字段表示 rtmp的播放地址
push字段表示 rtmp的推流地址

删除直播频道

GET /api/delete?key=xxxx&id=liveid 

接口返回
{
“code” : 0
}

启动

GET /api/start?key=xxxx&id=liveid 

接口返回
{
“code” : 0
}

停止

GET /api/stop?key=xxxx&id=liveid 

接口返回
{
“code” : 0
}

获取频道列表

GET /api/get?key=xxx
{  
   "code":0,
   "data":[  
      {  
         "id":"tdiadlle",
         "name":"测试HLS频道2",
         "type":"hls",
         "url":{  
            "m3u8":"https://t1.ngcdn.net/hls/tdiadlle/index.m3u8",
            "share":"https://t1.ngcdn.net/share/tdiadlle"
         }
      },
      {  
         "id":"uwhfuwgp",
         "name":"测试HLS频道2",
         "type":"hls",
         "url":{  
            "m3u8":"https://t1.ngcdn.net/hls/uwhfuwgp/index.m3u8",
            "share":"https://t1.ngcdn.net/share/uwhfuwgp"
         }
      }
   ]
}

PPVOD【CPU授权】:500/1个月,1000/3个月,1500/6个月,2000/12个月 PPVOD【GPU授权】:700/1个月,6000/12个月 BTCDN:700/12个月 直播授权:2000/12个月 GPU授权用户需要WIN系统,必须N卡,算力最好6.0以上 CPU授权用户支持Windows/Linux系统,推荐使用Linux系统 购买地址:https://shop.mingchuang.cc/search/brand/3.html 注册用户购买不需要登记手机号码,游客登入需要登记手机号码。 请注意购买时间和续费时间需要在上班时间内完成,上班时间:上午9点至晚上9点。

在网站右侧就可以联系

https://www.ppvod.cc/soft/#soft

https://www.ppvod.cc/soft/#enclosure

https://www.ppvod.cc/soft/#introduce