BCOVBasicSourceSelectionPolicy Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | BCOVBasicSessionProvider.h |
+ sourceSelectionHLSWithScheme:
Select the first video in HLS with the specified scheme. If no such source is found, the first HLS source with any scheme is returned. If no HLS sources are present, the first MP4 is returned. If none of the above is found, the first source of any kind is returned.
+ (BCOVBasicSessionProviderSourceSelectionPolicy)sourceSelectionHLSWithScheme:(NSString *)scheme
Parameters
scheme |
The preferred scheme (kBCOVSourceURLSchemeHTTP or kBCOVSourceURLSchemeHTTPS) of the source URL. |
---|
Return Value
A source selection policy that prefers HLS with the specified scheme.
Discussion
Select the first video in HLS with the specified scheme. If no such source is found, the first HLS source with any scheme is returned. If no HLS sources are present, the first MP4 is returned. If none of the above is found, the first source of any kind is returned.
This is the default source selection policy (using kBCOVSourceURLSchemeHTTPS as the scheme).
Declared In
BCOVBasicSessionProvider.h
+ sourceSelectionHLS
Select the first video in HLS, regardless of scheme. If no HLS source is found, select the first source with a deliveryType of “MP4”. If neither is found, the first source of any kind is returned.
+ (BCOVBasicSessionProviderSourceSelectionPolicy)sourceSelectionHLS
Return Value
A source selection policy that prefers HLS over MP4.
Discussion
Select the first video in HLS, regardless of scheme. If no HLS source is found, select the first source with a deliveryType of “MP4”. If neither is found, the first source of any kind is returned.
Declared In
BCOVBasicSessionProvider.h