CN111935525A - Method for playing multimedia and electronic terminal equipment - Google Patents

Method for playing multimedia and electronic terminal equipment Download PDF

Info

Publication number
CN111935525A
CN111935525A CN202010784170.9A CN202010784170A CN111935525A CN 111935525 A CN111935525 A CN 111935525A CN 202010784170 A CN202010784170 A CN 202010784170A CN 111935525 A CN111935525 A CN 111935525A
Authority
CN
China
Prior art keywords
playing
multimedia data
multimedia
electronic terminal
terminal equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010784170.9A
Other languages
Chinese (zh)
Inventor
易敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010784170.9A priority Critical patent/CN111935525A/en
Publication of CN111935525A publication Critical patent/CN111935525A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a method for playing multimedia and an electronic terminal device, wherein the method is used for the terminal device and comprises the following steps: the electronic terminal equipment is connected with at least two playing modules; the electronic terminal equipment generates multimedia data; and the electronic terminal equipment respectively sends the multimedia data to the playing modules according to the control strategy. The advantages are that: the method solves the problem that various multimedia devices cannot play multimedia data synchronously, improves the use experience of users, and brings convenience to the life of people.

Description

Method for playing multimedia and electronic terminal equipment
Technical Field
The present application relates to the field of digital communications, and in particular, to a method for playing multimedia and an electronic terminal device.
Background
As mobile phone applications have begun to become wireless, mobile phones can connect to multiple multimedia devices in a wireless manner (such as wifi and bluetooth), and users begin to request that the same piece of music can be played on multiple devices at the same time. For example, two real wireless bluetooth headsets are connected to the mobile phone, music is played at the mobile phone end, the music can be played on the two bluetooth headsets simultaneously, and audio received by the two bluetooth headsets has no time delay.
In some implementations, although the mobile phone can be supported to connect two bluetooth headsets and play music on the bluetooth headsets synchronously, if the mobile phone is connected with one bluetooth device (connected in a bluetooth mode), and in addition, the mobile phone is connected with an audio device (connected in a wifi mode) through wifi, because the two transmission modes are different, and the wifi transmission is easily interfered, the phenomenon that the audio transmission is asynchronous easily occurs, as a result, the two paths of sounds are asynchronous, and the actual experience of a user is very poor.
In some implementations, only audio low-delay synchronous playing of a plurality of bluetooth devices connected to a mobile phone can be realized, but audio low-delay synchronous playing between bluetooth and wifi devices cannot be realized at present. The mobile phone end plays music on the audio equipment end through the Bluetooth, but the current research is not as deep as that of playing music on the audio equipment through the Bluetooth, and the scheme is not as mature, but a part of wifi equipment exists in the actual market. In addition, the audio played by connecting the wifi device through wifi is generally fixed on a channel to work, and transmission packet loss is easily caused by interference. Therefore, music cannot be played on the Bluetooth device and the wifi device synchronously on the mobile phone well.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
An object of the present application is to provide a method for playing multimedia and an electronic terminal device, the method comprising: the electronic terminal equipment is connected with at least two playing modules; the electronic terminal equipment generates audio data; and the electronic terminal equipment respectively sends the audio data to the playing modules according to the control strategy. The method solves the problem that various audio devices cannot play audio synchronously, improves the use experience of users, and brings convenience to the life of people.
In order to achieve the purpose, the application is realized by the following technical scheme:
a method for playing multimedia, which is used for a terminal device, the method comprising:
the electronic terminal equipment is connected with at least two playing modules;
the electronic terminal equipment generates multimedia data;
and the electronic terminal equipment respectively sends the multimedia data to the playing modules according to the control strategy.
Preferably, the multimedia data comprises audio data and/or video data.
Preferably, the method further comprises:
and creating a buffer area on the electronic terminal equipment, wherein the buffer area stores the generated multimedia data and respectively sends the multimedia data to the playing module.
Preferably, the buffer comprises a buffer of the respective playing module.
Preferably, the control strategy is: and after the multimedia data pass through the electronic terminal equipment, the multimedia data are simultaneously or delayed for a period of time and sent to the playing module for playing.
Preferably, when there is a delay in transmitting the multimedia data to the playing module, the transmission time differences of the playing modules are compared, and the multimedia data is transmitted by delaying the corresponding transmission time differences, so as to ensure that different playing modules play simultaneously.
Preferably, the time for the electronic terminal device to transmit the multimedia data to the two playing modules is time a and time B, respectively, and the transmission time difference is an absolute value of a difference between the time a and the time B.
Preferably, when there is no delay in transmitting the multimedia data to the playing module, the multimedia data is simultaneously transmitted to different playing modules.
Preferably, the method further comprises:
and the electronic terminal equipment monitors the error rate and/or the packet loss rate of multimedia data transmitted to different playing modules, and if the error rate and/or the packet loss rate change value do not accord with the preset conditions, the transmission time difference of the multimedia data transmitted by different playing modules is judged again.
Preferably, the playing module is a bluetooth device or a wifi device.
Preferably, the at least two playing modules are at least two different types or the same type of playing modules.
Preferably, an electronic terminal device comprises: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the method of playing multimedia when executing the program.
Preferably, a computer readable storage medium, on which a program for a multi-playing module to play multimedia synchronously is stored, and when executed by a processor, the program for the multi-playing module to play multimedia synchronously realizes the steps of the method for playing multimedia.
The application has the following advantages:
the application provides a method for playing multimedia and an electronic terminal device, wherein the method comprises the following steps: the electronic terminal equipment is connected with at least two playing modules; the electronic terminal equipment generates multimedia data; the electronic terminal equipment sends the multimedia data to the playing modules respectively according to the control strategy, the method solves the problem that various playing devices cannot play the multimedia data synchronously, improves the use experience of users, and brings convenience to the life of people.
Drawings
Fig. 1 is a schematic hardware structure diagram of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a method for playing multimedia according to a first embodiment of the present application;
fig. 4 is a schematic diagram illustrating a method for playing multimedia according to a second embodiment of the present application.
Detailed Description
As described in the background art, in some implementations, a mobile phone can only implement low-delay synchronous audio playing of multiple bluetooth devices, and cannot implement synchronous playing of multiple audio devices. For example, for bluetooth devices and wifi devices (such as wifi loudspeaker boxes) on the market, when a user connects multiple bluetooth devices with a mobile phone, multiple bluetooth devices can play audio simultaneously, but when the mobile phone connects the bluetooth devices and the wifi devices simultaneously, the audio played by bluetooth connection is relatively stable, the delay is small, transmission packet loss cannot be caused, the audio played by wifi connection is generally fixed on a channel to work, although the bandwidth is relatively high, the delay is very long, and the transmission packet loss (audio data loss) is caused by interference. When a user needs two audio devices to play audio simultaneously, a delay error exists, synchronous non-delay playing of the two audio devices cannot be realized, and the use experience of the user is reduced.
Based on the above research, the core idea of the present application is to provide a method for playing multimedia and an electronic terminal device, where the method mainly includes the following processes: the electronic terminal equipment is connected with at least two playing modules; the electronic terminal equipment generates multimedia data; and the electronic terminal equipment respectively sends the multimedia data to the playing modules according to the control strategy. Specifically, the electronic terminal device is connected with at least two playing devices, and a user generates multimedia data on the electronic terminal device and sends audio data to the playing devices according to different rules. By adopting the technical means, the problem that various playing devices on the market cannot play multimedia data synchronously is solved, different use requirements of users can be met, the use experience of the users is greatly improved, and the satisfaction of the users is improved.
The following description of specific embodiments of the present application will be described in more detail with reference to the schematic drawings. Advantages and features of the present application will become apparent from the following description and claims. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present application.
In the interest of clarity, not all features of an actual implementation are described. In the following description, well-known functions or constructions are not described in detail since they would obscure the application with unnecessary detail. It will of course be appreciated that in the development of any such actual embodiment, numerous implementation-specific details must be set forth in order to achieve the developer's specific goals, such as compliance with system-related and business-related constraints, which will vary from one implementation to another. Moreover, it will be appreciated that such a development effort might be complex and time-consuming, but would nevertheless be a routine undertaking for those of ordinary skill in the art.
It is noted that, in this document, relational terms such as "first," "second," "third," and the like, if any, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning by themselves. Thus, "module", "component" or "unit" may be used mixedly.
The electronic terminal device may be implemented in various forms. For example, the electronic terminal devices described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm top computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
Example one
As shown in fig. 3, a method for playing multimedia according to the present application is applied to a terminal device, and specifically includes: s1, connecting at least two playing modules to the electronic terminal device; s2, the electronic terminal equipment generates multimedia data; and S3, the electronic terminal equipment respectively sends the multimedia data to the playing modules according to the control strategy.
Wherein the multimedia data comprises audio data and/or video data. The at least two playing modules are at least two playing modules with different types or the same type. The multimedia data is generated by a multimedia module of the electronic terminal device. In this embodiment, the playing module is a bluetooth device or a wifi device, and certainly, the playing module is not limited to the above two devices, but may also be other devices capable of playing audio, such as a smart television or mp4, a tablet device, an NFC module, or a UWB module, and is not described herein again.
The control strategy in the step S3 is: and after the multimedia data pass through the electronic terminal equipment, the multimedia data are simultaneously or delayed for a period of time and sent to the playing module for playing.
The control strategy specifically comprises the following steps: when the multimedia data is transmitted to the playing modules with delay, comparing the transmission time difference of each playing module, and transmitting the multimedia data by delaying the corresponding transmission time difference so as to ensure that different playing modules play simultaneously; and when the multimedia data is transmitted to the playing module without delay, the multimedia data is simultaneously transmitted to different playing modules. If the time for transmitting the multimedia data to the two playing modules by the electronic terminal equipment is time A and time B respectively, the transmission time difference is the absolute value of the difference value of the time A and the time B.
In order to ensure the transmission efficiency of multimedia data, the method for playing multimedia of the present application further includes: and the electronic terminal equipment monitors the error rate and the packet loss rate of multimedia data transmitted to different playing modules, and if the error rate and the packet loss rate change values do not accord with preset conditions, the transmission time difference of the multimedia data transmitted by different playing modules is judged again.
An electronic terminal device of this embodiment includes: a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the method of playing multimedia when executing the program.
In addition, in this embodiment, the playing module connected to the electronic terminal device is a bluetooth device and a wifi device. And the electronic terminal equipment monitors the error rate and/or the packet loss rate of multimedia data transmitted to different playing modules, and if the error rate and/or the packet loss rate change value does not accord with the preset conditions, the transmission time difference of the multimedia data transmitted by different playing modules is judged again.
In addition, the present embodiment also provides a computer-readable storage medium, where a program for playing multimedia synchronously by multiple playing modules is stored on the computer-readable storage medium, and when the program for playing multimedia synchronously by multiple playing modules is executed by a processor, the steps of the method for playing multimedia are implemented.
Example two
Based on the characteristics of the first embodiment, as shown in fig. 4, this embodiment includes another method for playing multimedia, where the method is applied to a terminal device, and specifically includes: the T1 and the electronic terminal device are connected with the Bluetooth device and the wifi device; t2, generating multimedia data by the electronic terminal equipment; t3, creating a buffer area for controlling the sending speed of the multimedia data on the electronic terminal equipment, storing the generated multimedia data in the buffer area, and sending the multimedia data to the playing module respectively; and T4, the electronic terminal equipment respectively sends the multimedia data to the playing module according to the control strategy.
Wherein the multimedia data is generated by a multimedia module of the electronic terminal device. The buffer zone comprises buffer zones of various playing modules, and in the embodiment, the created buffer zone comprises a Bluetooth device buffer zone and a wifi device buffer zone. The Bluetooth device buffer area sends multimedia data to the Bluetooth device through a Bluetooth data channel, and the wifi device sends the multimedia data to the wifi device through a wifi data channel.
After the electronic terminal device is connected with the Bluetooth device and the wifi device, 10 probe frames are respectively sent to the Bluetooth data channel and the wifi data channel, the round trip time RTT of the probe frames is respectively counted, and the round trip time RTT is used as the normal synchronization time.
In this embodiment, the round trip time of each probe frame in the bluetooth data channel is a first round trip time RTT1, which is an average value of the round trip times of each probe frame in the bluetooth data channel; the round trip time of each probe frame in the wifi data channel is a second round trip time RTT2, which is an average value of the round trip times of each probe frame in the wifi data channel.
The control strategy in the step T4 is: and after the multimedia data pass through the buffer area, the multimedia data are simultaneously or delayed for a period of time and sent to the playing module to be played. And selecting to send the multimedia data at the same time or with a delay according to the time difference of the multimedia data transmitted to each playing module by the electronic terminal equipment. The time difference is specifically: if the time for transmitting the multimedia data to the two playing modules by the electronic terminal equipment is time A and time B respectively, the transmission time difference is the absolute value of the difference value of the time A and the time B.
The control strategy specifically comprises the following steps: when the multimedia data is transmitted to the playing modules with delay (the time difference is not zero), comparing the transmission time difference of each playing module, and transmitting the multimedia data by delaying the corresponding transmission time difference so as to ensure that different playing modules play simultaneously; and when no delay exists in the transmission of the multimedia data to the playing modules (the time difference is zero), the multimedia data are simultaneously sent to different playing modules.
In this embodiment, the multimedia data is played by clicking, and the multimedia data is sent to the bluetooth data channel through the bluetooth device buffer area and is sent to the wifi data channel through the wifi device buffer area.
When the first round trip time RTT1 of the Bluetooth data channel is inconsistent with the second round trip time RTT2 of the wifi data channel, solving a first round trip time difference delta RTT1Said first round trip time difference Δ RTT1Is the absolute value of the difference between the first round trip time RTT1 and the second round trip time RTT2, i.e. Δ RTT1=|RTT1-RTT2|。
In this embodiment, the first round trip time RTT1 is smaller than the second round trip time RTT2, and when the buffer sends the multimedia data to the wifi data channel, the buffer delays the first round trip time difference Δ RTT1And then sending the multimedia data to a Bluetooth data channel so as to enable the Bluetooth equipment and the wifi equipment to synchronously play audio. Of course, in other embodiments, if the first round trip time RTT1 is greater than the second round trip time RTT2, the buffer delays the first round trip time difference Δ RTT from the time when the buffer sends the multimedia data to the bluetooth data channel1And then, the multimedia data is sent to a wifi data channel, so that the Bluetooth device and the wifi device synchronously play audio.
Because the multimedia data played by wifi connection is generally fixed on a wifi data channel for transmission, although the bandwidth ratio is higher, the delay is very long, and the transmission packet loss is easily caused by interference. Therefore, in order to ensure the multimedia data transmission efficiency, the method for playing multimedia of the present application further includes: the electronic terminal device monitors the error rate and the packet loss rate of multimedia data transmission in the wifi data channel in different time periods, and when the error rate and the packet loss rate change value of the wifi data channel in the adjacent time period do not meet preset conditions (in this embodiment, when the error rate and the packet loss rate are continuously increased, and the increase range is continuously increased), the difference of the transmission time of the multimedia data transmission of different playing modules is re-judged and adjusted.
The method specifically comprises the following steps of monitoring the bit error rate and the packet loss rate of multimedia data transmission in wifi data channels in different time periods: monitoring values of an error rate and a packet loss rate in n fixed time periods in a wifi data channel, respectively defining the values of the error rate and the packet loss rate in each time period as T1, T2, T3,. cndot., Tn, and calculating a difference value delta T (n) between the error rate and the packet loss rate in adjacent time periods, wherein the delta T (n) is T (n +1) -T (n). In this embodiment, the fixed period is 50ms, and the n fixed periods are 5 fixed periods.
The specific steps of re-judging and adjusting the transmission time difference of the multimedia data transmitted by different playing modules are as follows: the buffer resends a number of probe frames (which may be 10) to the wifi data channel; calculating the average round trip time of each probe frame as the third round trip time RTT3 of the wifi device; the buffer adjusts a transmission time of the multimedia data according to the first round trip time RTT1 and the third round trip time RTT 3.
When the first round trip time RTT1 and the third round trip time RTT3 are consistent, the buffer zone simultaneously sends multimedia data to the Bluetooth data channel and the wifi data channel, so that the Bluetooth device and the wifi device synchronously play audio.
When the first round trip time RTT1 and the third round trip time RTT3 do not coincide, a difference between the third round trip time RTT3 and the first round trip time RTT1 is calculated, and the absolute value of the difference is used as the second round trip time difference Δ RTT2. And after the audio of the electronic terminal equipment starts to play, the multimedia data enters a buffer zone. The buffer zone sends multimedia data to the wifi data channel, and the buffer zone delays a second round-trip time difference delta RTT2And then sending the multimedia data to a Bluetooth data channel so as to enable the Bluetooth equipment and the wifi equipment to synchronously play audio. In other embodiments, the buffer transmits multimedia data to the bluetooth data channel, the buffer delaying a second round trip time difference Δ RTT2And then, the multimedia data is sent to a wifi data channel, so that the Bluetooth device and the wifi device synchronously play audio.
In addition, the present application also provides an electronic terminal device using the method for synchronously playing audio by multiple playing modules, the electronic terminal device is implemented based on a system for synchronously playing audio by multiple playing modules, the system for synchronously playing audio by multiple playing modules comprises: the device comprises an audio module, a buffer module, a data channel module and a control module.
The audio module is used for providing multimedia data, and the buffer module comprises a buffer area which is used for transmitting the multimedia data, sending a tentative frame and controlling the sending speed of the multimedia data. The multimedia data are transmitted to the wifi device or the Bluetooth device through the data channel module, and the control module is used for controlling each module in the system.
In this embodiment, the buffer includes a bluetooth device buffer and a wifi device buffer. The data channel module comprises a Bluetooth data channel and a wifi data channel.
In addition, the multi-playing module synchronous playing audio system further comprises: the device comprises a calculation module and a monitoring module.
The calculating module is used for recording the round trip time of each probe frame when the system runs and calculating the average value and the difference value of the round trip time. The monitoring module is used for monitoring the error rate and the packet loss rate of multimedia data transmission in the data channel module.
Based on the modules, the electronic terminal equipment is connected with at least two playing modules; the electronic terminal equipment generates multimedia data; and the electronic terminal equipment simultaneously or delays sending the multimedia data to the playing module according to the control strategy.
To sum up, the present application provides a method for playing multimedia and an electronic terminal device, where the method includes: the electronic terminal equipment is connected with at least two playing modules; the electronic terminal equipment generates multimedia data; and the electronic terminal equipment respectively sends the multimedia data to the playing modules according to the control strategy. The method solves the problem that various playing devices cannot play multimedia data synchronously, improves the use experience of users, and brings convenience to the life of people.
Those skilled in the art will appreciate that the various embodiments described above may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. All or part of the steps in the methods according to the embodiments may be implemented by a program instructing related hardware, where the program may be stored in a storage medium readable by a computer device and used to execute all or part of the steps in the methods according to the embodiments.
The various embodiments described above are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a computer apparatus to produce a machine, such that the instructions, which execute via the processor of the computer apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present application further provides an apparatus, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method as described above.
The present application also provides a computer storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as described above.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method as described in the above various possible embodiments.
An embodiment of the present application further provides a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method described in the above various possible embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
It should be noted that step numbers such as S1 and S2 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S2 first and then S1 in specific implementation, which should be within the scope of the present application.
While the present disclosure has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the present disclosure. Numerous modifications and alterations to the present application will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of protection of the present application should be limited only by the attached claims.

