Commit d8f6eb8c authored by nshah's avatar nshah

OCVET-247, v16 of Content Transformation stubs, 07/Jan/13, 10:47am

parent 5c926104
......@@ -10,12 +10,12 @@ public interface ContentFormat
/**
* This method returns an identifier representing the media format of
* the content.
*
* the content. See [OC-BUNDLE] and <code>ContentProfile</code> for a list
* of valid identifiers.
*
* @return The media format of the content.
*/
public ContentProfile getContentProfile();
public String getContentProfile();
/**
* Returns the protection type of the content.
......@@ -26,6 +26,6 @@ public interface ContentFormat
* @return The <code>ProtectionType</code>. Returns empty string if the
* content is not protected.
*/
public ProtectionType getProtectionType();
public String getProtectionType();
}
package org.ocap.hn.content;
/**
* Class implementing type safe enums that represent content profile identifiers.
* Interface defining constants that represent content profile identifiers for
* HTTP adaptive delivery content.
*
*/
public class ContentProfile
public interface ContentProfile
{
/**
*
* OCAP applications SHALL NOT use this constructor - it is provided for internal use by the OCAP
* implementation. The result of calling this method from an application is undefined, and valid
* implementations MAY throw any Error or RuntimeException.
*/
protected ContentProfile(String profileId)
{
}
/**
* This string conforms with the rules defined in [OC-BUNDLE]
* for the content format string values.
*
* @return String representing the profile id
*/
public final String toString()
{
return null;
}
/**
* MPEG-DASH Content.
*/
public static final ContentProfile DASH_MPD = new ContentProfile("DASH_MPD");
public static final String DASH_MPD = "DASH_MPD";
}
......@@ -196,7 +196,7 @@ public interface ContentResource
• be multiple ContentFormat instances returned that correspond to a single ContentResource
• in case of HTTP Adaptive content.
*
* @return List of <code>ContentFormat</code>.
* @return Array of <code>ContentFormat</code>.
*/
public ContentFormat[] getTransformedContentFormats();
......
......@@ -27,7 +27,7 @@ public interface OutputVideoContentFormat extends ContentFormat
public int getBitRate();
/**
* Returns an indication of progressive or interlaced.
* Returns an indication of progressive or interlaced.
*
* @return True if progressive, false if interlaced.
*/
......
package org.ocap.hn.content;
/**
* Class implementing a type safe enum representing supported
* Interface defining constants that represent supported
* output protection types.
*
*/
public class ProtectionType
public interface ProtectionType
{
/**
*
* OCAP applications SHALL NOT use this constructor - it is provided for internal use by the OCAP
* implementation. The result of calling this method from an application is undefined, and valid
* implementations MAY throw any Error or RuntimeException.
*/
protected ProtectionType(String name)
{
}
/**
* Returns a constant string representation of the
* protection type.
*
* @return String representing the protection type
*/
public final String toString()
{
return null;
}
/**
* DTCP-IP protection type as defined in [OC-BUNDLE].
*/
public static final ProtectionType DTCP_IP = new ProtectionType("DTCP-IP");
public static final String DTCP_IP = "DTCP-IP";
/**
* DECE DRM type. Used with any DRM that is part of DECE as defined in [OC-BUNDLE].
*/
public static final ProtectionType DECE_DRM = new ProtectionType("DECE-DRM");
public static final String DECE_DRM = "DECE-DRM";
}
......@@ -22,8 +22,6 @@ public abstract class TransformationManager
*
* @throws SecurityException if the calling application has not been granted
* HomeNetPermission("contentmanagement").
* @throws UnsupportedOperationException if the implementation is not
* capable of content transformation.
*/
public static TransformationManager getInstance()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment