Skip to content

Latest commit

 

History

History
128 lines (113 loc) · 4.35 KB

视频模块.md

File metadata and controls

128 lines (113 loc) · 4.35 KB

2. 视频模块

说明: 包括 视频首页数据、视频分类列表 视频详情、如下详情:

2.1 视频首页数据

必选参数:

接口地址: /Video/index

调用例子: //api.isoyu.com/api/Video/index

  返回数据(每次返回是10条数据,这里就不全部列出来了)如下图:
  ```
  ```

2.2 视频分类列表

必选参数: type int : 新闻类型

type 0 1 2 3 4
名称 精品视频 搞笑视频 美女视频 体育视频 新闻现场
`page` int : 分页页数,每页返回10条 **接口地址:**

/Video/video_type?type=2&page=10 调用例子:

//api.isoyu.com/api/Video/video_type?type=2&page=10 返回数据(每次返回是10条数据,这里就不全部列出来了)如下图:

{
    "msg": "success",
    "code": 1,
    "data": [
        {
            "sizeSHD": 22050,
            "replyCount": 0,
            "videosource": "新媒体",
            "mp4Hd_url": "http://flv2.bn.netease.com/videolib3/1705/30/aYNXb0812/HD/aYNXb0812-mobile.mp4",
            "title": "小清新美女爱跳舞,夜里房间优雅独舞",
            "cover": "http://vimg3.ws.126.net/image/snapshot/2017/5/J/F/VCKOETEJF.jpg",
            "videoTopic": {
                "alias": "多彩人生,你我共同编织",
                "tname": "韬哥学霸哥",
                "ename": "T1494085453258",
                "tid": "T1494085453258",
                "topic_icons": "http://dingyue.nosdn.127.net/tHYrjgCtrdmQP3Nvygaa75m3BMOxdY5ZJ8RVPGgMj9Njt1494085452329.jpg"
            },
            "description": "小清新美女爱跳舞,夜里房间优雅独舞",
            "replyid": "BKOD7PO4050835RB",
            "length": 147,
            "m3u8_url": "http://flv.bn.netease.com/videolib3/1705/30/aYNXb0812/SD/movie_index.m3u8",
            "vid": "VBKOD7PO4",
            "topicName": "韬哥学霸哥",
            "votecount": 0,
            "topicImg": "http://vimg3.ws.126.net/image/snapshot/2017/5/9/B/VCKI1SH9B.jpg",
            "topicDesc": "让生活慢下来,品味阅读,享受人生,活到老学到老,教育大家,心灵美好,我们一起携手共创美好世界。",
            "topicSid": "VCKI1SH8S",
            "replyBoard": "video_bbs",
            "playCount": 0,
            "sectiontitle": "",
            "mp4_url": "http://flv2.bn.netease.com/videolib3/1705/30/aYNXb0812/SD/aYNXb0812-mobile.mp4",
            "playersize": 1,
            "sizeSD": 11025,
            "sizeHD": 14700,
            "m3u8Hd_url": "http://flv.bn.netease.com/videolib3/1705/30/aYNXb0812/HD/movie_index.m3u8",
            "ptime": "2017-05-30 10:21:30"
        }
    ]
}

2.3 视频详情

必选参数: vid 视频列表下的vid VEKKO9TJP

接口地址: /Video/video_detail?vid=VEKKO9TJP

调用例子: //api.isoyu.com/api/Video/video_detail?vid=VEKKO9TJP 返回数据(每次返回是10条数据,这里就不全部列出来了)如下图:

{
    "msg": "success",
    "code": 1,
    "data": {
        "topicid": "1000",
        "replyCount": 0,
        "mp4Hd_url": "http://flv2.bn.netease.com/videolib3/1705/29/BWixL8250/HD/BWixL8250-mobile.mp4",
        "recommend": [],
        "title": "搞笑段子:老婆,咱们去旅游吧",
        "hits": 0,
        "cover": "http://vimg1.ws.126.net/image/snapshot/2017/5/S/Q/VCKMKITSQ.jpg",
        "replyBoard": "video_bbs",
        "replyid": "EKKO9TJP050835RB",
        "mp4_url": "http://flv2.bn.netease.com/videolib3/1705/29/BWixL8250/SD/BWixL8250-mobile.mp4",
        "length": 13,
        "videotype": "搞笑的小妖精",
        "playersize": 0,
        "vurl": "http://v.163.com/paike/VCH0LU18J/VEKKO9TJP.html",
        "m3u8Hd_url": "http://flv.bn.netease.com/videolib3/1705/29/BWixL8250/HD/movie_index.m3u8",
        "m3u8_url": "http://flv.bn.netease.com/videolib3/1705/29/BWixL8250/SD/movie_index.m3u8",
        "ptime": "2017-05-29 00:17:56",
        "vid": "VEKKO9TJP"
    }
}