Claims (10)

1. A method for playing multimedia, the method comprising:
the electronic terminal equipment is connected with at least two playing modules;
the electronic terminal equipment generates multimedia data;
and the electronic terminal equipment respectively sends the multimedia data to the playing modules according to the control strategy.
2. The method of claim 1, further comprising:
and creating a buffer area on the electronic terminal equipment, wherein the buffer area stores the generated multimedia data and respectively sends the multimedia data to the playing module.
3. The method of playing multimedia according to claim 2,
the buffer area comprises buffer areas of the playing modules.
4. The method of playing multimedia according to claim 1,
the control strategy is as follows: and after the multimedia data pass through the electronic terminal equipment, the multimedia data are simultaneously or delayed for a period of time and sent to the playing module for playing.
5. The method of playing multimedia according to claim 4,
and when the multimedia data is transmitted to the playing modules with delay, comparing the transmission time difference of each playing module, and transmitting the multimedia data by delaying the corresponding transmission time difference so as to ensure that different playing modules play simultaneously.
6. The method of playing multimedia according to claim 5,
the time for transmitting the multimedia data to the two playing modules by the electronic terminal equipment is respectively time A and time B, and the transmission time difference is the absolute value of the difference value of the time A and the time B.
7. The method of playing multimedia according to claim 4,
and when the multimedia data is transmitted to the playing module without delay, the multimedia data is simultaneously transmitted to different playing modules.
8. The method for playing multimedia as claimed in claim 5, wherein the method further comprises:
and the electronic terminal equipment monitors the error rate and/or the packet loss rate of multimedia data transmitted to different playing modules, and if the error rate and/or the packet loss rate change value do not accord with the preset conditions, the transmission time difference of the multimedia data transmitted by different playing modules is judged again.
9. The method of playing multimedia according to any one of claims 1 to 8,
the at least two playing modules are at least two playing modules with different types or the same type.
10. An electronic terminal device, comprising: processor, memory and computer program stored on the memory and executable on the processor, which when executed by the processor implements a method of playing multimedia as claimed in any one of claims 1 to 9.
CN202010784170.9A 2020-08-06 2020-08-06 Method for playing multimedia and electronic terminal equipment Pending CN111935525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010784170.9A CN111935525A (en) 2020-08-06 2020-08-06 Method for playing multimedia and electronic terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010784170.9A CN111935525A (en) 2020-08-06 2020-08-06 Method for playing multimedia and electronic terminal equipment

