fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.48k stars 790 forks source link

Streams not playing Apple #549

Closed dayjur closed 4 years ago

dayjur commented 4 years ago

Hi, Can get stream link for videos no issue but only streams with format codes 18,22,37 only play,other just buffer for ever on Apple devices like Mac, Apple tv etc.

fent commented 4 years ago

how are you using this on apple tv?

dayjur commented 4 years ago

I play the stream using Unity and AVPro asset, I try opening the stream returned in safari browser open but does not play seems also with audio stream not play only itag 18,22 and 37 play Seems like apple google blocking certain streams or something over on android for example exo player will play streams right away but on some there was a 30 seocnd delay before playing on media player.

From: fent notifications@github.com Sent: Saturday, January 4, 2020 8:15 PM To: fent/node-ytdl-core node-ytdl-core@noreply.github.com Cc: dayjur richf2000@outlook.com; Author author@noreply.github.com Subject: Re: [fent/node-ytdl-core] Streams not playing Apple (#549)

how are you using this on apple tv?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffent%2Fnode-ytdl-core%2Fissues%2F549%3Femail_source%3Dnotifications%26email_token%3DACRESLKJ4GDXESWSWJZCBG3Q4EYBNA5CNFSM4KCYW7E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDD6GQ%23issuecomment-570834714&data=02%7C01%7C%7Cf378db458da74a1b56c908d7917cb11d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637137837036099746&sdata=JbFMu6Z4unu%2FW5kgdtnt7S74e1nyWQoct%2Bihkz3ClkU%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACRESLJNO6GALDVLZFGUGWDQ4EYBNANCNFSM4KCYW7EQ&data=02%7C01%7C%7Cf378db458da74a1b56c908d7917cb11d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637137837036109751&sdata=m47DDLre2MnFGkq5gAkFdWRlnRGtbKJ8uep%2FOimUu68%3D&reserved=0.

fent commented 4 years ago

sorry I don't understand. are you calling ytdl-core from unity, then giving the url to your browser?

dayjur commented 4 years ago

Correct I call ytdl from Unity, and pass the stream link to AVPro after not playing I copied link to a browser and browser stuck too

From: fent notifications@github.com Sent: Saturday, January 4, 2020 8:44 PM To: fent/node-ytdl-core node-ytdl-core@noreply.github.com Cc: dayjur richf2000@outlook.com; Author author@noreply.github.com Subject: Re: [fent/node-ytdl-core] Streams not playing Apple (#549)

sorry I don't understand. are you calling ytdl-core from unity, then giving the url to your browser?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffent%2Fnode-ytdl-core%2Fissues%2F549%3Femail_source%3Dnotifications%26email_token%3DACRESLLDZOKMXOTRHOTWDK3Q4E3NBA5CNFSM4KCYW7E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDEI6A%23issuecomment-570836088&data=02%7C01%7C%7C98699b053a5745d8085e08d79180b3c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637137854261197480&sdata=IdeSATx2Irx932vxBmOuIkzk9XIGoUor96ktmRNYuNk%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACRESLOMT772XRYRSB4YPDDQ4E3NBANCNFSM4KCYW7EQ&data=02%7C01%7C%7C98699b053a5745d8085e08d79180b3c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637137854261197480&sdata=MS7oRSikOrMD%2BeasZS0EPePaJa3HGm1fKi7XFJxoJyc%3D&reserved=0.

dayjur commented 4 years ago

U can prob replicate get a stream link for itag 137 and try playing on mac safari browser

From: fent notifications@github.com Sent: Saturday, January 4, 2020 8:44 PM To: fent/node-ytdl-core node-ytdl-core@noreply.github.com Cc: dayjur richf2000@outlook.com; Author author@noreply.github.com Subject: Re: [fent/node-ytdl-core] Streams not playing Apple (#549)

sorry I don't understand. are you calling ytdl-core from unity, then giving the url to your browser?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffent%2Fnode-ytdl-core%2Fissues%2F549%3Femail_source%3Dnotifications%26email_token%3DACRESLLDZOKMXOTRHOTWDK3Q4E3NBA5CNFSM4KCYW7E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDEI6A%23issuecomment-570836088&data=02%7C01%7C%7C98699b053a5745d8085e08d79180b3c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637137854261197480&sdata=IdeSATx2Irx932vxBmOuIkzk9XIGoUor96ktmRNYuNk%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACRESLOMT772XRYRSB4YPDDQ4E3NBANCNFSM4KCYW7EQ&data=02%7C01%7C%7C98699b053a5745d8085e08d79180b3c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637137854261197480&sdata=MS7oRSikOrMD%2BeasZS0EPePaJa3HGm1fKi7XFJxoJyc%3D&reserved=0.

fent commented 4 years ago

the itag 137 is of DASH format. it may not be supported by appletv, or even directly by your browser. ytdl-core uses m3u8stream to play such formats

dayjur commented 4 years ago

Yes that is the case no apple devices I use will play direct link from 137 have to use non adaptive stream

From: fent notifications@github.com Sent: Friday, January 10, 2020 12:02 PM To: fent/node-ytdl-core node-ytdl-core@noreply.github.com Cc: dayjur richf2000@outlook.com; Author author@noreply.github.com Subject: Re: [fent/node-ytdl-core] Streams not playing Apple (#549)

the itag 137 is of DASH formathttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FDynamic_Adaptive_Streaming_over_HTTP&data=02%7C01%7C%7C4f49ff89c5624e75dd0608d795eec7c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637142725089548898&sdata=my77gkdd7vQDs%2BP0HncDGASMtQwyPK%2FFPVZi7SCynkk%3D&reserved=0. it may not be supported by appletv, or even directly by your browser. ytdl-core uses m3u8streamhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffent%2Fnode-m3u8stream&data=02%7C01%7C%7C4f49ff89c5624e75dd0608d795eec7c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637142725089548898&sdata=2xAdOs%2FD0iFuKIInoV399%2BJBbsuPvavLk2N5yqCEM%2BA%3D&reserved=0 to play such formats

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffent%2Fnode-ytdl-core%2Fissues%2F549%3Femail_source%3Dnotifications%26email_token%3DACRESLNINLLYYE77FK3NH6DQ5CSXXA5CNFSM4KCYW7E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIURVVQ%23issuecomment-573119190&data=02%7C01%7C%7C4f49ff89c5624e75dd0608d795eec7c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637142725089558907&sdata=4VV25kn9NsNpsuKRfgVDRKyDi2LfE%2FuGGy%2FQQECtOy4%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACRESLIFEHGZEOLDHPDLATLQ5CSXXANCNFSM4KCYW7EQ&data=02%7C01%7C%7C4f49ff89c5624e75dd0608d795eec7c7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637142725089558907&sdata=9lcEeiiXMIwWLt7Aa9M9SOHb1mznq7gGjPBWlhjGT9g%3D&reserved=0.