Skip to content
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

Take "seekability" of current source into account. #872

Open
adamcik opened this issue Oct 13, 2014 · 1 comment
Open

Take "seekability" of current source into account. #872

adamcik opened this issue Oct 13, 2014 · 1 comment
Labels
A-audio Area: Audio layer

Comments

@adamcik
Copy link
Member

adamcik commented Oct 13, 2014

In addition to handling live sources, we should probably also be checking if the current source i seekable and using this in core and exposing it to frontends. Step one should simply be to start emitting this info with the stream changed events.

@adamcik adamcik added the A-audio Area: Audio layer label Oct 13, 2014
@adamcik adamcik added this to the v0.20 - Audio cleanup milestone Oct 13, 2014
@adamcik
Copy link
Member Author

adamcik commented Oct 13, 2014

Following code is probably what we want to use to solve both this issue and #859

In [30]: q = gst.query_new_buffering(gst.FORMAT_TIME)

In [31]: src.query(q)
Out[31]: True

In [32]: q.parse_buffering_stats()
Out[32]: (<enum GST_BUFFERING_STREAM of type GstBufferingMode>, -1, -1, 0L)

@jodal jodal modified the milestones: v0.20 - Audio cleanup part 1, v0.21 - Audio cleanup part 2 Nov 7, 2014
adamcik added a commit to adamcik/mopidy that referenced this issue Mar 12, 2015
Return type of scanner changed to a named tuple with (uri, tags, duration,
seekable). This should help with mopidy#872 and the related "live" issues.

Tests, local scan and stream metadata lookup have been updated to account for
the changes.
@jodal jodal removed this from the x1 - Audio cleanup milestone Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-audio Area: Audio layer
Projects
None yet
Development

No branches or pull requests

2 participants