Publications (1)

Publication Number Publication Date
CN111935525A true CN111935525A (en) 2020-11-13

Family

ID=73307704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010784170.9A Pending CN111935525A (en) 2020-08-06 2020-08-06 Method for playing multimedia and electronic terminal equipment

Country Status (1)

Country Link
CN (1) CN111935525A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021175297A1 (en) * 2020-03-05 2021-09-10 华为技术有限公司 Distributed data transmission method, apparatus and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050286546A1 (en) * 2004-06-21 2005-12-29 Arianna Bassoli Synchronized media streaming between distributed peers
CN102984393A (en) * 2012-12-12 2013-03-20 深圳市中兴移动通信有限公司 Method for file transmission between mobile terminals and mobile terminal
JP2014212506A (en) * 2013-04-04 2014-11-13 日本放送協会 Content distribution server, content distribution system, and content distribution program
CN105703987A (en) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 Control method and apparatus for audio and video playing system
US20170019353A1 (en) * 2011-07-29 2017-01-19 Blackfire Research Corporation Two tier multiple sliding window mechanism for multidestination media applications
US20170104550A1 (en) * 2006-01-28 2017-04-13 Blackfire Research Corporation System for media rebroadcasting for synchronized rendering across multiple devices
US20170231508A1 (en) * 2015-12-21 2017-08-17 Zoll Medical Corporation Time synchronization in a medical device system or network
CN108696428A (en) * 2018-05-17 2018-10-23 北京大米科技有限公司 Routing detection method, routing node based on tunneling technique and central server
WO2019047239A1 (en) * 2017-09-11 2019-03-14 深圳传音通讯有限公司 Smart terminal and audio data multichannel transmission method therefor
CN109743619A (en) * 2019-01-16 2019-05-10 四川长虹电器股份有限公司 Smart television WiFi and Bluetooth coexistence optimization method and device
CN111263206A (en) * 2020-02-13 2020-06-09 Tcl移动通信科技(宁波)有限公司 Synchronous playing method and device of multimedia information, storage medium and mobile terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050286546A1 (en) * 2004-06-21 2005-12-29 Arianna Bassoli Synchronized media streaming between distributed peers
US20170104550A1 (en) * 2006-01-28 2017-04-13 Blackfire Research Corporation System for media rebroadcasting for synchronized rendering across multiple devices
US20170019353A1 (en) * 2011-07-29 2017-01-19 Blackfire Research Corporation Two tier multiple sliding window mechanism for multidestination media applications
CN102984393A (en) * 2012-12-12 2013-03-20 深圳市中兴移动通信有限公司 Method for file transmission between mobile terminals and mobile terminal
JP2014212506A (en) * 2013-04-04 2014-11-13 日本放送協会 Content distribution server, content distribution system, and content distribution program
US20170231508A1 (en) * 2015-12-21 2017-08-17 Zoll Medical Corporation Time synchronization in a medical device system or network
CN105703987A (en) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 Control method and apparatus for audio and video playing system
WO2019047239A1 (en) * 2017-09-11 2019-03-14 深圳传音通讯有限公司 Smart terminal and audio data multichannel transmission method therefor
CN108696428A (en) * 2018-05-17 2018-10-23 北京大米科技有限公司 Routing detection method, routing node based on tunneling technique and central server
CN109743619A (en) * 2019-01-16 2019-05-10 四川长虹电器股份有限公司 Smart television WiFi and Bluetooth coexistence optimization method and device
CN111263206A (en) * 2020-02-13 2020-06-09 Tcl移动通信科技(宁波)有限公司 Synchronous playing method and device of multimedia information, storage medium and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021175297A1 (en) * 2020-03-05 2021-09-10 华为技术有限公司 Distributed data transmission method, apparatus and system

Similar Documents

Publication Publication Date Title
CN110175062B (en) Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium
CN111708503B (en) Screen projection control method, device and computer readable storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107613489B (en) Wireless charging method, wireless hotspot device, terminal and storage medium
CN112394896B (en) Reverse screen-throwing frame rate control method, device and computer readable storage medium
CN108307432B (en) WiFi control method, mobile terminal and computer-readable storage medium
CN108600520B (en) Reception state control method, mobile terminal, and computer-readable storage medium
CN112399215A (en) Screen projection parameter regulation and control method and device and computer readable storage medium
CN113645345A (en) Data transmission method, mobile terminal and storage medium
CN108958695B (en) Audio output method, device and computer readable storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN107729104B (en) Display method, mobile terminal and computer storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN113805837A (en) Audio processing method, mobile terminal and storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN112090065B (en) Network delay regulation and control method, equipment and computer readable storage medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN111935525A (en) Method for playing multimedia and electronic terminal equipment
CN111443818A (en) Screen brightness regulation and control method and device and computer readable storage medium
CN107678622B (en) Application icon display method, terminal and storage medium
CN112492450B (en) Sound parameter regulation and control method, device and computer readable storage medium
CN111970668B (en) Bluetooth audio control method, device and computer readable storage medium
CN113329347A (en) Processing method of Bluetooth device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination