openframeworks / openframeworks/openFrameworks
Inconsistencies between various (GStreamer/AVFoundation) video player implementations
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I've just cross compiled an application which is repeatedly loading videos. There were some smaller differences which caused some troubles for me. I'm not saying one implementation is right, the other one is wrong. But to know that all behave the same would be supercool.
For example:
- Play Flag:
setPaused(true)sets theisPlaying()flag tofalsein AVFoundationPlayer, but does not touch theisPlaying()flag in the gStreamer implementation. - Rewind: after
loadAsync(), thecurrentFrame()is set to 0 in AVFoundation, but left untouched in the gStreamer implementation (i.e. where the clip before ended). Probably also forload(), but I didn't check.
Missing Callbacks:
With all players more and more loading clips async, I guess a simple event/callback system will be necessary. The only option right now is to check in the main loop if a clip is loaded or playing or paused, which is a little bit annoying and sometimes quite faulty.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the AVFoundationPlayer and GStreamer implementations around setPaused(true), isPlaying(), loadAsync(), load(), and currentFrame(). Define consistent playback and rewind behavior, then determine the scope of the proposed event/callback system; done means the players expose matching state behavior and a clear notification mechanism for loading, playing, and pausing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100