0
ios에서 생방송/스트리밍 비디오를 재생하고 싶습니다. AsyncDisplayKit을 사용하려고하는데 비디오가 재생되지 않습니다. 이것에 대한 라이브러리가 있습니까?라이브 - 뉴스 - 신속한 재생 3
DispatchQueue.global(qos: DispatchQoS.QoSClass.background).async(execute: {
if self.mainNode == nil {
self.mainNode = ASDisplayNode()
self.videoNode = ASVideoNode()
self.videoNode!.frame = CGRect(x: 0.0, y: 0.0, width: self.bounds.width, height: self.bounds.height)
self.videoNode!.gravity = AVLayerVideoGravityResizeAspectFill
self.videoNode!.shouldAutoplay = true
self.videoNode!.shouldAutorepeat = false
self.videoNode!.muted = false
self.videoNode.delegate = self
self.videoNode.isUserInteractionEnabled = true
self.videoNode!.placeholderEnabled = true
DispatchQueue.main.async(execute: {
self.mainNode!.addSubnode(self.videoNode!)
self.addSubview(self.mainNode!.view)
})
}
self.videoNode?.asset = AVAsset(url: self.url)
DispatchQueue.main.async(execute: {
self.videoNode?.placeholderImage()
})
})
https://bmplayer-a.akamaihd.net/shareable/embedssl.html?dc=cp24_web&cid=982467&col=379&w=960&h=540&pl=0&plh=0&adSite = ctv.cp24 & adZone = 기본 & omniAcct = ctvgmtvecp24desktop, ctvgmtvecp24globalsuite & 섹션 = CP24 & 사이트 = cp24 & shareUrl = http : //www.cp24.com/&v7=home&v8=&v9=&v10= –