smedic / Android-YouTube-Background-Player

YouTube background player
Apache License 2.0
157 stars 55 forks source link

Question: Does it stream audio or both? #9

Closed devkhan closed 8 years ago

devkhan commented 8 years ago

Nice project. Does it streams a complete video and plays in the background, OR it only stream audio(if that is possible)?

I'm asking this to save bandwidth.

smedic commented 8 years ago

It streams only audio, because I select only audio streams. Of course, if audio is not available, it will stream audio + video. That is up to YT streams.

Check this pull request: https://github.com/smedic/Android-YouTube-Background-Player/pull/7/commits/2f9e30dcc1be3c847420513b05b6ce474a7dc4d3

I put 1 stream quality, but @arafsheikh added more (141 and 251).

smedic commented 8 years ago

You can track network usage in current implementation and later you can change tags to stream both video & audio. After that, compare it to see the difference.