-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop specific range #2
Comments
Hmm it is certainly possible. Could you elaborate on a possible use-case for this? |
It may not be a common usage, but i have a list of online video that must played in a loop (from 0 to 10), i can load the video in stream and when the playback hit the time just seek to zero and play it again, but it is a huge waste of resource, suppose the video is 300 sec and i just want the first 10 sec, but loading the stream will load all 300 sec. so i'm seeking for doing this in efficient way, any help or suggestion would be appreciated. tnx in advance. |
I see what you mean now, I'm going to look into the best possible way to implement this. If you come up with something in the next few days, let me know. Also, if it seems like I haven't added much to this library in the past couple of months, it is because I have been working on a Swift version. |
based on this answer i have created my own looper that do exactly what i want (loop trough 6 second of video without loading all stream data), but there is 2 problem, first the video has no sound :) and second the preload functionality is missing, any idea to solve this would be appreciated. `// import AVFoundation class RangeLooper: NSObject {
} |
The complete code with audio on and preload functionality, may be you can use it in your great library `// // import AVFoundation enum PlaybackError: Error { protocol RangeLooperDelegate: class { class RangeLooper: NSObject {
} extension String: Error { } |
is it possible to loop specific video range eg. 0...10 second ?
The text was updated successfully, but these errors were encountered: