BNBMedia

Objective-C

@interface BNBMedia : NSObject

/**
 *set playback start position.
 *@param position (float): playback start position (seconds)
 */
- (void)setStartPosition:(float)position;

/**
 *set playback end position.
 *@param position (float): playback end position (seconds)
 */
- (void)setEndPosition:(float)position;

/**
 *set playback looping.
 *@param looped (bool): loop playback flag
 */
- (void)setLooped:(BOOL)looped;

/**@return loop playback flag (bool) */
- (BOOL)isLooped;

/**@return playback start position (float) */
- (float)getStartPosition;

/**@return playback end position (float) */
- (float)getEndPosition;

/**@return playback active flag. */
- (BOOL)isPlaying;

/**starts video playback */
- (void)play;

/**pause video playback */
- (void)pause;

/**stop video playback */
- (void)stop;

/**resume paused video playback */
- (void)resume;

@end

Swift

class BNBMedia : NSObject

Undocumented

  • set playback start position.

    Declaration

    Objective-C

    - (void)setStartPosition:(float)position;

    Swift

    func setStartPosition(_ position: Float)

    Parameters

    position

    (float): playback start position (seconds)

  • set playback end position.

    Declaration

    Objective-C

    - (void)setEndPosition:(float)position;

    Swift

    func setEndPosition(_ position: Float)

    Parameters

    position

    (float): playback end position (seconds)

  • set playback looping.

    Declaration

    Objective-C

    - (void)setLooped:(BOOL)looped;

    Swift

    func setLooped(_ looped: Bool)

    Parameters

    looped

    (bool): loop playback flag

  • Declaration

    Objective-C

    - (BOOL)isLooped;

    Swift

    func isLooped() -> Bool

    Return Value

    loop playback flag (bool)

  • Declaration

    Objective-C

    - (float)getStartPosition;

    Swift

    func getStartPosition() -> Float

    Return Value

    playback start position (float)

  • Declaration

    Objective-C

    - (float)getEndPosition;

    Swift

    func getEndPosition() -> Float

    Return Value

    playback end position (float)

  • Declaration

    Objective-C

    - (BOOL)isPlaying;

    Swift

    func isPlaying() -> Bool

    Return Value

    playback active flag.

  • starts video playback

    Declaration

    Objective-C

    - (void)play;

    Swift

    func play()
  • pause video playback

    Declaration

    Objective-C

    - (void)pause;

    Swift

    func pause()
  • stop video playback

    Declaration

    Objective-C

    - (void)stop;

    Swift

    func stop()
  • resume paused video playback

    Declaration

    Objective-C

    - (void)resume;

    Swift

    func resume()