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

How to read live streams? #610

Open
4 tasks done
willemmulder opened this issue Feb 29, 2024 · 2 comments
Open
4 tasks done

How to read live streams? #610

willemmulder opened this issue Feb 29, 2024 · 2 comments
Labels
question Further information is requested

Comments

@willemmulder
Copy link

Question

I want to read the audio of a live stream. So what I currently do is

const data = await youtube.getBasicInfo(videoId);
const format = data.chooseFormat({ type: 'audio', quality: 'best' });
const url = format?.decipher(youtube.session.player);

Then fetch that data (which is a chunk of 4 seconds of audio) and repeat the process every so many seconds.

It feels quite cumbersome haha. Is there a better way?

Thanks!

Other details

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@willemmulder willemmulder added the question Further information is requested label Feb 29, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Apr 30, 2024
@willemmulder
Copy link
Author

Please keep it open. And would be nice to not auto-close issues when there has not been a follow-up from the authors yet.

@github-actions github-actions bot removed the Stale label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant