| | |
| | | // |
| | | |
| | | import UIKit |
| | | import JQTools |
| | | |
| | | class CourseDetialVideoVC: BaseVC { |
| | | |
| | |
| | | let item = items[selectIndex.row] |
| | | |
| | | guard secondLook > 0 else {return} |
| | | |
| | | Services.watchClouse(chapterId: item.id, isOver: isOver, secondLook: secondLook).subscribe(onNext: { _ in |
| | | |
| | | }).disposed(by: disposeBag) |
| | |
| | | super.viewDidLoad() |
| | | title = "课程详情" |
| | | |
| | | videoView = VideoView(url: items[selectIndex.row].videoUrl,delegate: self) |
| | | videoView = VideoView(url: items[selectIndex.row].videoUrl.jq_urlEncoded(),delegate: self) |
| | | videoView?.player.play() |
| | | view_bg_video.addSubview(videoView!) |
| | | videoView!.snp.makeConstraints { make in |