the first one plays but when I supply the second url, I get Platform Exception in both iOS and android.
Specifically Platform Exception when in ios and in android the console shows error as detailed below:
E/ExoPlayerImplInternal(21409): com.google.android.exoplayer2.ExoPlaybackException: Source error E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616) E/ExoPlayerImplInternal(21409): at android.os.Handler.dispatchMessage(Handler.java:102) E/ExoPlayerImplInternal(21409): at android.os.Looper.loopOnce(Looper.java:211) E/ExoPlayerImplInternal(21409): at android.os.Looper.loop(Looper.java:300) E/ExoPlayerImplInternal(21409): at android.os.HandlerThread.run(HandlerThread.java:67) E/ExoPlayerImplInternal(21409): Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403 E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:413) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1005) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412) E/ExoPlayerImplInternal(21409): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) E/ExoPlayerImplInternal(21409): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
I tried debugging going in the package itself, to find out that it uses YoutubeExplode to get Youtube video quality urls, so at the end the player tries playing:
There is something weird going on with the player. I have 2 urls: https://youtu.be/XFk6GnQJGPE and https://youtu.be/1Y3Wp7rYXVM
the first one plays but when I supply the second url, I get Platform Exception in both iOS and android. Specifically Platform Exception when in ios and in android the console shows error as detailed below:
E/ExoPlayerImplInternal(21409): com.google.android.exoplayer2.ExoPlaybackException: Source error E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616) E/ExoPlayerImplInternal(21409): at android.os.Handler.dispatchMessage(Handler.java:102) E/ExoPlayerImplInternal(21409): at android.os.Looper.loopOnce(Looper.java:211) E/ExoPlayerImplInternal(21409): at android.os.Looper.loop(Looper.java:300) E/ExoPlayerImplInternal(21409): at android.os.HandlerThread.run(HandlerThread.java:67) E/ExoPlayerImplInternal(21409): Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403 E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:413) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1005) E/ExoPlayerImplInternal(21409): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412) E/ExoPlayerImplInternal(21409): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) E/ExoPlayerImplInternal(21409): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
I tried debugging going in the package itself, to find out that it uses
YoutubeExplode
to get Youtube video quality urls, so at the end the player tries playing:for first video:
[https://rr5---sn-ntqe6nel.googlevideo.com/videoplayback?expire=1699704932&ei=BBxPZY3wNbKO1d8P-vSrkAs&ip=202.7.236.41&id=o-AKe1_Jo8XxLwseQhdLbzRO20n_8nMs0XMpJUNIWAPdNO&itag=17&source=youtube&requiressl=yes&mh=88&mm=31%2C29&mn=sn-ntqe6nel%2Csn-ntq7yned&ms=au%2Crdu&mv=m&mvi=5&pl=24&initcwndbps=3026250&spc=UWF9f9mOC4WP8D4-e14-O5XzTRuCIPe9UVKUJou6iw&vprv=1&svpuc=1&mime=video%2F3gpp&gir=yes&clen=305538&dur=33.994&lmt=1683000615775363&mt=1699682941&fvip=4&fexp=24007246&beids=24350018&c=ANDROID&txp=6218224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ANLwegAwRQIhAJSYSwwjZjz9ruUFE1ETXXuDmGg4w2vY9Zz2EGOmJ2yNAiA5xYOY2YuNnJTfWRqum4cOk680cx7wly9ZhqthkoBgRw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRgIhANpunwHMbnZGMghW3RArMSLRFG1j5msasYpIIRRcbWx_AiEAgIaD2eYcmbaAaVvEzRYMiRrPRZ8MQV2RaWng9CDybaQ%3D](Playable first video url)
for second video: [https://rr5---sn-ntq7yned.googlevideo.com/videoplayback?expire=1699705165&ei=7RxPZaagBIGw1d8PzuePgAU&ip=202.7.236.41&id=o-AJRwjZIv4jXrgWqoJJ33rqy-uJU7pLbro7zQQEJZD7Ds&itag=17&source=youtube&requiressl=yes&mh=2E&mm=31%2C29&mn=sn-ntq7yned%2Csn-ntqe6n7r&ms=au%2Crdu&mv=m&mvi=5&pl=24&initcwndbps=2936250&spc=UWF9f0QpngZl_w3V_qEv8M2d3lvmIYWazRAJrHk2Ug&vprv=1&svpuc=1&mime=video%2F3gpp&gir=yes&clen=1835281&dur=189.892&lmt=1579906402573877&mt=1699683180&fvip=4&fexp=24007246&beids=24350018&c=ANDROID&txp=6211222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ANLwegAwRAIgf-HydpUpwSwyv3c_Z9YjUhtdIuyJnt2WluEIC6gsU08CIDDODQbtJR-Jb4JHmlz4TP7-jF6nW6AyQO4s8JnDTU1A&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AM8Gb2swRAIgA9L0eoNf7NkcB08xBnOwCyw04Vpbnxzq-b63uZ_8PVACIEVomShdcCpmEQC41WuPFjGRT9spxL8VB23Ebmo-LVqc](Not playing first video url)
the second url gives me error "Access to rr5---sn-ntq7yned.googlevideo.com was denied"