Streaming to a Windows Media Server publishing point
Overview
The live stream can be sent to a Windows Media Server, to which the users connect to view the live streams.
On the Windows Media Server, the publishing points must be created in "PUSH" mode.
The publishing points can be created dynamically if the user has the "create" rights. In this case, a template publishing point can be specified to provide the default parameters of the publishing points created dynamically.
Activation
To enable this feature, set NetworkStreaming = ns_ASFStreamingToPublishingPoint, and assign the WM publishing point URL to the ASFMediaServerPublishingPoint property.
E.g.:
ASFMediaServerPublishingPoint = "http://your_WM_server.com:8080/your_publishing_point"
Authentication
If authentication is required to send to a publishing point, there are 2 ways to set the required username and password:
- either invoke SetAuthentication (at_PublishingPoint, "...username...", "...password...") before starting the streaming,
- or use the OnAuthenticationNeeded event, which occurs when connecting if SetAuthentication has not been invoked yet: pass the user name and password to the Username and Password parameters of this event.
Publishing points created dynamically
If publishing points are created dynamically, a publishing point used as a template can be specified in the ASFMediaServerTemplatePublishingPoint property.
The format of the template publishing point must be the same as that of ASFMediaServerPublishingPoint: specify the full URL beginning with "http://...", not just the name of the template.
The ASFMediaServerRemovePublishingPointAfterDisconnect property (default = false) specifies whether the publishing point is destroyed after disconnecting.
When the template publishing point is modified, the new settings are applied only after the existing publishing points are destroyed and recreated.
Creating a publishing point on the Windows Media Server
Proceed as follows:
-
Install the Streaming Media Server:
- run "Manage the server"
- click "Add or remove a role"
- add the "Streaming Media Server" role to the server
- click "install Windows Media Services"
-
Activate HTTP on Windows Media Services:
- in "Manage the server", click "Manage this streaming media server"
- click the server name
- in the "Properties" tab, click "WMS HTTP Server Control Protocol"
- when using (or planning to use) the IIS web server too, choose a port different from the default IIS port 80 (e.g. 8080)
- here, it is also possible to limit the IP that is allowed to send the stream to the publishing point
- click OK to close the dialog
- right-click "WMS HTTP Server Control Protocol", and select "Enable"
-
Create a publishing point:
- right-click "Publishing Points", select "Add Publishing Point (Advanced)"
- Publishing point type: choose "Broadcast"
- Publishing point name: enter a name, e.g. "PubPoint1"
- Location of content: enter "Push:*"
-
Create a user with a password, allowed to send data to the publishing point:
- open Computer Management -> System Tools -> Local Users and Groups
- right-click "Users" -> "New User", create a user (e.g. "SendToPP"), specify a password, uncheck "user must change password..."
- close Computer Management
-
Associate the publishing point with the user:
- go back to Windows Media Services, click the server name
- select the "Properties" tab, click "Authorization"
- right-click "WMS Publishing Points ACL Authorization", and select "Enable" if it is not enabled
- double-click "WMS Publishing Points ACL Authorization"
- add the user created earlier (e.g. "SendToPP"), click "Ok"
- click the user created (e.g. "SendToPP"), then check the "create" and "write" checkboxes
- click OK to close the dialog
For more information, contact our support at support@datastead.com.