How to get the live source address of a video

Source: Internet
Author: User

The study was half a day without clue.
It can be seen and retrieved using Firefox tools.
For example: Live bucket Fish page:

This link address, the page is not at all, is not a combination of?
What do I think if I get it in PHP?
Please give us a thought or tutorial.

Reply content:

The study was half a day without clue.
It can be seen and retrieved using Firefox tools.
For example: Live bucket Fish page:

This link address, the page is not at all, is not a combination of?
What do I think if I get it in PHP?
Please give us a thought or tutorial.

Yes, I can copy the URL and open it in another tab.

You do not copy the full URL or in another browser or with curl directly open, I think this should have the restriction of the cookie, so in PHP when sending the request is best also bring the cookie, and that Wssecret is obviously to prevent the outreach, so need to first PHP request the homepage to get this, from the page returned to get Wssecret, other parameters what meaning to look at the page's code, but in the acquisition of Wssecret can also be obtained by passing these. There is a video of each download is a fragment, so that wstime should be the beginning of the timestamp bar, it is likely not any time stamp will be, it must be the timestamp of the beginning of each fragment. So all you have to do is request the homepage, get the cookie, these parameters, and then request this video.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.