y20k / transistor

Transistor - Simple Radio App for Android
http://y20k.org/transistor/
MIT License
433 stars 121 forks source link

How are MP4/WebM streams handled? [Station] #413

Open kylagit opened 2 years ago

kylagit commented 2 years ago

This is a question not an issue

When you play an MP4/WebM stream, is it just streaming the audio or is it streaming video too and not showing it?

y20k commented 2 years ago

A question in return: Is it possible to add a video stream to Transistor? The app does check streaming URLs if they have a supported format before it lets you add them. If this is possible, can you send me an example link?

As for your question: Transistor basically just hands over a streaming URL to the very popular media playback library ExoPlayer and starts observing the state of the playback to display a user interface. I can have a look into the way ExoPlayer handles a video stream, if I have an example streaming URL to test this with.

kylagit commented 2 years ago

To generate an example url install yt-dlp and use this command yt-dlp --get-url https://www.youtube.com/watch?v=5qap5aO4i9A It will generate a HLS/3mu8 url for the Lofi Girl stream

kylagit commented 2 years ago

It has AAC audio, which Transistor does support

y20k commented 2 years ago

I tried yt-dlpon a Mac. This version does not seem to understand --get-url. I will try that on Linux later ..

kylagit commented 2 years ago

Also try yt-dlp (The new replacement) instead

On Tuesday, 28 June 2022, y20k @.***> wrote:

I tried yt-dlpon a Mac. This version does not seem to understand --get-url. I will try that on Linux later-.

— Reply to this email directly, view it on GitHub https://github.com/y20k/transistor/issues/413#issuecomment-1168607648, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKTCWXQIRVEPEFXUT7C5TB3VRLPYRANCNFSM5X5MTY7A . You are receiving this because you authored the thread.Message ID: @.***>