ZMVideoSDKLiveStreamHelper.h 856 B

12345678910111213141516171819202122232425262728293031323334
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /**
  4. @brief Live stream helper interface.
  5. */
  6. @interface ZMVideoSDKLiveStreamHelper : NSObject
  7. /**
  8. @brief Start live stream.
  9. @param streamUrl The live stream url.
  10. @param url The live stream broadcast url.
  11. @param key The live stream key.
  12. @return If the function succeeds, it will return ZMVideoSDKErrors_Success.
  13. */
  14. -(ZMVideoSDKErrors)startLiveStream:(NSString *)streamUrl broadcastUrl:(NSString *)url liveStreamKey:(NSString *)key;
  15. /**
  16. @brief Stop live stream.
  17. @return If the function succeeds, it will return ZMVideoSDKErrors_Success.
  18. */
  19. -(ZMVideoSDKErrors)stopLiveStream;
  20. /**
  21. @brief Determine if can start living stream.
  22. @return If the function succeeds, it will return ZMVideoSDKErrors_Success.
  23. */
  24. -(ZMVideoSDKErrors)canStartLiveStream;
  25. @end
  26. NS_ASSUME_NONNULL_END