How do individual users build a comprehensive web server (medium)

zhaozj2021-02-16  55

Fourth: Establish Win Media Online Video

According to the first step three, Figure 4 and Figure 5, only the "Flow Media Server" is selected in Figure 5, click OK, so the system will automatically create a Win Media stream under your web server. Media server site, which is how to manage this server and make streaming media files.

Run "Start → Control Panel → Administrative Tools → Windows Media Services", click on your local computer name, as shown in Figure 44:

Figure 44

On the right browsing box you can see some basic settings and conditions of this media server, now we will set this server to provide streaming services outwards;

Click on the second icon below in Figure 44, open the "Windows Media Performance Monitor", as shown in Figure 45:

Figure forty-five

Select the update interval you want to view in Figure 44, in seconds, then select View Style, Performance Monitor provides three styles: simple, blue grid and gray grid, you can choose the style you like If you want to increase the viewed content, click the icon button with " " above, and the show is shown in Figure 46:

Figure 46

Select "Windows Media Services" in the Performance Object drop-down box, listen to the counter options for streaming server-related counters, you can choose the counter option you are interested in, such as "Total Connected Players ", etc. Then click "Add", if you don't want to add it, click "Close", return to Figure 45. You can see each counter you selected below, click on each counter, you will be Details of the counter are seen in the list box above, such as "maximum", "smallest", "average" and other information. Turn off "Windows Media Performance Monitor", go back to Figure 44, let's take some other information about streaming media. Click the "Properties" page, select "Show all plugin categories" as shown in Figure 47:

Figure 47

First see your Windows Media Services version information, click "Authorization" in the "Category" box on the left, see the enabled authorization information, as shown in Figure 48:

Figure forty eight

There are "WMS NTFS ACL Authorization", "WMS IP Address Authorization" and "WMS Publish Point ACL Authorization", click on each authorization, you can see the brief introduction to the authorization information in the following text box, the author recommended Enable these authorization information, to enable these authorization information, just right click on the authorization information to be enabled to select "Enable" in the pop-up menu; if it is limited to the space, you will not introduce each information in "Category", "log record "And" Incident Notifications ", now introduce" verification ", Windows Media Services provides three authentication methods:" WMS Anonym Authentication "," WMS negotiation authentication "," WMS abstract authentication ", due to The access streaming server is subject to the control of the NTFS directory access, so the author only enables "WMS Anonymous User Authentication", and other authentication methods are not enabled by yourself. "Cache / Agent Management", if you don't install the plugin, this item will be empty. Let's set up a control protocol, which is important, relations to others can access your online media, click on "Control Agreement", as shown in Figure 49:

Figure forty nine

On the list box on the right, we see that Windows Media Services provides three server control protocols: "WMS HTTP Server Control Protocol", "WMS MMS Server Control Protocol", "WMS RTSP Server Control Agreement", now we have to set each The port enabled by the control protocol, note that the port settings do not conflict with other server ports. For example, the TCP port of the WMS HTTP server control protocol will not conflict with the 80-port of your web site, so you'd better change it into other ports, right-click the control protocol name, select "Properties" in the pop-up menu, as shown in Figure 50 Image: Figure 50

This figure is the Properties Settings window of the WMS HTTP server control protocol. You can see IP address restrictions, you can set the IP address to access your streaming service, then select "Use Other Port in" Port Select "(1 -65535 "Enter the port you want to use in the input box, click" OK ", complete the port settings, other control protocols are similar to this, everyone will set it. Look at the" restriction "setting, as shown in Figure 51 :

Figure 51

You need to limit a certain item, then check it on a certain item, then enter the specific value, not described here, let us see "Media Analysis Program", which can determine which streaming files can you provide , Detailed, Figure 52:

Figure 52

If you want to provide a rich content for your streaming server, it is recommended that you enable all media analysis programs in the right list of Figure 52, such as playing MP3, JPEG image ,.sf, .wmv, .wm And. WMA extension of Windows Media format file, etc.. "Playl Analysis Program" allows your media server to support the MEIDA files for the entire directory and supports playlists with .WSX extensions with synchronous multimedia integration languages ​​(SMIL 2.0) syntax, which are not described in detail. Let us look at "data source", as shown in Figure 53:

Figure 53

The author recommends that all data source plugins on the right side of Figure 53 are enabled, which will be used in the production and release of streaming media. As for "unicast", we don't have to enable because we use the game stream to all online friends to enjoy the streaming services we provide. About more detailed information on how we can see the "Getting Started" page, here you have how to configure and manage streaming media server information on your machine, you can take a look in detail, here is not described here.

