Commit beba6688 authored by pete谢兆麟's avatar pete谢兆麟

直播bannar接口

parent efaebc22
......@@ -18,7 +18,12 @@ class YHBannerModel: SmartCodable {
var skip_type: Int = 0
var id: Int = 0
var img_url_compress: String = ""
var media_type: Int = 1 //投放类型:1 图片,2 直播
var live_id: Int = 0 //直播ID
var live_status: Int = 0 //直播状态 1:直播中 2:未直播 0:未知状态 3:结束直播
var live_type: Int = 0 // 播放类型:1 展示最新直播,2指定直播,3 指定录播
var live_pull_url: String = "" //直播拉流链接
var video_url: String = "" //视频链接
//是否为本地
var isLocalItemFlag : Bool = false
......
......@@ -200,6 +200,16 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
let vc = YHHomeWebViewController()
vc.url = model.skip_url
self.parentViewController?.navigationController?.pushViewController(vc)
case 10:// 直播
// media_type 投放类型:1 图片,2 直播
// live_id 直播ID
// live_status 直播状态 1:直播中 2:未直播 0:未知状态 3:结束直播
// live_type 播放类型:1 展示最新直播,2指定直播,3 指定录播
// live_pull_url 直播拉流链接
// video_url 视频链接
printLog("跳转直播")
case 11://录播
printLog("跳转录播")
case 0://0 不需要跳转
printLog("0 不需要跳转")
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment