diff --git a/interfaces/kits/js/@ohos.dsoftbus.transmission.d.ts b/interfaces/kits/js/@ohos.dsoftbus.transmission.d.ts index 1ef1fc20e6a05a0a17dd06dbb19525ef7286bfd2..dd965fbbf6954720a3dcd01315214778db67c6e6 100644 --- a/interfaces/kits/js/@ohos.dsoftbus.transmission.d.ts +++ b/interfaces/kits/js/@ohos.dsoftbus.transmission.d.ts @@ -101,20 +101,6 @@ declare namespace transmission { */ function sendMessage(socket: number, data: Uint8Array); - /** - * Sends stream data. - * - * @param { number } socket - Indicates the unique socket fd. - * @param { string } data - Indicatesthe stream data to send. - * @param { StreamFrameInfo } param - Indicatesthe param data to send. - * @throws { BusinessError } 202 - If the system permission is denied. - * @throws { BusinessError } 401 - If the reason is not valid. - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - function sendStream(socket: number, data: string, param?: StreamFrameInfo); - /** * Sends files data. * @@ -464,30 +450,6 @@ declare namespace transmission { * @since 12 */ DATA_TYPE_FILE, - /** - * Raw stream data. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - DATA_TYPE_RAW_STREAM, - /** - * Video stream data. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - DATA_TYPE_VIDEO_STREAM, - /** - * Audio stream data. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - DATA_TYPE_AUDIO_STREAM, } /** @@ -560,19 +522,6 @@ declare namespace transmission { */ onMessage(socket: number, data: Uint8Array); - /** - * Called when stream data is received. - * This callback is invoked to notify that stream data is received. - * - * @param { number } socket - Indicates the unique socket fd. - * @param { string } data - Indicatesthe stream data to send. - * @param { StreamFrameInfo } param - Indicatesthe param data to send. - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - onStream(socket: number, data: string, param?: StreamFrameInfo); - /** * Called when file data is received. * This callback is invoked to notify that file data is received. @@ -675,53 +624,6 @@ declare namespace transmission { dataType?: TransDataType; } - /** - * Defines the frame information for stream transmission. - * - * @typedef StreamFrameInfo - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - interface StreamFrameInfo { - - /** - * TimeStamp. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - timeStamp: number; - - /** - * SeqNum. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - seqNum: number; - - /** - * seqSubNum. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - seqSubNum: number; - - /** - * Level. - * - * @syscap SystemCapability.Dsoftbus.Transmission - * @systemapi - * @since 12 - */ - level: number; - } - /** * Defines the file event. *