How do I transmit playable videos to the front end?

Source: Internet
Author: User
My idea is & amp; lt; vediosrc & #039; xxapi & #039; & amp; gt; The backend transmits video file data (binary) to the front end ), then, I changed the corresponding header but failed to try it. I did not find the relevant information on the internet. I don't know where the problem is. the expected result is: {code ...} my idea is:

The backend transmits the video file data (binary) to the front end, and then changes the corresponding header.
However, I failed to find the relevant information on the Internet,
I don't know where the problem is.

The expected effect is as follows:

http://hc.yinyuetai.com/uploads/videos/common/B7D20154766D39739AF193BCE138419F.flv?sc\u003d0743670c523be875\u0026br\u003d759\u0026vid\u003d2561631\u0026aid\u003d311\u0026area\u003dHT\u0026vst\u003d2

Reply content:

My idea is:

The backend transmits the video file data (binary) to the front end, and then changes the corresponding header.
However, I failed to find the relevant information on the Internet,
I don't know where the problem is.

The expected effect is as follows:

http://hc.yinyuetai.com/uploads/videos/common/B7D20154766D39739AF193BCE138419F.flv?sc\u003d0743670c523be875\u0026br\u003d759\u0026vid\u003d2561631\u0026aid\u003d311\u0026area\u003dHT\u0026vst\u003d2

On the video playback server, the backend transmits the video address to the front end.

How did you write the header and output the video content cyclically?

The backend transmits the video address to the front end. html5 supports video playback. use tags.

Is it the HLS protocol?
This kind of thing should first look at the network protocol, find information, or which CDN video stream you use will also write the corresponding protocol

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.