How to transfer video via Socket Class (or XMLSocket) using ActionScript?

How to transfer video via Socket Class (or XMLSocket) using ActionScript?


or \ and


How to do this using the Socket (or XMLSocket) class in AIR?

+2
source share
3 answers

Why are you looking for streaming video using Socket? Performance will be much less than what Adobe's built-in classes offer for this.

To stream audio and video to Flash, you need an FMS server. Red5 is an open source server that allows this (e.g. Maciek). However, serving your own real-time video over flash.net.Socket and then decoding it will lead to terrible performance. In fact, the only way to stream video in a performance-acceptable way would be to use flash.net.NetConnection . It uses the RTMP protocol for streaming media.

In addition, if it does not support the streaming video you are looking for, look at serving these video files through a regular HTTP server and FLV format .

+1
source

I think you can only use sockets in the air. If you need to stream to Flex / Flash for a RED5 RTMP server, there are examples of clients and servers.

+1
source

You cannot use the Socket class for this - you do not have a framebuffer to the webcam.

You can use Adobe Stratus for this - it is a peer-to-peer matching level that supports camera and Microphone linking to one (peer-to-peer) NetStream.

+1
source

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


All Articles