kingslay / KSPlayer

A video player for iOS、macOS、tvOS、visionOS , based on AVPlayer and FFmpeg, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, SwiftUI, support subtitles.
https://apps.apple.com/app/tracyplayer/id6450770064
GNU General Public License v3.0
984 stars 197 forks source link

请求如何讲视频缓存在本地呢? #652

Closed birdmichael closed 10 months ago

kingslay commented 10 months ago

// ffmpeg only cache http public var cache = false

可以把这个改成true

birdmichael commented 10 months ago

我试过 但是没有缓存上呢? 还有是只能cache http?

kingslay commented 10 months ago

只支持缓存http。这个是ffmpeg提供的能力。

birdmichael commented 10 months ago

那我理解的这个其实更像预加载?

kingslay commented 10 months ago

就是下次播放同一个url的话,可以用缓存。需要有播放过了。才有缓存。跟预加载还不一样。

birdmichael commented 10 months ago
image

我改成http直接崩溃了 地址: http://miobox-dev-1318984022.cos.ap-nanjing.myqcloud.com/scene/%E4%B8%8B%E9%9B%A8%E6%A0%91%E6%9E%97/video.mp4

kingslay commented 10 months ago

这个崩溃好奇怪。我本地也是可以复现出来。