Updated on 2023-06-21 GMT+08:00

Creating a Stream

Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.

For details about how to configure parameters, see configuration methods in .

  • stream_type= " " #Not specified.

If stream_type is not specified, configure the parameters of Dump_switch in the createstream_sample.py file.

  • stream_type= "FILE" #Set to file.

If stream_type is set to File, configure the parameters of Dump_switch_FILE in the createstream_sample.py file.

After configuring the parameters, run the createstream_sample.py file to call createStream_test by default. If response code 201 is returned, the stream is successfully created.