Skip to content

如何播放本地文件?

changsanjiang edited this page Jan 5, 2021 · 1 revision
    NSString *filePath = nil;
    NSURL *fileURL = [NSURL fileURLWithPath:filePath];
    SJVideoPlayerURLAsset *asset = [SJVideoPlayerURLAsset.alloc initWithURL:fileURL];
    _player.URLAsset = asset;