Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift 遇到了问题 #6

Open
sanhou opened this issue Oct 27, 2022 · 1 comment
Open

swift 遇到了问题 #6

sanhou opened this issue Oct 27, 2022 · 1 comment

Comments

@sanhou
Copy link

sanhou commented Oct 27, 2022

    let documentsDir = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last
     qnPlayer = QPlayerView.init(frame: CGRect(x: 0, y: 0, width: videoView.width, height: videoView.height), appVersion: "", localStorageDir: documentsDir!, logLevel: .LOG_VERBOSE)
    self.videoView.addSubview(qnPlayer!)
    qnPlayer!.controlHandler.forceAuthenticationFromNetwork()
    let qMediaModel = QMediaModel.init(false)
    qMediaModel.addStreamElements("", urlType: QPlayerURLType.QURL_TYPE_NONE, url: "http://demo-videos.qnsdk.com/qiniu-720p.mp4", quality: 720, isSelected: true, backupUrl: "", referer: "", renderType: QPlayerRenderType.QPLAYER_RENDER_TYPE_PLANE )

// qMediaModel.isLive = false
self.qnPlayer!.controlHandler.playMediaModel(pmediaModel: qMediaModel, startPos: 0)

代码是这样写的,videoView一直没有反应,看不太懂oc代码,望大佬指点下

@Mengwangchao
Copy link
Contributor

你好,鉴权成功了么?bundleID 是否获得了基础播放的权利

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants