Comments (3)
Sorry to hear that. Most of my testing has been with audio.
Have you tried with different formats? Also, could you send an example video ID which reproduces the issue?
from swiftyoutubeextractor.
Below are few videos i tried. but all streams are really reallys slow.
dBDkYofMUs4
69lO08ar-mI
b_l1IP_6psY
I use below code for URL extraction to no avail.
Task {
let formats = try await extractor.formats(for: "dBDkYofMUs4")
let mp4Formats = formats.filter({$0.fileExtension == "mp4"})
if let sdFormat = mp4Formats.first(where: {$0.qualityDescription == "480p"}){
print(sdFormat.url.absoluteString)
//load this url in AVPlayer.
}
}
}
from swiftyoutubeextractor.
I think the issue is likely because the AVPlayer has to download the whole .mp4 file before it starts playing.
I haven't yet implemented HLS support (for .m3u8 files) but I will work on that. I think that should fix your issue as the video can be played back live, rather than having to download the whole thing first.
from swiftyoutubeextractor.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftyoutubeextractor.