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

Some video sources returned from Open API are not playable on iOS/iPhone #5

Open
artshevtsov opened this issue Dec 14, 2023 · 0 comments

Comments

@artshevtsov
Copy link

artshevtsov commented Dec 14, 2023

Some age restricted videos contain only 6 videoStreams with content type video/mp4. Videos from videoStream urls are playable on Desktop and Android phones, but not on iOS iPhone devices. Video fails to play. If I open any mp4 source link on desktop, it plays normally.
Example video https://piped.video/watch?v=bonhPyJThiI returns error 3016 at public frontend from shaka player in any iOS browser (Chrome Mobile, Safari):

ERROR shaka.util.Error {
 "severity": 2,
 "category": 3,
 "code": 3016,
 "data": [
   4,
   null,
   ""
 ],
 "handled": false,
 "message": "Shaka Error 3016",
 "stack": "I@https://piped.video/assets/shaka-player.ui-hoNaC-8G.js:1:24362\nNc@https://piped.video/assets/shaka-player.ui-hoNaC-8G.js:1:253227\n@https://piped.video/assets/shaka-player.ui-hoNaC-8G.js:1:221294\nr@https://piped.video/assets/shaka-player.ui-hoNaC-8G.js:1:81872"
}

Is there any way to solve that issue?

iOS version: 16.6
Google Chrome version: 119.0.6045.109
Safari version: Safari 16

videoStreams that fail to play:

array (
  0 => 
  array (
    'url' => 'https://piproxy.ggtyler.dev/videoplayback?aitags=134%2C136%2C160%2C298&c=TVHTML5_SIMPLY_EMBEDDED_PLAYER&clen=18309061&cpn=Ph5qVBViJt4bQP0O&dur=80.986&ei=6H17ZfSzAsen_9EPzriY-AY&expire=1702613576&fexp=24007246&fvip=2&gir=yes&host=rr2---sn-ntqe6nez.googlevideo.com&id=o-AJffHI1tYzKqDPOGixIwhzQL9yZUIJrkDgVOA_DCBHf0&initcwndbps=2245000&ip=2a0b%3A64c0%3A5%3A98ad%3Ae0ee%3Aa1dc%3Ab73%3A14b1&itag=136&keepalive=yes&lmt=1696311836556797&lsig=AAO5W4owRQIhAOD53UuEB6vD4-hhA34yuF9VUaJflQIWktBC5HaOLoI4AiBxyrxqDSfb-9IIk_YX98rxMomY-7od-vaAGNNQLxO_yQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=8L&mime=video%2Fmp4&mm=31%2C26&mn=sn-ntqe6nez%2Csn-npoeenle&ms=au%2Conr&mt=1702591545&mv=m&mvi=2&n=r69X2dw3QFOreA&ns=Od8GLi4CJDDf6VdVAfso7GoQ&pl=48&requiressl=yes&sig=AJfQdSswRQIhAJT_SwhrzARC4C5IWNCDkT4Inl5oJffaUC0YOevq27HpAiBGlwFGuqFX6iE19FuoL3UHJlKObOESAvuMF9lg59xJ3A%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&svpuc=1&txp=6219224&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D',
    'format' => 'MPEG_4',
    'quality' => '720p',
    'mimeType' => 'video/mp4',
    'codec' => 'avc1.64001f',
    'audioTrackId' => NULL,
    'audioTrackName' => NULL,
    'audioTrackType' => NULL,
    'audioTrackLocale' => NULL,
    'videoOnly' => true,
    'itag' => 136,
    'bitrate' => 2139098,
    'initStart' => 0,
    'initEnd' => 738,
    'indexStart' => 739,
    'indexEnd' => 962,
    'width' => 720,
    'height' => 1280,
    'fps' => 30,
    'contentLength' => 18309061,
  ),
  1 => 
  array (
    'url' => 'https://piproxy.ggtyler.dev/videoplayback?aitags=134%2C136%2C160%2C298&c=TVHTML5_SIMPLY_EMBEDDED_PLAYER&clen=22085247&cpn=Ph5qVBViJt4bQP0O&dur=80.970&ei=6H17ZfSzAsen_9EPzriY-AY&expire=1702613576&fexp=24007246&fvip=2&gir=yes&host=rr2---sn-ntqe6nez.googlevideo.com&id=o-AJffHI1tYzKqDPOGixIwhzQL9yZUIJrkDgVOA_DCBHf0&initcwndbps=2245000&ip=2a0b%3A64c0%3A5%3A98ad%3Ae0ee%3Aa1dc%3Ab73%3A14b1&itag=298&keepalive=yes&lmt=1696311834739703&lsig=AAO5W4owRQIhAOD53UuEB6vD4-hhA34yuF9VUaJflQIWktBC5HaOLoI4AiBxyrxqDSfb-9IIk_YX98rxMomY-7od-vaAGNNQLxO_yQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=8L&mime=video%2Fmp4&mm=31%2C26&mn=sn-ntqe6nez%2Csn-npoeenle&ms=au%2Conr&mt=1702591545&mv=m&mvi=2&n=r69X2dw3QFOreA&ns=Od8GLi4CJDDf6VdVAfso7GoQ&pl=48&requiressl=yes&sig=AJfQdSswRQIhAJ0XVicKan8mkdOi-n-TYzxpj0NI8gaXDmwIBS9IA0uJAiBIg7tie7mapjzzhLF2V1OKdNRsenf2tftRAZPWXFdUTA%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&svpuc=1&txp=6219224&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D',
    'format' => 'MPEG_4',
    'quality' => '720p60',
    'mimeType' => 'video/mp4',
    'codec' => 'avc1.640020',
    'audioTrackId' => NULL,
    'audioTrackName' => NULL,
    'audioTrackType' => NULL,
    'audioTrackLocale' => NULL,
    'videoOnly' => true,
    'itag' => 298,
    'bitrate' => 2707573,
    'initStart' => 0,
    'initEnd' => 738,
    'indexStart' => 739,
    'indexEnd' => 962,
    'width' => 720,
    'height' => 1280,
    'fps' => 59,
    'contentLength' => 22085247,
  ),
  2 => 
  array (
    'url' => 'https://piproxy.ggtyler.dev/videoplayback?aitags=134%2C136%2C160%2C298&c=TVHTML5_SIMPLY_EMBEDDED_PLAYER&clen=4841665&cpn=Ph5qVBViJt4bQP0O&dur=80.986&ei=6H17ZfSzAsen_9EPzriY-AY&expire=1702613576&fexp=24007246&fvip=2&gir=yes&host=rr2---sn-ntqe6nez.googlevideo.com&id=o-AJffHI1tYzKqDPOGixIwhzQL9yZUIJrkDgVOA_DCBHf0&initcwndbps=2245000&ip=2a0b%3A64c0%3A5%3A98ad%3Ae0ee%3Aa1dc%3Ab73%3A14b1&itag=134&keepalive=yes&lmt=1696311834551290&lsig=AAO5W4owRQIhAOD53UuEB6vD4-hhA34yuF9VUaJflQIWktBC5HaOLoI4AiBxyrxqDSfb-9IIk_YX98rxMomY-7od-vaAGNNQLxO_yQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=8L&mime=video%2Fmp4&mm=31%2C26&mn=sn-ntqe6nez%2Csn-npoeenle&ms=au%2Conr&mt=1702591545&mv=m&mvi=2&n=r69X2dw3QFOreA&ns=Od8GLi4CJDDf6VdVAfso7GoQ&pl=48&requiressl=yes&sig=AJfQdSswRQIgVcSWsUKARm3188fXlkRtg9dwFMrvyBRziu8ilMsv6zgCIQC-D3SFVOEofb7trACXqS7xo_Mip6at2q-4MCMoJuuVjg%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&svpuc=1&txp=6219224&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D',
    'format' => 'MPEG_4',
    'quality' => '360p',
    'mimeType' => 'video/mp4',
    'codec' => 'avc1.4d401e',
    'audioTrackId' => NULL,
    'audioTrackName' => NULL,
    'audioTrackType' => NULL,
    'audioTrackLocale' => NULL,
    'videoOnly' => true,
    'itag' => 134,
    'bitrate' => 565333,
    'initStart' => 0,
    'initEnd' => 739,
    'indexStart' => 740,
    'indexEnd' => 963,
    'width' => 360,
    'height' => 640,
    'fps' => 30,
    'contentLength' => 4841665,
  ),
  3 => 
  array (
    'url' => 'https://piproxy.ggtyler.dev/videoplayback?aitags=134%2C136%2C160%2C298&c=TVHTML5_SIMPLY_EMBEDDED_PLAYER&clen=1008289&cpn=Ph5qVBViJt4bQP0O&dur=80.986&ei=6H17ZfSzAsen_9EPzriY-AY&expire=1702613576&fexp=24007246&fvip=2&gir=yes&host=rr2---sn-ntqe6nez.googlevideo.com&id=o-AJffHI1tYzKqDPOGixIwhzQL9yZUIJrkDgVOA_DCBHf0&initcwndbps=2245000&ip=2a0b%3A64c0%3A5%3A98ad%3Ae0ee%3Aa1dc%3Ab73%3A14b1&itag=160&keepalive=yes&lmt=1696311839847376&lsig=AAO5W4owRQIhAOD53UuEB6vD4-hhA34yuF9VUaJflQIWktBC5HaOLoI4AiBxyrxqDSfb-9IIk_YX98rxMomY-7od-vaAGNNQLxO_yQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=8L&mime=video%2Fmp4&mm=31%2C26&mn=sn-ntqe6nez%2Csn-npoeenle&ms=au%2Conr&mt=1702591545&mv=m&mvi=2&n=r69X2dw3QFOreA&ns=Od8GLi4CJDDf6VdVAfso7GoQ&pl=48&requiressl=yes&sig=AJfQdSswRQIhAJKlnn-2NxdxwV9hbA86HJZZwXqdKykn3gefyJKqNa5aAiBmyKd-n-bkIaVutfYhe7RhIp6BHGAKd4XmMZOsXP8iOA%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&svpuc=1&txp=6219224&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D',
    'format' => 'MPEG_4',
    'quality' => '144p',
    'mimeType' => 'video/mp4',
    'codec' => 'avc1.4d400c',
    'audioTrackId' => NULL,
    'audioTrackName' => NULL,
    'audioTrackType' => NULL,
    'audioTrackLocale' => NULL,
    'videoOnly' => true,
    'itag' => 160,
    'bitrate' => 115603,
    'initStart' => 0,
    'initEnd' => 737,
    'indexStart' => 738,
    'indexEnd' => 961,
    'width' => 144,
    'height' => 256,
    'fps' => 30,
    'contentLength' => 1008289,
  ),
  4 => 
  array (
    'url' => 'https://piproxy.ggtyler.dev/videoplayback?c=TVHTML5_SIMPLY_EMBEDDED_PLAYER&clen=2280048&cpn=Ph5qVBViJt4bQP0O&dur=81.037&ei=6H17ZfSzAsen_9EPzriY-AY&expire=1702613576&fexp=24007246&fvip=2&gir=yes&host=rr2---sn-ntqe6nez.googlevideo.com&id=o-AJffHI1tYzKqDPOGixIwhzQL9yZUIJrkDgVOA_DCBHf0&initcwndbps=2245000&ip=2a0b%3A64c0%3A5%3A98ad%3Ae0ee%3Aa1dc%3Ab73%3A14b1&itag=18&lmt=1696311759003310&lsig=AAO5W4owRQIhAOD53UuEB6vD4-hhA34yuF9VUaJflQIWktBC5HaOLoI4AiBxyrxqDSfb-9IIk_YX98rxMomY-7od-vaAGNNQLxO_yQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=8L&mime=video%2Fmp4&mm=31%2C26&mn=sn-ntqe6nez%2Csn-npoeenle&ms=au%2Conr&mt=1702591545&mv=m&mvi=2&n=lDnyTcKMCXRzKA&ns=rTcgGEc119Voy8mzR0q4ZWAQ&pl=48&ratebypass=yes&requiressl=yes&sig=AJfQdSswRQIhAOTzIywOGLTHFysTGcTB-FI18X1YRT-NyppT9ZWinHz9AiAXR3LL1FR6nbY3KdoQUbTggDxLjq1ynjzu1MeeR52e6w%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&svpuc=1&txp=6209224&vprv=1&xpc=EgVo2aDSNQ%3D%3D',
    'format' => 'MPEG_4',
    'quality' => '240p',
    'mimeType' => 'video/mp4',
    'codec' => NULL,
    'audioTrackId' => NULL,
    'audioTrackName' => NULL,
    'audioTrackType' => NULL,
    'audioTrackLocale' => NULL,
    'videoOnly' => false,
    'itag' => 18,
    'bitrate' => 0,
    'initStart' => 0,
    'initEnd' => 0,
    'indexStart' => 0,
    'indexEnd' => 0,
    'width' => 0,
    'height' => 0,
    'fps' => 0,
    'contentLength' => 2280048,
  ),
  5 => 
  array (
    'url' => 'https://piproxy.ggtyler.dev/videoplayback?c=TVHTML5_SIMPLY_EMBEDDED_PLAYER&cnr=14&cpn=Ph5qVBViJt4bQP0O&dur=81.037&ei=6H17ZfSzAsen_9EPzriY-AY&expire=1702613576&fexp=24007246&fvip=2&host=rr2---sn-ntqe6nez.googlevideo.com&id=o-AJffHI1tYzKqDPOGixIwhzQL9yZUIJrkDgVOA_DCBHf0&initcwndbps=2245000&ip=2a0b%3A64c0%3A5%3A98ad%3Ae0ee%3Aa1dc%3Ab73%3A14b1&itag=22&lmt=1696311887724731&lsig=AAO5W4owRQIhAOD53UuEB6vD4-hhA34yuF9VUaJflQIWktBC5HaOLoI4AiBxyrxqDSfb-9IIk_YX98rxMomY-7od-vaAGNNQLxO_yQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=8L&mime=video%2Fmp4&mm=31%2C26&mn=sn-ntqe6nez%2Csn-npoeenle&ms=au%2Conr&mt=1702591545&mv=m&mvi=2&n=lDnyTcKMCXRzKA&ns=rTcgGEc119Voy8mzR0q4ZWAQ&pl=48&ratebypass=yes&requiressl=yes&sig=AJfQdSswRAIgES3mMySZZWAF-EvspOEpBe7dQmgKyVsyJXQ-ld-ushECIAnN1879pFPq_pdYdmxvC30pQO8pOGWzqIfODUifKhPa&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&svpuc=1&txp=6218224&vprv=1&xpc=EgVo2aDSNQ%3D%3D',
    'format' => 'MPEG_4',
    'quality' => '720p',
    'mimeType' => 'video/mp4',
    'codec' => NULL,
    'audioTrackId' => NULL,
    'audioTrackName' => NULL,
    'audioTrackType' => NULL,
    'audioTrackLocale' => NULL,
    'videoOnly' => false,
    'itag' => 22,
    'bitrate' => 0,
    'initStart' => 0,
    'initEnd' => 0,
    'indexStart' => 0,
    'indexEnd' => 0,
    'width' => 0,
    'height' => 0,
    'fps' => 0,
    'contentLength' => -1,
  ),
)
@artshevtsov artshevtsov changed the title Some video sources returned from open api are not playable on iOS/iPhone Some video sources returned from Open API are not playable on iOS/iPhone Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant