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

Gapless playback? #9

Open
dts opened this issue Feb 3, 2015 · 2 comments
Open

Gapless playback? #9

dts opened this issue Feb 3, 2015 · 2 comments

Comments

@dts
Copy link

dts commented Feb 3, 2015

First off - this is a great resource. This plugin is the easiest way I was able find to be able to control the lockscreen and interact well that way. I'm having a few issues, however. First of all, there is a sizeable gap between when one track ends and the next one beginning. Buffering the track once the other track is over is an unfortunate necessity. I see two ways of managing this:

  1. Expose "prebuffering" interface to the JS, then the JS is in charge of queuing up the next media object to be used. The call could be as simple as:
  window.audioplayer.preparefile(success,failure,{ ios : "url" });

This would just create a media object and tell it to get ready, so that when it comes time to play it, things are quick.

  1. Expose the "playlist" interface to JS.
@bkammin
Copy link
Contributor

bkammin commented Feb 6, 2015

Thanks for the suggestion -- I have this on my list of future enhancements.

On Mon, Feb 2, 2015 at 10:42 PM, Daniel Staudigel [email protected]
wrote:

First off - this is a great resource. This plugin is the easiest way I was
able find to be able to control the lockscreen and interact well that way.
I'm having a few issues, however. First of all, there is a sizeable gap
between when one track ends and the next one beginning. Buffering the track
once the other track is over is an unfortunate necessity. I see two ways of
managing this:

  1. Expose "prebuffering" interface to the JS, then the JS is in charge of
    queuing up the next media object to be used. The call could be as simple as:

window.audioplayer.preparefile(success,failure,{ ios : "url" });

This would just create a media object and tell it to get ready,

  1. Expose the "playlist" interface to JS.


Reply to this email directly or view it on GitHub
#9.

@etiennea
Copy link

I would also be very interested in both these things for ios!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants