AVURLAsset refuses to load video

后端 未结 3 885
情歌与酒
情歌与酒 2020-11-30 04:47

I\'m trying to load a video file into my iPad app as an AVURLAsset, using the asynchronous-loading stuff to wait for it to be ready. Problem is, when I run it,

3条回答
  •  旧巷少年郎
    2020-11-30 04:56

    If you are using -[NSURL fileURLWithPath:] to create the URL and still get the same error.

    Check the AVURLAssetReferenceRestrictionsKey, Your local m3u8 may failed to play if it contains remote resource.

    Set the value to @(AVAssetReferenceRestrictionForbidNone) should solve the problem.

提交回复
热议问题