Skip to content

ofAVFoundationPlayer slow setPosition #4538

@i-n-g-o

Description

@i-n-g-o

calling setPosition() on ofAVFoundationPlayer is slow.
this is due to synchron disposal of resources (AVAssetReader).

disposing AVAssetReader on a backgroundThread (dispatch_async) would solve that issue, but has problems when called too quickly after each other. (in my case updating the position every 100ms works, but leaks memory (??!!) when calling every 50ms)

this needs further investigation.

fast-seek (async disposal) can be found in this branch:
https://github.com/i-n-g-o/openFrameworks/tree/ofAVFoundationPlayer_fast_seek

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions