takePlayStreamSnapshot method
Take a snapshot of the playing stream.
Available since: 1.17.0
Description: Take a screenshot of the specified stream ID.
When to call: after called startPlayingStream.
Restrictions: None.
Related callbacks: onPlayerTakeSnapshotResult
Screenshot data callback.
Note: This function is only available in ZegoExpressVideo SDK!
streamID
Stream ID to be snapshot.- Returns Results of take play stream snapshot.
Implementation
Future<ZegoPlayerTakeSnapshotResult> takePlayStreamSnapshot(
String streamID) async {
return await ZegoExpressImpl.instance.takePlayStreamSnapshot(streamID);
}