Search

CN-122002082-A - Multimedia data stream method, device, electronic equipment and program product

CN122002082ACN 122002082 ACN122002082 ACN 122002082ACN-122002082-A

Abstract

The embodiment of the application discloses a multimedia data stream method, a device, electronic equipment and a program product. The method is applied to first electronic equipment, and also comprises a plurality of second electronic equipment under a local area network connected with the first electronic equipment; the method comprises the steps of collecting multimedia data, encoding the multimedia data through an encoding module according to target encoding parameters to obtain media streams, wherein the target encoding parameters are determined according to transmission capacities corresponding to a plurality of data transmission channels among a plurality of electronic devices under a local area network, and the media streams are sent to the target second electronic devices through the data transmission channels among one or more target second electronic devices. According to the multimedia data circulation method, the device, the electronic equipment and the program product, the one-to-many multimedia data sharing function is realized, the power consumption generated by the first electronic equipment can be reduced, and the stability of multimedia data transmission is ensured.

Inventors

  • ZHU HAITAO
  • WANG JIAN

Assignees

  • 深圳市欢太科技有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (13)

  1. 1. The multimedia data streaming method is characterized by being applied to a first electronic device, and further comprising a plurality of second electronic devices under a local area network connected with the first electronic device, wherein the method comprises the following steps: collecting multimedia data; The multimedia data is encoded through an encoding module according to target encoding parameters to obtain a media stream, wherein the target encoding parameters are determined according to transmission capacities respectively corresponding to a plurality of data transmission channels among a plurality of electronic devices under the local area network, and the plurality of data transmission channels at least comprise the data transmission channels between the first electronic device and one or more target second electronic devices; And sending the media stream to each target second electronic device through a data transmission channel between the target second electronic device and the target second electronic devices.
  2. 2. The method of claim 1, wherein the target coding parameter comprises a target code rate, and wherein the transmission capabilities respectively corresponding to the plurality of data transmission channels comprise transmission bandwidths respectively corresponding to the plurality of data transmission channels.
  3. 3. The method of claim 1, wherein the plurality of second electronic devices are each the target second electronic device, or And establishing a data transmission channel between one or more other second electronic devices and any target second electronic device, wherein the other second electronic devices refer to second electronic devices except the target second electronic device in the second electronic devices.
  4. 4. A method according to claim 3, wherein in case the target second electronic device establishes a data transmission channel with the other second electronic device, the target second electronic device is further configured to forward the media stream to the other second electronic device via the data transmission channel with the other second electronic device.
  5. 5. The method according to any one of claims 1-4, wherein the first electronic device and the plurality of second electronic devices respectively establish control transmission channels, and before the encoding module encodes the multimedia data according to the target encoding parameters to obtain a media stream, the method further comprises: and respectively receiving the transmission capacity of the data transmission channel corresponding to each second electronic device, which is sent by each second electronic device, through the control transmission channels among the plurality of second electronic devices.
  6. 6. The method of claim 5, wherein the method further comprises: receiving a key frame request sent by the second electronic equipment through any control transmission channel; And generating key frame data through the coding module in response to the key frame request, and sending the key frame data to the target second electronic devices through data transmission channels between the key frame data and the target second electronic devices.
  7. 7. The method of claim 1, wherein after the encoding of the multimedia data by the encoding module according to the target encoding parameters, the method further comprises: Copying the media stream to obtain a plurality of media streams under the condition that the first electronic device establishes a data transmission channel with a plurality of target second electronic devices; said sending said media stream to each of said target second electronic devices via a data transmission channel with said one or more target second electronic devices, comprising: And establishing a data transmission channel with the plurality of target second electronic devices, and respectively sending corresponding media streams to each target second electronic device.
  8. 8. The method according to claim 1, wherein the method further comprises: Under the condition that the first electronic equipment and the first target second electronic equipment are in communication connection, an encoding module is created, and a data transmission channel between the encoding module and the first target second electronic equipment is created as a main data transmission channel; And under the condition that the first electronic equipment establishes communication connection with the new target second electronic equipment, a data transmission channel between the first electronic equipment and the new target second electronic equipment is established as a side data transmission channel.
  9. 9. The method of claim 8, wherein the method further comprises: and under the condition that the main data transmission channel is disconnected, continuously encoding the acquired multimedia data through the encoding module, and transmitting the media stream output by the encoding module to the target second electronic equipment corresponding to the side data transmission channel through the side data transmission channel.
  10. 10. The method according to claim 1, wherein the method further comprises: And determining the number of target channels according to the performance parameters corresponding to the first electronic equipment, wherein the number of data transmission channels established by the first electronic equipment and the one or more target second electronic equipment is smaller than or equal to the number of target channels.
  11. 11. The multimedia data streaming device is characterized by being applied to a first electronic device, and further comprising a plurality of second electronic devices under a local area network connected with the first electronic device, wherein the device comprises: the acquisition module is used for acquiring multimedia data; The multimedia coding module is used for coding the multimedia data through the coding module according to target coding parameters to obtain a media stream, wherein the target coding parameters are determined according to transmission capacities respectively corresponding to a plurality of data transmission channels among a plurality of electronic devices under the local area network, and the plurality of data transmission channels at least comprise the data transmission channels between the first electronic device and one or more target second electronic devices; and the sending module is used for sending the media stream to each target second electronic device through a data transmission channel between the sending module and the one or more target second electronic devices.
  12. 12. An electronic device, comprising a memory, a processor, and a transceiver unit, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the electronic device to implement the method of any one of claims 1-10.
  13. 13. A computer program product comprising a computer program which, when executed by a processor in an electronic device, causes the electronic device to implement the method of any one of claims 1-10.

Description

Multimedia data stream method, device, electronic equipment and program product Technical Field The present application relates to the field of communications technologies, and in particular, to a method and apparatus for multimedia data streaming, an electronic device, and a program product. Background In life and work, users often encounter scenes that need to share multimedia data of one electronic device to a plurality of other electronic devices, such as scenes that display images of one electronic device are projected to a plurality of other electronic devices to be displayed, and music played by one electronic device is sent to a plurality of other electronic devices to be played. In the current multimedia data sharing scheme, the source electronic device (i.e. the electronic device sending the shared multimedia data) generally needs to consume very large resources to support the sharing of the multimedia data, which results in a large power consumption of the source electronic device. Disclosure of Invention The embodiment of the application discloses a multimedia data circulation method, a device, electronic equipment and a program product, which can reduce the power consumption generated by first electronic equipment and ensure the stability of multimedia data transmission while realizing a one-to-many multimedia data sharing function. The embodiment of the application discloses a multimedia data circulation method which is applied to first electronic equipment, and also comprises a plurality of second electronic equipment under a local area network connected with the first electronic equipment, wherein the method comprises the following steps: collecting multimedia data; The multimedia data is encoded through an encoding module according to target encoding parameters to obtain a media stream, wherein the target encoding parameters are determined according to transmission capacities respectively corresponding to a plurality of data transmission channels among a plurality of electronic devices under the local area network, and the plurality of data transmission channels at least comprise the data transmission channels between the first electronic device and one or more target second electronic devices; And sending the media stream to each target second electronic device through a data transmission channel between the target second electronic device and the target second electronic devices. The embodiment of the application discloses a multimedia data flow device which is applied to first electronic equipment, and also comprises a plurality of second electronic equipment under a local area network connected with the first electronic equipment, wherein the device comprises: the acquisition module is used for acquiring multimedia data; The multimedia coding module is used for coding the multimedia data through the coding module according to target coding parameters to obtain a media stream, wherein the target coding parameters are determined according to transmission capacities respectively corresponding to a plurality of data transmission channels among a plurality of electronic devices under the local area network, and the plurality of data transmission channels at least comprise the data transmission channels between the first electronic device and one or more target second electronic devices; and the sending module is used for sending the media stream to each target second electronic device through a data transmission channel between the sending module and the one or more target second electronic devices. The embodiment of the application discloses an electronic device, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program when executed by the processor causes the processor to realize the method. The embodiment of the application discloses a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the method as described above. Embodiments of the application disclose a computer program product comprising a computer program which, when executed by a processor, implements a method as described above. The local area network can comprise a first electronic device and a plurality of second electronic devices, wherein the first electronic device collects multimedia data, codes the multimedia data according to target coding parameters through a coding module to obtain a media stream, and then sends the media stream to each target second electronic device through a data transmission channel between the media stream and one or more target second electronic devices. In the embodiment of the application, under the condition that a plurality of data transmission channels are established among a plurality of electronic devices under a local area network, the first electronic device establishes the data transmission channels with one or a plurality of target second electronic devices,