蝴蝶直播

社交


获取直播播放地址

<p><strong>简要描述:</strong> </p> <ul> <li>获取直播播放地址</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>/api/Live/getPlayUrl</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">lid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>主播id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "attributes": "", "obj": { "rtmp": "rtmp://live.7667wan.com/live/7361", "flv": "http://live.7667wan.com/live/7361.flv", "m3u8": "http://live.7667wan.com/live/7361.m3u8" }, "success": true, "msg": "" }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">obj</td> <td style="text-align: left;">array</td> <td>3种格式的播放地址</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML