Class WowzaResourceStrategyImpl

java.lang.Object
org.opencastproject.security.urlsigning.WowzaResourceStrategyImpl
All Implemented Interfaces:
ResourceStrategy

public class WowzaResourceStrategyImpl extends Object implements ResourceStrategy
A ResourceStrategy that transforms URLs for a Wowza streaming server. Based upon: http://www.wowza.com/forums/content.php?55-How-to-format-Adobe-Flash-RTMP-URLs and http://docs.aws.amazon.com/ AmazonCloudFront/latest/DeveloperGuide/private-content-creating-signed-url-custom-policy.html
  • Constructor Details

    • WowzaResourceStrategyImpl

      public WowzaResourceStrategyImpl()
  • Method Details

    • getResource

      public String getResource(String baseUri)
      Transform a base URI into a proper stream location without the host and application name.
      Specified by:
      getResource in interface ResourceStrategy
      Parameters:
      baseUri - The full URI to the resource including the host and application.
      Returns:
      A safe standard RTMP or HTTP resource location.
    • getRTMPResource

      protected static String getRTMPResource(URI baseUri)
      Transform a base URI into a proper stream location without the host and application name.
      Parameters:
      baseUri - The full URI to the resource including the host and application.
      Returns:
      A safe standard RTMP resource location.
    • getHTTPResource

      protected static String getHTTPResource(URI baseUri)
      Transform a base URI into a proper stream location without the host.
      Parameters:
      baseUri - The full URI to the resource including the host and application.
      Returns:
      A safe standard RTMP resource location.