Stream media server we have basically set up, then we should create a release point, release your content on the streaming media server, right-click "Release Point" in Figure 44, in the pop-up Select "Add Publish Point (Wizard)" in the menu, Note: Adding a release point has two ways: "Add a Publish Point (Wizard)" and "Add Publish Point (Advanced)", here I will introduce how to add release Point (wizard) "Add a publishing point, another way, everyone try it. As shown in Figure 54:

Figure 54

Select "No longer display this welcome page", because we create a release point, click Next, as shown in Figure 55:

Figure 55

Enter your publishing point name in the Name, click Next, as shown in Figure 56:

Figure 56

Select the type of content transmitted, if we want to play the live stream using the Windows Media Encoder encoding, then select "Encoder (Live Switch), which can be specified directly during the use of Windows Media Encoder encoder. Published on this server on this release point to realize real-time on-demand playback. Here, as a demonstration, I choose the "Document in the directory", use the on-demand form to provide streaming media services, give you a presentation, other please set it yourself. Select the "Document in the directory", click Next, as shown in Figure 57: Figure 57

Select "on-demand release points", click Next, as shown in Figure 58:

Figure 58

Select the folder path on the local computer that stores the streaming media file. Select "Allows access to the contents of the directory content using wildcards (allowing clients to access all files in the catalog and its subdirectory)", click Next, as shown in Figure 5 19 shows:

Because we are on-demand, we can don't choose, just click Next, as shown in Figure 60:

Figure 60, "Yes, enabling the logging of this release point", click Next, as shown in Figure 60: Figure 61 This is the summary information of adding a publishing point, click Next, as shown in Figure 62 As shown: Figure 62 At this moment, we can see the enabled playlist analysis program for us to create what kind of playlist file format, select "After completing the wizard", then select the first "creation announcement File (.asx) or web page (.htm), click Finish. As shown in Figure 63: Figure 63 Select "No longer display this welcome page", because we create a viewable media file, click Next, as shown in Figure 64: Figure 16 Select the first "directory", click to browse, as shown in Figure 65: Figure 65 chooses a file, such as "mad mad. Wmv", Note: This is done in advance with Windows Media Encoder Media files, you can also choose archive media files on you. Click "Select File", return to Figure 64, you will see the file you selected in the first "directory" box in Figure 64, click Next, see 66 Screen: Figure 66 Default Under the server name is your local computer name, you can modify the domain name of your application, it is recommended to make a modification, because the peanut shell has already established a corresponding corresponding to your local computer name. Relationship, click Next, as shown in Figure 67: Figure 67 Selects the path to you save the announcement file, select a web page with embedded players and links to this content "and" will be on page The syntax of the middle embedded player is copied to the clipboard ", which is to test the effect of embedding web page playback, and you can also copy the source code to your web page from this example to your own WEB Among the site source, reduce your own workload of your own use of the player to play the media file and have a reference, why not? Ok, click Next, as shown in Figure 68: Figure 68 Enter some metadata, here you can enter your personal information and advertising information, click Next, Figure 69 shows: Figure 609 Click to complete, as shown in Figure 7: Figure 70 Click the test announcement, this will open your Windows Media Player player to play the streaming file on your release point, as shown in Figure 71: Figure 71 Everything is normal, let's go back to Figure 70. Click on the test with the webpage with embedded player, as shown in Figure 72, the Internet sharing configuration dialog box, click "Yes", as shown in Figure 7 Three shows: Figure 73 No problem, what you have to do is to change the address in the address bar to your web domain add-in the web name, which, you can enjoy the online film or you provide free of charge. Music; last, return to Figure 70, click to exit, complete the settings of this release point.

Let's go back to Figure 44. Take a look at some basic information of the release point you just created, click on the name of the release point you just created in Figure 44, as shown in Figure Seventy-four: Figure 74 can see this Some basic information and settings of the publishing point, "Monitor" monitors the information of this release point, set the monitoring information of this release point, just like the streaming media server monitor information, refer to the settings before, here, It is, in the "source" attribute, if you want to change the film or want to change the content, if I want to change to provide a live stream using Windows Media Encoder, then click "Change" directly in the "Source" property. Buttons, in the pop-up dialog box selection, other playback files or modes can be; as shown in Figure 75: Figure 75 on inserting advertisements in streaming media, focusing on, advertising "clearance advertising" and "Packaging Advertising", "Gap Advertising" refers to an advertisement in your content, and "Packaging Advertising" is an advertisement starting or ending in your content. First, describe how to add "Gap Advertising", open the "Source" property window, as shown in Figure 76: Figure 76 Click "View Playlist Editor", that is, the icon button in the middle of the picture, like Figure 77 shows: Figure 77 chooses "New a new playlist", click OK, Figure 78 shows: Figure 78 Right click "SMIL", select "Add Advertising in the pop-up menu ", Note: This plugin feature can only be enabled in your media server properties settings you must enable" WMS SMIL Playl Analysis ". As shown in Figure 79: Figure 79

