Skip to content

Streaming to a Windows Media Server publishing point

STREAMING TO A WINDOWS MEDIA SERVER PUBLISHING POINT Overview

It is possible to send the live stream to a Windows Media Server, from which the users will connect to view the live streams.

On the Windows Media Server the publishing points must be created in "PUSH" mode.

The publishing points may be created dynamically if the user has the "create" rights. In this case it is possible to specify a template publishing point that specifies the default parameters for the publishing point 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 an authentication is required to send to a publishing point, there are 2 ways to set an username and password required: - either by invoking SetAuthentication (at_PublishingPoint, "...username...", "...password..." ) before starting the streaming, - either through the OnAuthenticationNeeded event that will occur when connecting if SetAuthentication has not been invoked yet. Simply pass the user name and password to the UserName and Password parameters from this event.

Publishing points created dynamically If publishing points are created dynamically, it is possible to specify a publishing point used as template in the ASFMediaServerTemplatePublishingPoint property. The format of the template publishing point must be the same as the ASFMediaServerPublishingPoint (be sure to specify the full URL beginning by "http://...", not just the name of the template). After disconnecting it is possible to specify if the publishing point must be destroyed with the ASFMediaServerRemovePublishingPointAfterDisconnect property (default = false). If modifying the template publishing point, the new settings will be applied only after the existing publishing points are destroyed and recreated. Creating a publishing point on the Windows Media Server Proceed as follows:

  1. INSTALL THE STREAMING MEDIA SERVER
  2. run "Manage the server"
  3. click "Add or remove a role"
  4. add the "Streaming Media Server" role to the server
  5. click "install Windows Media Services"

  6. ACTIVATE HTTP ON WINDOWS MEDIA SERVICES

  7. in "Manage the server", click "Manage this streaming media server"
  8. click on the server name
  9. in the "Properties" tab, click on the "WMS HTTP Server Control Protol"
  10. when using (or plan to use) the IIS web server too, choose a port different than the default IIS 80 port (e.g. choose 8080)
  11. here it is possible to also limit the IP that is allowed to send the streaming to the publishing point
  12. click OK to close the dialg
  13. right-click on "WMS HTTP Server Control Protol", and select "Enable"

  14. CREATE A PUBLISHING POINT

  15. right-click on "Publishing Points", select "Add Publishing Point (Advanced)
  16. Publishing point type: choose "Broadcast"
  17. Publishing point name: enter a name, e.g. "PubPoint1"
  18. Location of content: enter "Push:*"

  19. CREATE A USER WITH PASSWORD THAT WILL BE ALLOWED TO SEND DATA TO THE PUBLISHING POINT

  20. open the Computer Management -> System Tools -> Local Users and Groups
  21. right-click "Users" -> "New User", create a user (e.g. "SendToPP") specify a password, uncheck "user must change password..."
  22. close the Computer Management

  23. ASSOCIATE THE PUBLISHING POINT WITH THE USER

  24. come back into Windows Media Services, click on the server name
  25. select the "Properties" tab, click on "Authorization"
  26. right-click on "WMS Publishing Points ACL Authorization", if not enabled select "Enable"
  27. double-click on "WMS Publishing Points ACL Authorization"
  28. add the user created earlier (e.g. "SendToPP"), click "Ok"
  29. click on the user created (e.g. "SendToPP"), then check the "create" and "write" checkboxes
  30. click OK to close the dialog

Feel free to contact our support at support@datastead.com if needed more information.