-
Notifications
You must be signed in to change notification settings - Fork 106
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
How to use header? #1
Comments
You can add the header to getThread and getTsUrl method in M3u8DownloadFactory.java. use httpURLConnection.setRequestProperty(name,value) |
Thanks a lot for the reply.
This is my project. I did everything the same way as in your repo |
You can change an m3u8 url and try again,if it still go wrong,you can give me the url and I will debug it. |
I don't think it is because of the URL String M3U8URL = "https://videozmcdn.stz8.com:8091/20191127/PK7a0LKQ/index.m3u8"; There is an exception that is being thrown at getUrlContent Log:
|
well,
Now,you can custom request headers.like this:
then you can use your program download every m3u8 url below.So far my program has not been able to download recursively,and I will do it in the future. |
Ok. Got it. Recursive type video is still not yet supported. Will look forward to it. |
How to download a video with request headers? Is there a way to headers for download request?
The text was updated successfully, but these errors were encountered: