Web browsing video streaming

I want to display a live video stream in a web browser. (Compatibility with IE, Firefox, and Chrome would be awesome if possible.) Someone else will be watching the streaming video, but I should be able to receive and display it. I will receive the video over UDP, but for now I just use VLC to transfer it to myself for testing. Is there an open source library that can help me accomplish this using HTML and / or JavaScript? Or a good website to help me figure out how to do this on my own?

I read a little about RTSP, which seems like a traditional option for something like that. This may be what I should undo if I cannot do it using UDP, but if so, I'm still not sure how to do it using RTSP / RTMP / RTP or what are the differences between all of these acronyms, if they are.

I thought that adaptive HTTP streaming might be the best option for a while, but it seemed like all the solutions using this were proprietary (Microsoft IIS Smooth Streaming, Apple HTTP Live Streaming or Adobe HTTP Dynamic Streaming) and I wasn’t having a lot of luck figuring out how to do it yourself. MPEG-DASH sounded like an amazing solution, but it doesn't seem to be used yet, as it is still so new. But now they tell me that I should expect to receive video over UDP anyway, so these solutions are probably not important to me.

I searched this material several times for several days without much inventiveness, to find something to help me realize it. All I can find are articles explaining what technologies (like RTSP, HTTP Adaptive Streaming, etc.) are, or tools you can buy to broadcast your own videos over the Internet. Your guidance will be greatly appreciated!

+6
source share
2 answers

It is not true that most video sites use FLV, MP4 is the most widely supported format and can also be played using Flash players. The easiest way to accomplish what you want is to open an S3Amzon / cloudFront account and work with the JW player. Then you have access to RTMP software for streaming video and audio. This service is very cheap. if you want to know more about this, check out these tutorials: http://www.miracletutorials.com/category/s3-amazon-cloudfront/ Start from the bottom and go to the tutorials above.

I hope this helps you get in the way.

+1
source

True cross-browser streaming is only possible through "rich media" clients such as Flash, so almost all video sites by default serve video using the proprietary .flv format.

For non-living video, the appearance of video in HTML5 promises, and the use of Canvas and JavaSCript streaming should be technically possible, but stream processing and preloading of binary video objects should be done in JavaScript and will not be very simple.

0
source

Source: https://habr.com/ru/post/906717/


All Articles