Media Stream publishing based on flash and window platform local program communication

Source: Internet
Author: User

1 Develop a window Platform Local publishing media streaming client program , the program complete audio and video capture,DSHOW virtual camera, virtual video functions, encoding, publishing media streaming, accompaniment management and other functions, The virtual camera is registered to the window system when the program is installed .

2 Window platform local program after running, establish 6 A signaling listener socket , to prevent network security software or services from issuing bound port alarms to affect user experience and to prevent listening port conflicts with other programs in the native , 6 signaling listener socket bind network RIP 127.0.0.1 843 ( for flash quick get policy access control file Span style= "font-family: the song Body;" >, 12168,22168, 32168 Span style= "font-family: the song Body;" >, 42168,52168 .

3 Window Platform Local program after running the user through the interface to set up a physical camera or other virtual camera, while excluding the above-mentioned by the program generated by the virtual camera, the program with the user selected camera name, create DShow capture manager and video capture filter, and the video capture filter is added to the DShow capture manager to begin capturing video.

4loading via web pageFlash,Flashafter the operation, the user through the interface to select the aforementioned virtual camera, audio capture device, createCamaraas described in the previousThe virtual camera calls its related methods for parameters to begin capturing video, and thenVideothe image is associated for a video preview, and the name of the audio capture device selected by the user is saved;5aFlash TCP Socket, while at the same time pulling the ground127.0.0.1, ports are12168,22168,32168,42168,52168Network to initiate a connection, whichSocketfirst, go back to the build success record whichSocketto beUsocket (To send live heartbeat notifications for long connections and cycles) while closing other4aSocket, enter the first5If all fails, prompt the user to installwindowplatform local Push flow program (give download to pull), and then enter based onFlashnativeAPIimplementation of streaming media push flow.

5 Flash through the usocket to the window platform local push stream program to send the beginning of the push stream notification, accompanied by audio collection and set the name and audio encoding bitrate, video encoding bitrate, release stream server to pull information,window after the platform local push stream program is received, start creating the audio capture DShow Filter, adding it to the DShow created in step 3 Acquisition Manager; The network connection is established with the streaming media server, the acquired audio and video is encoded (using AAC+SBR, the video adopts the H246 high profile for efficient audio and video coding), and the encoded data is made by the aforementioned network connection. Rtmp and or RTP packets are sent to the streaming media server.

Media Stream publishing based on flash and window platform local program communication

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.