2015 New Year's Day First blog post: Red5 Streaming media Server Setup

Source: Internet
Author: User
Tags live chat

today is the first day of 2015, the day with his wife and children to BHG (Hualian) turn around, at noon in nine Mao Nine eat lunch, so after the new year, although a little tired, but very happy, Beijing today's weather is also more to force, sunny, no fog haze! It is 10 o'clock night, because the day out to play, wife and children are a little tired, now is asleep, I do not want to end the first day of 2015, as a new beginning, I decided to write 2015 years of the first blog post. Gossip less, enter the subject. The concept of streaming media in the first company to understand, when doing a eleaning online education platform, with RED5 streaming media server technology, support video module playback. Let's talk about my knowledge of convection media and how to build a simple streaming media application.

One: definition of streaming media
Streaming media is the media form of streaming audio, video, and multimedia files across a network. The typical characteristic of streaming media is to compress the continuous audio and video information into the network server, while the user is downloading and watching, rather than waiting for the entire file to be downloaded. Due to the superiority of streaming media technology, this technology is widely used in video-on-demand, video conferencing, tele-education, telemedicine and online live broadcasting system.


Two: Flash streaming media server Red5

Red5 is an open source Flash streaming media server with Java development. It supports: Convert audio (MP3) and video (FLV) to play stream, record client stream (FLV only), share object, live stream release, Remote call. Red5 uses RSTP as the streaming media transport protocol, and in some of its own examples, it demonstrates some of the basic features of online recording, Flash streaming, live chat, video conferencing, and more.

Three: Build a streaming media server

1: Streaming Media Server Setup
(1): Install Setup-red5-0.8.0.exe
(2): Put the Oflademo in the Red5 installation directory Red5\webapps below
(3): cmd enters Red5 directory, executes Red5-debug.bat
(4): Open: http://127.0.0.1:5080/If the first page appears, it proves the installation was successful.
(5): Store the video files that need to be played in the Red5\webapps\oflademo\streams directory test.flv


2:apache Resource Server Setup
(1): Install Httpd-2.2.25-win32-x86-no_ssl.msi
(2): Open Apache Server
(3): Visit http://127.0.0.1/. If the IT works! is displayed Indicates that the Apache server was successfully installed.


(4): in Apache Apache software foundation\apache2.2\htdocs directory, the video subtitle file can be stored.


3: Streaming video playback
(1): Required files: pl.swf jwplayer.js
(2): Code

<div id= "MediaPlayer" style= "float:left; width:575px; height:460px; " ></div>
<script type= "Text/javascript" >
var subtitle = "Http://localhost/srt/take_ownership_of_your_own_development_captions.srt";
var exittype = ' None ';
var pic;
Jwplayer ("MediaPlayer"). Setup ({
Flashplayer: "Flash/pl.swf",
Modes: [{
Type: "Flash",
SRC: "flash/pl.swf",
Config: {
File: "test.flv",
Image: "Images/jwbg.png",
Streamer: "Rtmp://127.0.0.1/oflademo",
Provider: "rtmp"
}
}, {
Type: "Download"
} ],
width:590,
height:460,
Screencolor: ' #000000 ',
Autostart:false,
plugins:{' captions-1 ': {' file ': subtitle, ' Back ': ' false ', ' fontsize ': ' + ', ' state ': ' true ', ' dock ': ' False '}}
});
</script>


(3): Playback effect:


4:bat Start Red5 and Apache2.2
@echo off
Call net start Apache2.2
pushd "D:\install\Red5"
Call Red5-debug.bat

2015 New Year's Day First blog post: Red5 Streaming media Server Setup

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.