Results 170 comments of kintan

Is AVSampleBufferDisplayLayer the layer? What player did you use to play it. I used vlc, which is the same as ksplayer

This can be done only if ffmpeg supports Dolby Vision dual video layer

you can edit BuildXCFramework.swift add ``` "--enable-libsmbclient" "--enable-protocol=libsmbclient" ``` And run ```bash swift run BuildFFmpeg enable-openssl ``` you can reference the libsrt in the BuildXCFramework.swift

Thank you for your suggestion. There is indeed a lot of room for optimization. I am the only one who is currently maintaining this project, so it is relatively slow...

@eximpression I optimized it and used ringbuffer. Then synchronous decoding is also supported. You can also help with optimization

@StarPlayrX Can you provide a link to that video

now KSPlayer is support SwiftUI. you can look KSVideoPlayer.swift

Do you have this problem with other players?

you can set formatContextOptions. for example formatContextOptions["reconnect"] = 1 ``` { "reconnect", "auto reconnect after disconnect before EOF", OFFSET(reconnect), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, D }, {...

最新的代码里面我加了 formatContextOptions["reconnect"] = 1 // formatContextOptions["reconnect_at_eof"] = 1 formatContextOptions["reconnect_streamed"] = 1 formatContextOptions["reconnect_on_network_error"] = 1 你可以试下这样行不行