search

Home  >  Q&A  >  body text

objective-c - How can I obtain the attributes of Qiniu Video Live Streaming or print the stream information?

/**
Video stream width

@waring This attribute is only valid for rtmp/flv live broadcast and ffmpeg on-demand

@since v2.3.0
*/
@property (nonatomic, assign, readonly) int width;

/**
High video streaming

@waring This attribute is only valid for rtmp/flv live broadcast and ffmpeg on-demand

@since v2.3.0
*/
@property (nonatomic, assign, readonly) int height;

/**
Display ratio of video stream

@discussion displayRatioWidth = 0 means the parameter is invalid

@since v2.4.0
*/
@property (nonatomic, assign, readonly) int displayRatioWidth;
@property (nonatomic, assign, readonly) int displayRatioHeight;

给我你的怀抱给我你的怀抱2842 days ago1050

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-02 09:39:35

    You can request the server to obtain it. The server has a status() interface. This interface can obtain the real-time frame rate and code rate of the live stream

    reply
    0
  • Cancelreply