Open the "Browse" window, as shown in Figure 8:

Figure 80

Select the ad file you want to insert, click "Select File", return to Figure 79, see the ad file you have selected in the input box, click "OK", return to Figure 78, see To the 78-left menu, you already have the ad file name you created, click on the ad file name, appear on the right side of Figure 78, showing:

Figure 81

Nowadays, a few properties of the SMIL element in Figure 81:

SRC → Specify the data source of the advertising file;

Begin → Point out when this ad file starts playing, such as Begin = "0S", play advertising files;

CLIPBEGIN → Start playback from what location this ad file starts. For example, CLIPBEGIN = "7s" indicates that this advertising file starts playing from the 7th second; Clipend → Indigines to the end of this ad file. For example, CLIPEND = "01:23" indicates that this advertisement ends to end playback at 1 minute 23 seconds; DUR → indicates the length of time of the advertising file playback. For example, DUR = "10s" indicates that this ad file is played for 10 seconds;

END → indicates the timing value at the end of the ad file. For example, begin = "0s" end = "30s" indicates that this ad file is put 30 seconds. By default, it is naturally ended;

SYNCEVENT → Indicates the elements in the package playlist by the elements in the broadcast playlist;

ID → Indicates the name of the element, easy to reference the element in the playlist;

Medianame → Indicates the name of the element provided to the client, replacing the element directly to the client directly;

Noskip → Indicates if this ad file skips, set to true, indicating that you can't skip;

REPEATCOUNT → Indicates the number of times the advertisement repeats playback before stopping playback;

REPEATDUR → Indicates the time to repeat playback before stopping playback. For example, repeatdur = "15s" indicates that this ad file can repeat playback within 15 seconds; well, understand the concept, we should know how to do it, is it? In Figure 81, enter each property value, then follow these steps to add a media file, this is what you really provide, don't just use advertising to confuse everyone's eyes. Complete this, exit the playlist editor, prompt to save, save your work, as shown in Figure 82:

Figure 82

Give your playlist, then click "Save", which is completed in the flow media server, is it possible to insert some highlights, let friends happy 兀 兀? Let's introduce " Packaging advertisement. Open the Advertising Properties window, as shown in Figure 83:

Figure 83

Seeing the first icon button below Figure 83? Click on it, pop up the chart 84 dialog:

Figure 84

Choose the first item, select "Create Package Wizard", click OK, as shown in Figure 85:

Figure 85

"No longer show this welcome page", I hope to start it next time, click "Next", as shown in Figure 86:

Figure 86

If you want to add an ad to add an ad, then add an ad, add a media; if you want to add an ad, then add the media first, add an ad. Here is only how to add ads, so we click "Add Advertising", as shown in Figure 87:

Figure 87

Click "Browse", a file selection dialog box, select your ad file, can be a specific multimedia ad file, or a list file, here I have selected the playlist file created in the insertion ad, click " Determine, return to Figure 86. You can see that your added ads is already in the list box, click the new advertisement you just created, move it to the top, click Next, as shown 88:

Figure 88

Save your packaging playlist file in the location you specified, click Next, as shown in Figure 89:

Figure 89

Click "Finish", then look at Figure 83. Your packaging ad has been enabled with your release point. Then modify your streaming server data source in the "Source" attribute, after you see is your advertising and streaming media. Now, let's look back at the property settings of the release point, as ninety:

Figure 90

Since it is basically already told in the property settings of the current media server, only a few points here, first, all settings in the "General" property are not enabled, and then set "Cache Expiration in" Cache / Proxy " "Always expire", which is setting for confidential security; secondly in the "Authorization" class is best enabled; "WMS Anonym Authentication" is enabled in "Verification" settings, these settings Well, basically your streaming media server and publishing point are safe and complete;

How to build a comprehensive web server (below) http://www.9cbs.net/develop/read_article.asp?id=22460

转载请注明原文地址:https://www.9cbs.com/read-25638.html

New Post(0)