1. Download and install
Flashmediaserver3.5 http://download.macromedia.com/pub/flashmediaserver/updates/3_5_2/Windows/FlashMediaServer3.5.exe
Registration Code: 1374-5281-3416-2287-0994-2264-or download the corresponding registrar. Click to download
Modify the hosts file before installation. In the hosts file (this file is located in c: \ windows \ system32 \ drivers \ etc. This file is a system file, which is hidden by default) add the following content:
127.0.0.1 activate.adobe.com 127.0.0.1 practivate.adobe.com 127.0.0.1 ereg.adobe.com 127.0.0.1 activate.wip3.adobe.com 127.0.0.1 wip3.adobe.com 127.0.0.1 3dns-3.adobe.com 127.0.0.1 3dns-2.adobe.com 127.0.0.1 adobe-dns.adobe.com 127.0.0.1 adobe-dns-2.adobe.com 127.0.0.1 adobe-dns-3.adobe.com 127.0.0.1 ereg.wip3.adobe.com 127.0.0.1 activate-sea.adobe.com 127.0.0.1 wwis-dubc1-vip60.adobe.com 127.0.0.1 activate-sjc0.adobe.com |
Ii. Use of FMS
The default installation path is c: \ Program Files \ Adobe \ Flash Media Server 3.5. After the installation, there is a welcome page. If the page is displayed normally, it indicates that the system has been installed successfully.
Video Playback page: C: \ Program Files \ Adobe \ Flash Media Server 3.5 \ samples \ videoplayer \ videoplayer.html. You can test the corresponding video playback page.
The default rtmp protocol file storage path is c: \ Program Files \ Adobe \ Flash Media Server 3.5 \ applications \ VOD \ media.
For example, the video file c: \ Program Files \ Adobe \ Flash Media Server 3.5 \ applications \ VOD \ media \ sample. FLV
The corresponding address is rtmp: // localhost/VOD/sample or rtmp:/VOD/sample. Note that if the extension is FLV, you only need to enter the file name and do not enter the extension, otherwise, the file cannot be found (Khan ~ This problem has plagued me for a long time)
For example, the playback example f4v video file c: \ Program Files \ Adobe \ Flash Media Server 3.5 \ applications \ VOD \ media \ sample00001000kbps.f4v
The corresponding address is rtmp: // localhost/VOD/MP4: sample00001000kbps.f4v or rtmp:/VOD/MP4: sample00001000kbps.f4v.
You can play the corresponding video file through the videoplayer.html video playback page.
3. Create an rtmp virtual directory
Now, I need to put video files in other folders and parse them using the rtmp protocol.
Find the configuration file c: \ Program Files \ Adobe \ Flash Media Server 3.5 \ conf \ FMS. ini.
The default VOD virtual directory is implemented through the following two sentences:
VOD_COMMON_DIR = C:\Program Files\Adobe\Flash Media Server 3.5\webroot\vodVOD_DIR = C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod\media |
Here we want to create a new virtual directory hello and add the following content:
HELLO_COMMON_DIR = D:\helloHELLO_DIR = D:\hello\media |
Copy the files in the c: \ Program Files \ Adobe \ Flash Media Server 3.5 \ applications \ VOD folder to the D: \ Hello folder.
Modify the content of the D: \ Hello \ application. xml file
<Streams>/;${VOD_COMMON_DIR}</Streams><Streams>/;${VOD_DIR}</Streams> |
Change
<Streams>/;${HELLO_COMMON_DIR}</Streams><Streams>/;${HELLO_DIR}</Streams> |
Restart the FMS and the virtual directory is created.
(Transfer) fms3.5 Installation and Use