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
980 stars 198 forks source link

OpenSSL not enabled by default #702

Closed elliots closed 9 months ago

elliots commented 9 months ago

I'm trying to add KSPlayer to an existing project (https://github.com/jellyfin/Swiftfin). As it doesn't use cocoapods, i added it as a swift dependency (develop branch)

When trying to play an https url i get "https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled." but i can't work out how to pass enable-openssl to the ffmpeg build.

I have basically no experience with ios dev, so apologies if this is an obvious one, but I couldn't see anything about it.

Thankyou for providing this project, looks like it'll be very useful :)

kingslay commented 9 months ago

默认是有带openssl的 你可以用我的demo试下。应该是你工程有问题

elliots commented 9 months ago

You're right, probably my project.

When I added cocoapod to it, and added the dependency using that (instead of the git url), it worked.