-
Notifications
You must be signed in to change notification settings - Fork 45
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
Playback example #21
Comments
I'll think about the native playback method, but you're right about the Wiki. I'll try make something this week. 👍 Thanks friend! |
Improved example with wav to avoid the pop at the beginning. api.getStreamURL({id:22560696}, function (data) {
var reader = new wav.Reader();
reader.on('format', function (format) {
reader.pipe(new Speaker(format));
});
var url = quality === 'lossless' ? data.url : 'rtmp://'+data.url,
ffmpeg(url).format('wav').pipe(reader, {end:true}).on('finish', function () {
console.log('track finished');
});
}); |
Is it still working example? I can play any wav song via http(s) with this example, but not the tidal url what this plugin provide.
Don't we need to do anything with the encryptionKey? |
AAC / High quality version works well via rtmp. But lossless/high-res doesn't with FLAC. I downloaded the FLAC file and can't do anything with that. Any idea? |
Token was wrong. With some token the file will be encrypted. Check some possibilities here. https://github.com/arnesongit/plugin.audio.tidal2/blob/d633fc9b2d25acf728111460c796e405aece522a/resources/lib/koditidal.py#L733 |
Feature request for either built-in playback support, or a Wiki with examples.
Here's one that handles both lossless and high quality with fluent-ffmpeg and speaker:
The text was updated successfully, but these errors were encountered: