Class WowzaResourceStrategyImpl
java.lang.Object
org.opencastproject.security.urlsigning.WowzaResourceStrategyImpl
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetHTTPResource(URI baseUri) Transform a base URI into a proper stream location without the host.getResource(String baseUri) Transform a base URI into a proper stream location without the host and application name.protected static StringgetRTMPResource(URI baseUri) Transform a base URI into a proper stream location without the host and application name.
-
Constructor Details
-
WowzaResourceStrategyImpl
public WowzaResourceStrategyImpl()
-
-
Method Details
-
getResource
Transform a base URI into a proper stream location without the host and application name.- Specified by:
getResourcein interfaceResourceStrategy- Parameters:
baseUri- The full URI to the resource including the host and application.- Returns:
- A safe standard RTMP or HTTP resource location.
-
getRTMPResource
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
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.
-