StreamingSessionResult

@interface StreamingSessionResult : NSObject

- (id)initWithJSValue:(JSValue *)value;

/**
 * Get the final streaming URL. Empty string if an error occurred, use getErrorCode() and getErrorMessage() for more details.
 * @return Streaming URL
 */
- (NSString *)getURL;

/**
 * Get the list of fallback URLs.
 * Diversity
 * @return URL list
 */
- (NSArray *)getFallbackURLList;

/**
 * Session request ended with an error code
 * @return True if the request ended with an error code
 */
- (BOOL)isError;

/**
 * Get the error status code if an error occurred during the session creation. 0 if no error.
 * @return Error code
 */
- (int)getErrorCode;

/**
 * Get the error message if an error occurred during the session creation. empty if no error.
 * @return Error message
 */
- (NSString *)getErrorMessage;

/**
 * Get the detailed error code if an error occurred during the session creation. 0 if no detail associated to the error or no error.
 * @return Detailed error code
 */
- (int)getDetailedErrorCode;

/**
 * Get the detailed error message if an error occurred during the session creation. empty string if no detail associated to the error or no error.
 * @return Detailed error message
 */
- (NSString *)getDetailedErrorMessage;

/**
 * Is the session started on a nanoCDN
 * @return true if a nanoCDN is used
 */
- (BOOL)isNanoCDNUsed;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (id)initWithJSValue:(JSValue *)value;
  • Get the final streaming URL. Empty string if an error occurred, use getErrorCode() and getErrorMessage() for more details.

    Declaration

    Objective-C

    - (nonnull NSString *)getURL;

    Return Value

    Streaming URL

  • Get the list of fallback URLs. Diversity

    Declaration

    Objective-C

    - (nonnull NSArray *)getFallbackURLList;

    Return Value

    URL list

  • Session request ended with an error code

    Declaration

    Objective-C

    - (BOOL)isError;

    Return Value

    True if the request ended with an error code

  • Get the error status code if an error occurred during the session creation. 0 if no error.

    Declaration

    Objective-C

    - (int)getErrorCode;

    Return Value

    Error code

  • Get the error message if an error occurred during the session creation. empty if no error.

    Declaration

    Objective-C

    - (nonnull NSString *)getErrorMessage;

    Return Value

    Error message

  • Get the detailed error code if an error occurred during the session creation. 0 if no detail associated to the error or no error.

    Declaration

    Objective-C

    - (int)getDetailedErrorCode;

    Return Value

    Detailed error code

  • Get the detailed error message if an error occurred during the session creation. empty string if no detail associated to the error or no error.

    Declaration

    Objective-C

    - (nonnull NSString *)getDetailedErrorMessage;

    Return Value

    Detailed error message

  • Is the session started on a nanoCDN

    Declaration

    Objective-C

    - (BOOL)isNanoCDNUsed;

    Return Value

    true if a nanoCDN is used