// // SellyPublicDefinition.h // Pods // // Created by Caleb on 22/8/25. // #ifndef SellyPublicDefinition_h #define SellyPublicDefinition_h typedef NS_ENUM(NSInteger, SellyPlayerScalingMode) { SellyPlayerScalingModeNone, // No scaling SellyPlayerScalingModeAspectFit, // Uniform scale until one dimension fits SellyPlayerScalingModeAspectFill, // Uniform scale until the movie fills the visible bounds. One dimension may have clipped contents }; typedef NS_ENUM(NSInteger, SellyPlayerState) { SellyPlayerStateIdle = 0, SellyPlayerStateConnecting, SellyPlayerStatePlaying, SellyPlayerStatePaused, SellyPlayerStateStoppedOrEnded, SellyPlayerStateFailed }; typedef NS_ENUM(NSInteger, SellyCloudMPMovieFinishReason) { SellyCloudMPMovieFinishReasonPlaybackEnded, SellyCloudMPMovieFinishReasonPlaybackError, SellyCloudMPMovieFinishReasonUserExited }; typedef NS_ENUM(NSInteger, SellyLiveState) { SellyLiveStateIdle = 0, // 初始/未开始 SellyLiveStateConnecting, // 建立会话:RTMP连接 或 SDP/ICE协商中 SellyLiveStatePublishing, // 已在上行推流(码流稳定输出) SellyLiveStateReconnecting, // 断线重试中(短暂) SellyLiveStateStopped, // 正常结束(stop) SellyLiveStateFailed // 异常结束(错误/不可恢复) }; typedef NS_ENUM (NSUInteger, SellyCloudLiveSocketErrorCode) { SellyCloudLiveSocketError_PreView = 201, ///< 预览失败 SellyCloudLiveSocketError_GetStreamInfo = 202, ///< 获取流媒体信息失败 SellyCloudLiveSocketError_ConnectSocket = 203, ///< 连接socket失败 SellyCloudLiveSocketError_Verification = 204, ///< 验证服务器失败 SellyCloudLiveSocketError_ReConnectTimeOut = 205, ///< 重新连接服务器超时 SellyCloudLiveSocketError_HttpRequest = 400, //http请求报错 }; typedef NS_ENUM(NSInteger, SellyVideoCallType) { SellyVideoCallTypeAudio, // 语音 SellyVideoCallTypeVideo, // 视频 }; //信令连接状态 typedef NS_ENUM(NSInteger, SellyRoomConnectionState) { SellyRoomStateDisconnected, SellyRoomStateConnecting, SellyRoomStateConnected, SellyRoomStateReconnecting, SellyRoomStateFailed, }; //屏幕分享状态 typedef NS_ENUM(uint8_t, SellyScreenShareState) { SellyScreenShareStateStarted = 1, // 开始 SellyScreenShareStatePaused = 2, // 暂停 SellyScreenShareStateResumed = 3, // 恢复 SellyScreenShareStateStopped = 4, // 结束 }; #endif /* SellyPublicDefinition_h */