AS Series Media Processor: Apple Segmenter HTTP Handler Setup Document ID: 112953 Contents Introduction Prerequisites Requirements Components Used Conventions Spinnaker Apple Segmenter HTTP Handler Setup Deploying the ASP.Net application Internet Information Services (IIS) Virtual Application Setup Related Information Introduction This is the basic setup Inlet Technologies has used to test the functional aspect of using the Cisco AS Series Media Processor's (formerly Spinnaker) Apple Segmenter feature to transmit HTTP Post requests to an ASP.Net application consisting of a simple HTTP handler module. This document assumes a deployment environment of Windows 2008 Server running IIS 7.0. The accompanying solution has been supplied as a.zip file which can be directly extracted to an arbitrary directory as described in the following section. The following solution will setup the publishing URL location to be relative to the virtual application where the handler code resides. Prerequisites Requirements There are no specific requirements for this document. Components Used This document is not restricted to specific software and hardware versions. The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command. Conventions Refer to Cisco Technical Tips Conventions for more information on document conventions. Spinnaker Apple Segmenter HTTP Handler Setup
Deploying the ASP.Net application 1. Create a directory location on Windows 2008 Server from where the output mpeg/url files and the HTTP handler code is to reside. The name and location of the directory is arbitrary, but in this case we used Apple, such that Internet Information Services has read access to it. 2. Within the newly created directory create another folder named applefeed. 3. Copy the provided web.config and App_Code directory into the directory created in step 2. 4. Open the web.config file and find the app key tag that looks like: <add key="outputpath" value="c:\inetpub\wwwroot\apple"/> The default output path points to the Apple directory created in Step 1. This setting can be modified at your discretion, but the intent is that this path should be the same as the publishing location where the IPhone clients will request the transport stream files. Ensure that the directory specified by the outputpath parameter allows write access to the account that will be used to post the segmented.ts files. For the simple case of anonymous authentication, write privileges should be granted to the IIS_IUSRS group of the server machine. Internet Information Services (IIS) Virtual Application Setup 1. Open Control Panel Administrative Tools Internet Information Services (IIS) Manager. 2. Expand the Connections tree until the Default Web Site is displayed. 3. Right click on Default Web Site and select the Add Virtual Directory option.
4. Specify an alias with which to refer to the virtual directory. (The simplest solution is to name the alias the same as the default directory name). Specify the physical path to the directory created in the previous section, Deploying the ASP.Net application Step1 and press Ok. 5. Expand the newly created virtual directory and find the applefeed directory created in Step2 of the previous section. Right click on applefeed and select the Convert to Application option. (Adding an application instead of a virtual directory simply ensures that a single Application Pool is created for the ASP.Net application instead of a shared one.)
6. Specify an alias to associate with the ASP.Net handler application, this will be included in the URL used when specifying the output stream information from the Apple Segmenter section of the Spinnaker Web H264 tab. 7. Specify the physical path to the directory created in the previous section, Deploying the ASP.Net application and press Ok. 8. Find and select the newly created virtual application in the connections tree viewer. Ensure that the Features View tab is selected in the adjacent configuration section. 9. Select category from the configuration panes Group By combo box. Scroll down to find the Security category and select the Authorization Rules option. Right click and select the Open Feature context menu task. If the Authorization Rules option is not present then it is most likely that this feature is not installed. Please refer to section 9.1 in order to install this option.
a. Open the Server Manager application by proceeding to Control Panel Administrative Tools Server Manager. Find and expand the Roles tree option on the left side of the screen. Select the Web Server (IIS) item. On the right side of the screen a summary view of the Web Server configuration will be displayed. Scroll down to the third section, entitled Role Services, and look for a role called URL Authorization under the Security grouping. b. If this role is currently not installed, select the Add Role Services option on the far right
side of the summary screen. Next, an installation wizard will launch to guide you through the installation of additional IIS Role Services. Ensure that the URL Authorization check box is selected (under the Security tree option), and proceed through the installation wizard. Once this option is installed you may need to restart your server for the settings to take place. 10. Highlight the Allow Authorization Rule listed and right click to select edit or select edit from the Actions pane located on the far right of the window. At the bottom of the dialog is a checkbox indicating Apply this rule to specific verbs. Add the word DELETE to the current list of verbs specified in the input field below and press Ok. An alternative option, as shown here, would be to add another allow rule to add the verb DELETE to the list of allowed actions against this application. 11. Find the section called MIME Types and add the following mime mapping extensions into this section. The m3u8 and ts are the file extensions generated by the Apple Segmenter feature of the Spinnaker and requested by the IPhone. Establishing these MIME mappings ensures that the correct content type header is set when these files are requested by the client. Extension.m3u8 MIME type application/x mpegurl Extension.ts MIME type application/octet stream 12. Configure Spinnaker to use the Apple Segmenter on the H264 tab using the newly created virtual directory/application URLs. Based upon the virtual application created in Steps 5 6, applefeed in our case, specify the Storage URL field as shown below, and by using the context root URL of the web application virtual directory created in Steps 3 4, specify the Publishing URL input field accordingly.
Related Information Technical Support & Documentation Cisco Systems Contacts & Feedback Help Site Map 2014 2015 Cisco Systems, Inc. All rights reserved. Terms & Conditions Privacy Statement Cookie Policy Trademarks of Cisco Systems, Inc. Updated: Jun 29, 2011 Document ID: 112953