-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
#if !os(macOS)
guard
let mimeType = response.mimeType,
mimeType.contains("video/")
else { completionHandler(.cancel); return }
#endif
delegate?.handler(self, didReceive: response)
completionHandler(.allow)
}
我的视频返回的是application/octet-stream,在iOS因为这里判断了mimeType.contains("video/")导致不能播放。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels