WO2015165415A1 - Method and apparatus for playing audio data - Google Patents

Method and apparatus for playing audio data Download PDF

Info

Publication number
WO2015165415A1
WO2015165415A1 PCT/CN2015/077896 CN2015077896W WO2015165415A1 WO 2015165415 A1 WO2015165415 A1 WO 2015165415A1 CN 2015077896 W CN2015077896 W CN 2015077896W WO 2015165415 A1 WO2015165415 A1 WO 2015165415A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio data
multimedia device
mobile terminal
target multimedia
playing
Prior art date
Application number
PCT/CN2015/077896
Other languages
French (fr)
Inventor
Shuo CAO
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2015165415A1 publication Critical patent/WO2015165415A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2812Exchanging configuration information on appliance services in a home automation network describing content present in a home automation network, e.g. audio video content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/2847Home automation networks characterised by the type of home appliance used
    • H04L2012/2849Audio/video appliances

Definitions

  • the present disclosure relates to computer technologies, and in particular, to a method and an apparatus for playing audio data.
  • a multimedia device is generally equipped with a dedicated wireless earphone for audio output, and the wireless earphone generally needs to occupy a data transmission interface of the multimedia device.
  • the number of data transmission interfaces on a multimedia device is finite. Therefore, multiple persons cannot listen simultaneously; moreover, because the wireless earphone transmits data generally by using a Bluetooth technology, the wireless earphone is unavailable in a long distance due to limitation from a frequency band and power, thereby lacking convenience.
  • the present disclosure provides a method and an apparatus for playing audio data, which can improve the convenience and efficiency of audio data playback.
  • An embodiment of the present invention provides a method for playing audio data, applied to a mobile terminal, the mobile terminal including a memory, one or more processors, and a program instruction stored in the memory and executed by the one or more processors, and the method including: searching for a multimedia device located in a same network as the mobile terminal, and performing mutual discovery with the multimedia device; determining a target multimedia device from the multimedia device according to a notification instruction triggered by a user; sending a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; receiving the audio data sent by the target multimedia device; and playing the audio data on the mobile terminal.
  • An embodiment of the present invention provides an apparatus for playing audio data, applied to a mobile terminal, the mobile terminal including a memory, one or more processors, and program modules stored in the memory and executed by the one or more processors, and the program modules including: a discovery module, configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device; a notification module, configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; and a playback module, configured to receive the audio data sent by the target multimedia device and play the audio data on the mobile terminal.
  • a discovery module configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device
  • a notification module configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to
  • An embodiment of the present invention further provides a non-transitory computer readable storage medium having stored therein one or more instructions, which, when executed by a mobile terminal, cause the mobile terminal to: search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device; determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user; send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; receive the audio data sent by the target multimedia device; and play the audio data on the mobile terminal.
  • audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
  • FIG. 1 is a diagram of an application environment of a method for playing audio data according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a mobile terminal
  • FIG. 3 is a flowchart of a method for playing audio data according to some embodiments of the present invention.
  • FIG. 4 is a flowchart of a method for playing audio data according to a some embodiments of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for playing audio data according to a some embodiments of the present invention.
  • FIG. 6 is a schematic diagram of a storage environment of the apparatus in FIG. 5;
  • FIG. 7 is a schematic structural diagram of an apparatus for playing audio data according to a some embodiments of the present invention.
  • FIG. 8 is a schematic structural diagram of some modules of the apparatus for playing audio data according to the some embodiments of the present invention.
  • a method for playing audio data provided in an embodiment of the present invention may be applied to an application environment shown in FIG. 1 to implement audio data playback.
  • mobile terminals 100 and a multimedia device 200 are located in a wireless network.
  • the mobile terminals 100 and the multimedia device 200 perform data exchange through the wireless network.
  • the mobile terminal may include a smart phone, a tablet computer, an e-book reader, a moving picture experts group audio layer III (MP3) player, a moving picture experts group audio layer IV (MP4) player, a portable laptop computer, an in-vehicle computer, and the like.
  • MP3 moving picture experts group audio layer III
  • MP4 moving picture experts group audio layer IV
  • the multimedia device may include an intelligent television set, a radio, a video recorder, a compact disc player, a digital video disk player, a set top box, and the like.
  • FIG. 2 is a structural block diagram of a mobile terminal.
  • the mobile terminal 100 includes a memory 102, a storage controller 104, one or more processors 106 (only one processor is shown in FIG. 2) , a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 120. These components communicate with each other through one or more communications buses/signal lines 122.
  • FIG. 2 merely shows an exemplary structure, and the mobile terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2.
  • the components shown in FIG. 2 may be implemented by using hardware, software, or a combination thereof.
  • the memory 102 may be configured to store a software program and module, such as program instructions/modules corresponding to a method and an apparatus for playing audio data in embodiments of the present invention.
  • the processor 106 implements various functional applications and data processing, that is, implements the method for playing audio data, by running the software program and module stored in the memory 102.
  • the memory 102 may include a high-speed random memory, and may also include a nonvolatile memory, for example, one or more magnetic storage devices, a flash memory, or other nonvolatile solid-state memories. In some examples, the memory 102 may further include memories remotely disposed relative to the processor 106, and these remote memories may be connected to the mobile terminal 100 through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communications network, and a combination thereof. The processor 106 and other possible components may access the memory 102 under the control of the storage controller 104.
  • the processor 106 runs various software and instructions in the memory 102, so as to perform various functions of the mobile terminal 100 and perform data processing.
  • the peripheral interface 108 is configured to couple various external devices to a CPU and the memory 102.
  • the storage controller 104, the processor 106, and the peripheral interface 108 may be implemented in a single chip. In some other embodiments, they may be separately implemented by an independent chip.
  • the radio frequency module 110 is configured to receive and send an electromagnetic wave, and implement mutual conversion between an electromagnetic wave and an electric signal, so as to communicate with a communications network or another device.
  • the radio frequency module 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, a cipher/decipher chip, a subscriber identity module (SIM) card, a memory, and the like.
  • the radio frequency module 110 may communicate with various networks such as the Internet, an intranet and a wireless network, or communicate with other devices through a wireless network.
  • the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the wireless network may use various communications standards, protocols and technologies, which include, but are not limited to, Global System for Mobile Communications (GSM) , Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA) , Code Division Multiple Access (CDMA) , Time Division Multiple Access (TDMA) , Bluetooth, Wireless Fidelity (WiFi) (for example, US Institute of Electrical and Electronic Engineers IEEE 802.11a, IEEE 802.11b, IEEE802.11g, and/or IEEE 802.11n) , Voice over Internet Protocol (VoIP) , Worldwide Interoperability for Microwave Access (WiMax) , other protocols for email, instant messaging and short message service, and any other suitable communications protocols, and even may include some protocols that have not been developed.
  • GSM Global System for Mobile Communications
  • EDGE Enhanced Data GSM Environment
  • W-CDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • Bluetooth Bluetooth
  • WiFi Wireless Fidelity
  • the positioning module 112 is configured to acquire a current location of the mobile terminal 100.
  • Examples of the positioning module 112 include, but are not limited to, a Global Positioning System (GPS) or a positioning technology based on a wireless local area network or a mobile communications network.
  • GPS Global Positioning System
  • the camera module 114 is configured to capture a picture or video.
  • the captured picture or video may be stored in the memory 102, and may be sent by using the radio frequency module 110.
  • the audio module 116 provides an audio interface for a user, and may include one or more microphones, one or more loudspeakers, and an audio circuit.
  • the audio circuit receives audio data from the peripheral interface 108, converts the audio data into electric information, and transmits the electric information to the loudspeaker.
  • the loudspeaker converts the electric information into an acoustic wave audible to the human ear.
  • the audio circuit further receives electric information from the microphone, converts the electric information into audio data, and transmits the audio data to the peripheral interface 108 for further processing.
  • the audio data may be acquired from the memory 102 or by the radio frequency module 110.
  • the audio data may also be stored in the memory 102 or sent by the radio frequency module 110.
  • the audio module 116 may further include an earphone jack, for providing an audio interface for an earphone or another device.
  • the screen 118 provides an output interface between the mobile terminal 100 and the user and displays a video output to the user, and content of the video output may include texts, images, videos, or any combination thereof. Some output results correspond to some user interface objects. It may be understood that, the screen 118 may further provide an output and input interface between the mobile terminal 100 and the user. Specifically, besides displaying a video output to the user, the screen 118 further receives an input of the user, such as tapping, sliding, or other gesture operations of the user, so that the user interface object responds to the input of the user.
  • the technology for detecting the input of the user may be a resistive touch detection technology, a capacitive touch detection technology, or any other possible touch detection technologies. Specific examples of a display unit of the screen 118 include, but are not limited to a liquid crystal display and a light-emitting polymer display.
  • the key module 120 also provides an interface for the user to input information to the mobile terminal 100, and the user may press different keys to enable the mobile terminal 100 to perform different functions.
  • FIG. 3 is a flowchart of a method for playing audio data according to the some embodiments of the present invention. As shown in FIG. 3, the method for playing audio data provided in this embodiment includes the following steps:
  • Step S11 A mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device.
  • a mobile terminal 100 searches for a multimedia device 200 located in a same network as the mobile terminal, that is, the mobile terminal 100 searches for a multimedia device 200 served by a same gateway as the mobile terminal.
  • the network may be a WiFi network.
  • the network may also be another type of wireless network, for example, a Bluetooth network.
  • the mobile terminal 100 performs mutual discovery with the multimedia device 200, that is, the mobile terminal 100 discovers, based on a pre-configured protocol stack, all multimedia devices 200 supporting the protocol stack in the network, and correspondingly, the multimedia devices 200 also discover, based on the pre-configured protocol stack, all mobile terminals 100 supporting the protocol stack in the network.
  • Step S12 Determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal.
  • Step S13 Receive and play the audio data sent by the target multimedia device.
  • a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played.
  • audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
  • FIG. 4 is a flowchart of a method for playing audio data according to the some embodiments of the present invention. As shown in FIG. 4, the method for playing audio data provided in this embodiment includes the following steps:
  • Step S21 A mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device by means of a Universal Plug and Play (UPnP) protocol stack.
  • UnP Universal Plug and Play
  • the UPnP protocol stack is configured in network modules of the mobile terminal 100 and the multimedia device 200.
  • a UPnP is a set of network protocols put forward by the UPnP TM Forum. The protocols aim to seamlessly connect various devices in a home network (data sharing, communication, and entertainment) and an enterprise network and simplify implementation of a relevant network.
  • the UPnP is an international standard based on a multicast technology and a HyperText Transfer Protocol (HTTP) technology, and achieves this objective by defining and releasing a UPnP device control protocol that is based on open Internet and communications network protocol standards.
  • HTTP HyperText Transfer Protocol
  • the mobile terminal 100 may perform mutual discovery with the multimedia device 200 by means of the UPnP protocol stack, and according to a discovery result, the mobile terminal 100 generates and displays a list including a multimedia device 200 supporting the UPnP protocol.
  • two cases may occur on the discovery based on the UPnP protocol stack: one is that after acquiring a control request, the mobile terminal 100 searches a current network for a corresponding available device (amultimedia device 200 supporting the UPnP protocol stack) ; and the other is that after accessing a network and acquiring an IP address, a multimedia device 200 begins to broadcast the access thereof in the network, that is, searches for a control request.
  • the mobile terminal 100 and the multimedia device 200 may also perform mutual discovery based on a Bonjour (zero configuration networking) protocol, another customized multicast protocol or Transmission Control Protocol/Internet Protocol (TCP/IP) data communication protocol, or another streaming media protocol.
  • Bonjour zero configuration networking
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • Step S22 Determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user and send an HTTP POST message to the target multimedia device.
  • the HTTP is a data transmission protocol in which rules about mutual communication between a browser and a World Wide Web server are set in detail and by means of which a World Wide Web text is transmitted through the Internet.
  • a POST is an important composition part of the HTTP protocol, generally is used for sending a request to a destination, and is attached with a request entity.
  • the mobile terminal 100 may receive a notification instruction triggered by a user on the list including a multimedia device 200 displayed on the mobile terminal 100, acquire a multimedia device at which the notification instruction is directed and use the multimedia device as a target multimedia device, and then send an HTTP POST message to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal 100.
  • Step S23 Receive the audio data sent by the target multimedia device.
  • the audio data may be preferably in a pulse-code modulation (PCM) format.
  • PCM pulse-code modulation
  • a PCM is a method for digitalizing an analog signal. With the PCM, the strength of a signal is divided into several segments according to a same spacing, and then the segments are quantized by using unique digital marks (generally binary) .
  • the PCM is usually applied to a digital telecommunication system, and is also a standard form in computers and the CD digital audio red book.
  • the target multimedia device receives the HTTP POST message sent by the mobile terminal 100, and according to the HTTP POST message, acquires currently played audio data in the target multimedia device, and sends the audio data to the mobile terminal 100.
  • the target multimedia device may convert the acquired audio data into PCM-format audio data, so that the mobile terminal 100 is not limited by a playback format, and can still play the audio data from the target multimedia device even if having no decoding capability, which has advantages of a short system latency and good system real-time performance.
  • the target multimedia device may also convert, according to a pre-configured rule, the audio data into another-given-format audio data and then send the another-given-format audio data to the mobile terminal 100, for example, to reduce a data transmission amount and improve a transmission speed, the audio data may be converted into MP3-format audio data having a small size; or, the target multimedia device may also acquire a device type of the mobile terminal 100, and then convert, according to the acquired device type of the mobile terminal 100, the audio data into audio data in a data format supported by the mobile terminal 100 and then send the audio data to the mobile terminal 100.
  • Step S24 Determine whether the audio data is in a PCM format.
  • step S25 of detecting whether an external playback device is connected to the mobile terminal is performed.
  • the external playback device may include an earphone, a headset, a sound box, and the like.
  • step S26 of playing the audio data by using the external playback device is performed.
  • the mobile terminal 100 transmits the received audio data to a data interface of the external playback device and outputs the audio data by using the external playback device.
  • step S27 of playing the audio data by using a loudspeaker of the mobile terminal is performed.
  • the mobile terminal 100 transmits the received audio data to a data interface of a loudspeaker of the mobile terminal 100 and outputs the audio data by using the loudspeaker.
  • step S28 of acquiring a decoder corresponding to a format of the audio data and decoding the audio data by using the decoder is performed, and step S25 is performed.
  • the mobile terminal 100 may acquire a data format of the audio data, search for a locally installed decoding plug-in according to the data format, acquire a decoding plug-in corresponding to the data format, and decode the audio data by using the decoding plug-in. It may be understood that, if the decoding plug-in corresponding to the data format is not locally installed in the mobile terminal 100, the mobile terminal 100 may download, according to a pre-configured downloading rule or a downloading instruction triggered by the user, the decoding plug-in corresponding to the data format by using a network server and install the decoding plug-in, and then decode the audio data by using the decoding plug-in.
  • a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played.
  • audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
  • FIG. 5 is a schematic structural diagram of an apparatus for playing audio data according to the some embodiments of the present invention.
  • the apparatus for playing audio data provided in this embodiment may run in a mobile terminal 100, and is applied to the method for playing audio data in the foregoing embodiments.
  • the apparatus 30 for playing audio data includes a discovery module 31, a notification module 32, and a playback module 33, where
  • the discovery module 31 is configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device;
  • the notification module 32 is configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal;
  • the playback module 33 is configured to receive and play the audio data sent by the target multimedia device.
  • the foregoing modules may be implemented by software code.
  • the foregoing modules may be stored in a memory 102, as shown in FIG. 6.
  • the foregoing modules may also be implemented by hardware, for example, an integrated circuit chip.
  • a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played.
  • audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
  • FIG. 7 is a schematic structural diagram of an apparatus for playing audio data according to the some embodiments of the present invention.
  • the apparatus for playing audio data provided in this embodiment may run in a mobile terminal 100, and is applied to the method for playing audio data in the foregoing embodiments.
  • the apparatus 40 for playing audio data includes a discovery module 41, a notification module 42, and a playback module 43, where
  • the discovery module 41 is configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device;
  • the notification module 42 is configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal;
  • the playback module 43 is configured to receive and play the audio data sent by the target multimedia device.
  • the discovery module 41 includes a discovery unit 411, configured to perform mutual discovery with the multimedia device by means of a UPnP protocol stack.
  • the notification module 42 includes a notification unit 421, configured to send an HTTP POST message to the target multimedia device.
  • a format of the audio data includes a PCM format.
  • the playback module 43 includes a determining unit 431, a first playback unit 432, a second playback unit 433, a detection unit 434, a third playback unit 435, and a fourth playback unit 436.
  • the determining unit 431 is configured to determine whether the audio data is in the PCM format; the first playback unit 432 is configured to play the audio data if a determining result of the determining unit 431 is that the audio data is in the PCM format; the second playback unit 433 is configured to acquire, if a determining result of the determining unit 431 is that the audio data is not in the PCM format, a decoder corresponding to a format of the audio data, decode the audio data by using the decoder, and play the audio data; the detection unit 434 is configured to detect whether an external playback device is connected to the mobile terminal; the third playback unit 435 configured to play, if a detection result of the detection unit 434 is that an external playback device is connected to the mobile terminal, the audio data by using the external playback device; and the fourth playback unit 436 is configured to play the audio data by using a loudspeaker of the mobile terminal if a detection result of the detection unit 434 is that no external playback device is connected to the
  • the network includes a WiFi network or a Bluetooth network.
  • a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played.
  • audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
  • the program may be stored in a computer readable storage medium.
  • the storage medium may be a read-only memory, a magnetic disk, or an optical disc, or the like.

Landscapes

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

Abstract

A method for playing audio data includes : searching for a multimedia device located in a same network as the mobile terminal, and performing mutual discovery with the multimedia device; determining a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and sending a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; and receiving and playing the audio data send by the target multimedia device. In addition, the present disclosure further provides an apparatus for playing audio data.

Description

METHOD AND APPARATUS FOR PLAYING AUDIO DATA
FIELD OF THE TECHNOLOGY
The present disclosure relates to computer technologies, and in particular, to a method and an apparatus for playing audio data.
BACKGROUND OF THE DISCLOSURE
A multimedia device is generally equipped with a dedicated wireless earphone for audio output, and the wireless earphone generally needs to occupy a data transmission interface of the multimedia device. However, the number of data transmission interfaces on a multimedia device is finite. Therefore, multiple persons cannot listen simultaneously; moreover, because the wireless earphone transmits data generally by using a Bluetooth technology, the wireless earphone is unavailable in a long distance due to limitation from a frequency band and power, thereby lacking convenience.
SUMMARY
In view of the above, the present disclosure provides a method and an apparatus for playing audio data, which can improve the convenience and efficiency of audio data playback.
An embodiment of the present invention provides a method for playing audio data, applied to a mobile terminal, the mobile terminal including a memory, one or more processors, and a program instruction stored in the memory and executed by the one or more processors, and the method including: searching for a multimedia device located in a same network as the mobile terminal, and performing mutual discovery with the multimedia device; determining a target multimedia device from the multimedia device according to a notification instruction triggered by a user; sending a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; receiving the audio data sent by the target multimedia device; and playing the audio data on the mobile terminal.
An embodiment of the present invention provides an apparatus for playing audio data, applied to a mobile terminal, the mobile terminal including a memory, one or more processors, and program modules stored in the memory and executed by the one or more processors, and the program modules including: a discovery module, configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device; a notification module, configured to determine a target multimedia device from  the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; and a playback module, configured to receive the audio data sent by the target multimedia device and play the audio data on the mobile terminal.
An embodiment of the present invention further provides a non-transitory computer readable storage medium having stored therein one or more instructions, which, when executed by a mobile terminal, cause the mobile terminal to: search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device; determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user; send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; receive the audio data sent by the target multimedia device; and play the audio data on the mobile terminal.
In the embodiments of the present invention, audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
BRIEF DESCRIPTION OF THE DRAWINGS
The aforementioned features and advantages of the disclosed embodiments as well as additional features and advantages thereof will be more clearly understood hereinafter as a result of a detailed description of preferred embodiments when taken in conjunction with the drawings.
The following briefly describes the accompanying drawings included for describing the embodiments or the prior art. The accompanying drawings in the following descriptions merely show some embodiments, and persons of ordinary skill in the art can derive other drawings from these accompanying drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a method for playing audio data according to an embodiment of the present invention;
FIG. 2 is a structural block diagram of a mobile terminal;
FIG. 3 is a flowchart of a method for playing audio data according to some embodiments of the present invention;
FIG. 4 is a flowchart of a method for playing audio data according to a some embodiments of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for playing audio data according to a some embodiments of the present invention;
FIG. 6 is a schematic diagram of a storage environment of the apparatus in FIG. 5;
FIG. 7 is a schematic structural diagram of an apparatus for playing audio data according to a some embodiments of the present invention; and
FIG. 8 is a schematic structural diagram of some modules of the apparatus for playing audio data according to the some embodiments of the present invention.
DESCRIPTION OF EMBODIMENTS
To further explain the technical means used in the present disclosure for achieving the intended objectives and the effects thereof, specific implementation manners, structures, features, and effects of the present disclosure are described in detail below with reference to the accompanying drawings and preferred embodiments.
A method for playing audio data provided in an embodiment of the present invention may be applied to an application environment shown in FIG. 1 to implement audio data playback. As shown in FIG. 1, mobile terminals 100 and a multimedia device 200 are located in a wireless network. The mobile terminals 100 and the multimedia device 200 perform data exchange through the wireless network.
The mobile terminal may include a smart phone, a tablet computer, an e-book reader, a moving picture experts group audio layer III (MP3) player, a moving picture experts group audio layer IV (MP4) player, a portable laptop computer, an in-vehicle computer, and the like.
The multimedia device may include an intelligent television set, a radio, a video recorder, a compact disc player, a digital video disk player, a set top box, and the like.
FIG. 2 is a structural block diagram of a mobile terminal. As shown in FIG. 2, the mobile terminal 100 includes a memory 102, a storage controller 104, one or more processors 106 (only one processor is shown in FIG. 2) , a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 120. These components communicate with each other through one or more communications buses/signal lines 122.
It may be understood that FIG. 2 merely shows an exemplary structure, and the mobile terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2. The components shown in FIG. 2 may be implemented by using hardware, software, or a combination thereof.
The memory 102 may be configured to store a software program and module, such as program instructions/modules corresponding to a method and an apparatus for playing audio data in embodiments of the present invention. The processor 106 implements various functional applications and data processing, that is, implements the method for playing audio data, by running the software program and module stored in the memory 102.
The memory 102 may include a high-speed random memory, and may also include a nonvolatile memory, for example, one or more magnetic storage devices, a flash memory, or other nonvolatile solid-state memories. In some examples, the memory 102 may further include memories remotely disposed relative to the processor 106, and these remote memories may be connected to the mobile terminal 100 through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communications network, and a combination thereof. The processor 106 and other possible components may access the memory 102 under the control of the storage controller 104.
The processor 106 runs various software and instructions in the memory 102, so as to perform various functions of the mobile terminal 100 and perform data processing.
The peripheral interface 108 is configured to couple various external devices to a CPU and the memory 102.
In some embodiments, the storage controller 104, the processor 106, and the peripheral interface 108 may be implemented in a single chip. In some other embodiments, they may be separately implemented by an independent chip.
The radio frequency module 110 is configured to receive and send an electromagnetic wave, and implement mutual conversion between an electromagnetic wave and an electric signal, so as to communicate with a communications network or another device. The radio frequency module 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, a cipher/decipher chip, a subscriber identity module (SIM) card, a memory, and the like. The radio frequency module 110 may communicate with various networks such as the Internet, an intranet and a wireless network, or communicate with other devices through a wireless network. The wireless network may include a  cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communications standards, protocols and technologies, which include, but are not limited to, Global System for Mobile Communications (GSM) , Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA) , Code Division Multiple Access (CDMA) , Time Division Multiple Access (TDMA) , Bluetooth, Wireless Fidelity (WiFi) (for example, US Institute of Electrical and Electronic Engineers IEEE 802.11a, IEEE 802.11b, IEEE802.11g, and/or IEEE 802.11n) , Voice over Internet Protocol (VoIP) , Worldwide Interoperability for Microwave Access (WiMax) , other protocols for email, instant messaging and short message service, and any other suitable communications protocols, and even may include some protocols that have not been developed.
The positioning module 112 is configured to acquire a current location of the mobile terminal 100. Examples of the positioning module 112 include, but are not limited to, a Global Positioning System (GPS) or a positioning technology based on a wireless local area network or a mobile communications network.
The camera module 114 is configured to capture a picture or video. The captured picture or video may be stored in the memory 102, and may be sent by using the radio frequency module 110.
The audio module 116 provides an audio interface for a user, and may include one or more microphones, one or more loudspeakers, and an audio circuit. The audio circuit receives audio data from the peripheral interface 108, converts the audio data into electric information, and transmits the electric information to the loudspeaker. The loudspeaker converts the electric information into an acoustic wave audible to the human ear. The audio circuit further receives electric information from the microphone, converts the electric information into audio data, and transmits the audio data to the peripheral interface 108 for further processing. The audio data may be acquired from the memory 102 or by the radio frequency module 110. In addition, the audio data may also be stored in the memory 102 or sent by the radio frequency module 110. In some examples, the audio module 116 may further include an earphone jack, for providing an audio interface for an earphone or another device.
The screen 118 provides an output interface between the mobile terminal 100 and the user and displays a video output to the user, and content of the video output may include texts, images, videos, or any combination thereof. Some output results correspond to some user interface objects. It may be understood that, the screen 118 may further provide an output and input interface between the mobile terminal 100 and the user. Specifically, besides displaying a video output to the  user, the screen 118 further receives an input of the user, such as tapping, sliding, or other gesture operations of the user, so that the user interface object responds to the input of the user. The technology for detecting the input of the user may be a resistive touch detection technology, a capacitive touch detection technology, or any other possible touch detection technologies. Specific examples of a display unit of the screen 118 include, but are not limited to a liquid crystal display and a light-emitting polymer display.
The key module 120 also provides an interface for the user to input information to the mobile terminal 100, and the user may press different keys to enable the mobile terminal 100 to perform different functions.
FIG. 3 is a flowchart of a method for playing audio data according to the some embodiments of the present invention. As shown in FIG. 3, the method for playing audio data provided in this embodiment includes the following steps:
Step S11: A mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device.
mobile terminal 100 searches for a multimedia device 200 located in a same network as the mobile terminal, that is, the mobile terminal 100 searches for a multimedia device 200 served by a same gateway as the mobile terminal. In the embodiment, the network may be a WiFi network. In another implementation manner of this embodiment, the network may also be another type of wireless network, for example, a Bluetooth network. The mobile terminal 100 performs mutual discovery with the multimedia device 200, that is, the mobile terminal 100 discovers, based on a pre-configured protocol stack, all multimedia devices 200 supporting the protocol stack in the network, and correspondingly, the multimedia devices 200 also discover, based on the pre-configured protocol stack, all mobile terminals 100 supporting the protocol stack in the network.
Step S12: Determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal.
Step S13: Receive and play the audio data sent by the target multimedia device.
According to the method for playing audio data provided in this embodiment of the present invention, a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target  multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played. In this way, audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
FIG. 4 is a flowchart of a method for playing audio data according to the some embodiments of the present invention. As shown in FIG. 4, the method for playing audio data provided in this embodiment includes the following steps:
Step S21: A mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device by means of a Universal Plug and Play (UPnP) protocol stack.
In this embodiment, the UPnP protocol stack is configured in network modules of the mobile terminal 100 and the multimedia device 200. A UPnP is a set of network protocols put forward by the UPnPTM Forum. The protocols aim to seamlessly connect various devices in a home network (data sharing, communication, and entertainment) and an enterprise network and simplify implementation of a relevant network. The UPnP is an international standard based on a multicast technology and a HyperText Transfer Protocol (HTTP) technology, and achieves this objective by defining and releasing a UPnP device control protocol that is based on open Internet and communications network protocol standards.
The mobile terminal 100 may perform mutual discovery with the multimedia device 200 by means of the UPnP protocol stack, and according to a discovery result, the mobile terminal 100 generates and displays a list including a multimedia device 200 supporting the UPnP protocol. Specifically, two cases may occur on the discovery based on the UPnP protocol stack: one is that after acquiring a control request, the mobile terminal 100 searches a current network for a corresponding available device (amultimedia device 200 supporting the UPnP protocol stack) ; and the other is that after accessing a network and acquiring an IP address, a multimedia device 200 begins to broadcast the access thereof in the network, that is, searches for a control request.
In another implementation manner of this embodiment, the mobile terminal 100 and the multimedia device 200 may also perform mutual discovery based on a Bonjour (zero  configuration networking) protocol, another customized multicast protocol or Transmission Control Protocol/Internet Protocol (TCP/IP) data communication protocol, or another streaming media protocol.
Step S22: Determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user and send an HTTP POST message to the target multimedia device.
The HTTP is a data transmission protocol in which rules about mutual communication between a browser and a World Wide Web server are set in detail and by means of which a World Wide Web text is transmitted through the Internet. A POST is an important composition part of the HTTP protocol, generally is used for sending a request to a destination, and is attached with a request entity.
Specifically, the mobile terminal 100 may receive a notification instruction triggered by a user on the list including a multimedia device 200 displayed on the mobile terminal 100, acquire a multimedia device at which the notification instruction is directed and use the multimedia device as a target multimedia device, and then send an HTTP POST message to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal 100.
Step S23: Receive the audio data sent by the target multimedia device.
The audio data may be preferably in a pulse-code modulation (PCM) format. A PCM is a method for digitalizing an analog signal. With the PCM, the strength of a signal is divided into several segments according to a same spacing, and then the segments are quantized by using unique digital marks (generally binary) . The PCM is usually applied to a digital telecommunication system, and is also a standard form in computers and the CD digital audio red book.
Specifically, the target multimedia device receives the HTTP POST message sent by the mobile terminal 100, and according to the HTTP POST message, acquires currently played audio data in the target multimedia device, and sends the audio data to the mobile terminal 100.
Because the mobile terminal 100 can directly play PCM-format audio data, to improve universality of audio data playback, before sending the audio data, the target multimedia device may convert the acquired audio data into PCM-format audio data, so that the mobile terminal 100 is not limited by a playback format, and can still play the audio data from the target multimedia device even if having no decoding capability, which has advantages of a short system latency and good system real-time performance.
It may be understood that, the target multimedia device may also convert, according to a pre-configured rule, the audio data into another-given-format audio data and then send the another-given-format audio data to the mobile terminal 100, for example, to reduce a data transmission amount and improve a transmission speed, the audio data may be converted into MP3-format audio data having a small size; or, the target multimedia device may also acquire a device type of the mobile terminal 100, and then convert, according to the acquired device type of the mobile terminal 100, the audio data into audio data in a data format supported by the mobile terminal 100 and then send the audio data to the mobile terminal 100.
Step S24: Determine whether the audio data is in a PCM format.
If the audio data is in the PCM format, step S25 of detecting whether an external playback device is connected to the mobile terminal is performed.
The external playback device may include an earphone, a headset, a sound box, and the like.
If an external playback device is connected to the mobile terminal, step S26 of playing the audio data by using the external playback device is performed.
Specifically, if a detection result is that an external playback device is connected to the mobile terminal, the mobile terminal 100 transmits the received audio data to a data interface of the external playback device and outputs the audio data by using the external playback device.
If no external playback device is connected to the mobile terminal, step S27 of playing the audio data by using a loudspeaker of the mobile terminal is performed.
Specifically, if a detection result is that no external playback device is connected to the mobile terminal, the mobile terminal 100 transmits the received audio data to a data interface of a loudspeaker of the mobile terminal 100 and outputs the audio data by using the loudspeaker.
If the audio data is not in the PCM format, step S28 of acquiring a decoder corresponding to a format of the audio data and decoding the audio data by using the decoder is performed, and step S25 is performed.
Specifically, if a determining result is that the received audio data is not in the PCM format, the mobile terminal 100 may acquire a data format of the audio data, search for a locally installed decoding plug-in according to the data format, acquire a decoding plug-in corresponding to the data format, and decode the audio data by using the decoding plug-in. It may be understood that, if the decoding plug-in corresponding to the data format is not locally installed in the mobile  terminal 100, the mobile terminal 100 may download, according to a pre-configured downloading rule or a downloading instruction triggered by the user, the decoding plug-in corresponding to the data format by using a network server and install the decoding plug-in, and then decode the audio data by using the decoding plug-in.
According to the method for playing audio data provided in this embodiment of the present invention, a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played. In this way, audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
FIG. 5 is a schematic structural diagram of an apparatus for playing audio data according to the some embodiments of the present invention. The apparatus for playing audio data provided in this embodiment may run in a mobile terminal 100, and is applied to the method for playing audio data in the foregoing embodiments. As shown in FIG. 5, the apparatus 30 for playing audio data includes a discovery module 31, a notification module 32, and a playback module 33, where
the discovery module 31 is configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device;
the notification module 32 is configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; and
the playback module 33 is configured to receive and play the audio data sent by the target multimedia device.
The foregoing modules may be implemented by software code. In this case, the foregoing modules may be stored in a memory 102, as shown in FIG. 6. The foregoing modules may also be implemented by hardware, for example, an integrated circuit chip.
For a specific process of implementing a function of each functional module of the apparatus 30 for playing audio data in this embodiment, refer to specific content described in the embodiments shown in FIG. 1 to FIG. 4. Details are not described herein again.
According to the apparatus for playing audio data provided in this embodiment of the present invention, a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played. In this way, audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
FIG. 7 is a schematic structural diagram of an apparatus for playing audio data according to the some embodiments of the present invention. The apparatus for playing audio data provided in this embodiment may run in a mobile terminal 100, and is applied to the method for playing audio data in the foregoing embodiments. As shown in FIG. 7, the apparatus 40 for playing audio data includes a discovery module 41, a notification module 42, and a playback module 43, where
the discovery module 41 is configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device;
the notification module 42 is configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; and
the playback module 43 is configured to receive and play the audio data sent by the target multimedia device.
In the embodiment, the discovery module 41 includes a discovery unit 411, configured to perform mutual discovery with the multimedia device by means of a UPnP protocol stack.
In the embodiment, the notification module 42 includes a notification unit 421, configured to send an HTTP POST message to the target multimedia device.
In the embodiment, a format of the audio data includes a PCM format. As shown in FIG. 8, the playback module 43 includes a determining unit 431, a first playback unit 432, a second playback unit 433, a detection unit 434, a third playback unit 435, and a fourth playback unit 436. The determining unit 431 is configured to determine whether the audio data is in the PCM format; the first playback unit 432 is configured to play the audio data if a determining result of the determining unit 431 is that the audio data is in the PCM format; the second playback unit 433 is configured to acquire, if a determining result of the determining unit 431 is that the audio data is not in the PCM format, a decoder corresponding to a format of the audio data, decode the audio data by using the decoder, and play the audio data; the detection unit 434 is configured to detect whether an external playback device is connected to the mobile terminal; the third playback unit 435 configured to play, if a detection result of the detection unit 434 is that an external playback device is connected to the mobile terminal, the audio data by using the external playback device; and the fourth playback unit 436 is configured to play the audio data by using a loudspeaker of the mobile terminal if a detection result of the detection unit 434 is that no external playback device is connected to the mobile terminal.
In the embodiment, the network includes a WiFi network or a Bluetooth network.
For a specific process of implementing a function of each functional module of the apparatus 40 for playing audio data in this embodiment, refer to specific content described in the embodiments shown in FIG. 1 to FIG. 4. Details are not described herein again.
According to the apparatus for playing audio data provided in this embodiment of the present invention, a mobile terminal searches for a multimedia device located in a same network as the mobile terminal, and performs mutual discovery with the multimedia device; then, a target multimedia device is determined from the found multimedia device according to a notification instruction triggered by a user, and a notification message is sent to the target multimedia device, so as to instruct the target multimedia device to send currently played audio data to the mobile terminal; and lastly, the audio data sent by the target multimedia device is received and played. In this way, audio data in a multimedia device can be simultaneously played by using multiple mobile terminals, and the problem in the existing technology that a wireless earphone is unavailable in a long distance due to limitation from a frequency band and power can be solved, so that the convenience and efficiency of audio data playback can be improved.
It should be noted that the embodiments in this specification are all described in a progressive manner. Description of each of the embodiments focuses on differences from other embodiments, and reference may be made to each other for the same or similar parts among respective embodiments. The apparatus embodiments are substantially similar to the method embodiments and therefore are only briefly described, and reference may be made to the method embodiments for the associated part.
It should be noted that the relational terms herein such as first and second are used only to differentiate an entity or operation from another entity or operation, and do not require or imply any actual relationship or sequence between these entities or operations. Moreover, the terms "include", "comprise", and any variants thereof are intended to cover a non-exclusive inclusion. Therefore, in the context of a process, method, object, or device that includes a series of elements, the process, method, object, or device not only includes such elements, but also includes other elements not specified expressly, or may include inherent elements of the process, method, object, or device. Unless otherwise specified, an element limited by "include a/an. . . "does not exclude other same elements existing in the process, the method, the article, or the device that includes the element.
A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by using hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disc, or the like.
The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present disclosure in any form. Although the present disclosure has been disclosed above by using the preferred embodiments, the embodiments are not intended to limit the present disclosure. A person skilled in the art may make some equivalent variations, alterations or modifications to the above-disclosed technical content without departing from the scope of the technical solutions of the present disclosure to obtain equivalent embodiments. Any simple alteration, equivalent change or modification made to the above embodiments according to the technical essence of the present disclosure without departing from the content of the technical solutions of the present disclosure shall fall within the scope of the technical solutions of the present disclosure.

Claims (13)

  1. A method for playing audio data, applied to a mobile terminal, the mobile terminal comprising a memory, one or more processors, and program instructions stored in the memory and executed by the one or more processors, and the method comprising:
    searching for a multimedia device located in a same network as the mobile terminal, and performing mutual discovery with the multimedia device;
    determining a target multimedia device from the multimedia device according to a notification instruction triggered by a user;
    sending a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal;
    receiving the audio data sent by the target multimedia device; and
    playing the audio data on the mobile terminal.
  2. The method according to claim 1, wherein the performing mutual discovery with the multimedia device comprises:
    performing, by the mobile terminal, mutual discovery with the multimedia device by means of a Universal Plug and Play (UPnP) protocol stack.
  3. The method according to claim 1, wherein the sending a notification message to the target multimedia device comprises:
    sending a HyperText Transfer Protocol (HTTP) POST message to the target multimedia device.
  4. The method according to claim 1, wherein the playing the audio data on the mobile terminal comprises:
    determining whether the audio data is in a pulse-code modulation (PCM) format; and
    playing the audio data if the audio data is in the PCM format; or
    acquiring, if the audio data is not in the PCM format, a decoder corresponding to a format of the audio data, decoding the audio data by using the decoder, and playing the audio data.
  5. The method according to claim 1, wherein the playing the audio data on the mobile terminal comprises:
    detecting whether an external playback device is connected to the mobile terminal; and
    playing, if an external playback device is connected to the mobile terminal, the audio data by using the external playback device; or
    playing the audio data by using a loudspeaker of the mobile terminal if no external playback device is connected to the mobile terminal.
  6. The method according to any one of claims 1 to 5, wherein the network comprises a Wireless Fidelity (WiFi) network or a Bluetooth network.
  7. An apparatus for playing audio data, applied to a mobile terminal, the mobile terminal comprising a memory, one or more processors, and program modules stored in the memory and executed by the one or more processors, and the program modules comprising:
    a discovery module, configured to search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device;
    a notification module, configured to determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user, and send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal; and
    a playback module, configured to receive the audio data sent by the target multimedia device and play the audio data on the mobile terminal.
  8. The apparatus according to claim 7, wherein the discovery module comprises:
    a discovery unit, configured to perform mutual discovery with the multimedia device by means of a Universal Plug and Play (UPnP) protocol stack.
  9. The apparatus according to claim 7, wherein the notification module comprises:
    a notification unit, configured to send a HyperText Transfer Protocol (HTTP) POST message to the target multimedia device.
  10. The apparatus according to claim 7, wherein a format of the audio data comprises a pulse-code modulation (PCM) format; and
    the playback module comprises:
    a determining unit, configured to determine whether the audio data is in the PCM format;
    a first playback unit, configured to play the audio data if a determining result of the  determining unit is that the audio data is in the PCM format; and
    a second playback unit, configured to acquire, if a determining result of the determining unit is that the audio data is not in the PCM format, a decoder corresponding to a format of the audio data, decode the audio data by using the decoder, and play the audio data.
  11. The apparatus according to claim 7, wherein the playback module comprises:
    a detection unit, configured to detect whether an external playback device is connected to the mobile terminal;
    a third playback unit, configured to play, if a detection result of the detection unit is that an external playback device is connected to the mobile terminal, the audio data by using the external playback device; and
    a fourth playback unit, configured to play the audio data by using a loudspeaker of the mobile terminal if a detection result of the detection unit is that no external playback device is connected to the mobile terminal.
  12. The apparatus according to any one of claims 7 to 11, wherein the network comprises a Wireless Fidelity (WiFi) network or a Bluetooth network.
  13. A non-transitory computer readable storage medium having stored therein one or more instructions, which, when executed by a mobile terminal, cause the mobile terminal to:
    search for a multimedia device located in a same network as the mobile terminal, and perform mutual discovery with the multimedia device;
    determine a target multimedia device from the multimedia device according to a notification instruction triggered by a user;
    send a notification message to the target multimedia device to instruct the target multimedia device to send currently played audio data to the mobile terminal;
    receive the audio data sent by the target multimedia device; and
    play the audio data on the mobile terminal.
PCT/CN2015/077896 2014-04-30 2015-04-30 Method and apparatus for playing audio data WO2015165415A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410181081.X 2014-04-30
CN201410181081.XA CN104092658B (en) 2014-04-30 2014-04-30 Audio data play method and device

Publications (1)

Publication Number Publication Date
WO2015165415A1 true WO2015165415A1 (en) 2015-11-05

Family

ID=51640340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077896 WO2015165415A1 (en) 2014-04-30 2015-04-30 Method and apparatus for playing audio data

Country Status (2)

Country Link
CN (1) CN104092658B (en)
WO (1) WO2015165415A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918257A (en) * 2020-07-28 2020-11-10 歌尔光学科技有限公司 Head-mounted display device, data transmission method thereof and readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092658B (en) * 2014-04-30 2016-03-30 腾讯科技(深圳)有限公司 Audio data play method and device
CN106210762A (en) * 2016-07-08 2016-12-07 乐视控股(北京)有限公司 Method, source device, purpose equipment, TV and the terminal that audio frequency is play
CN106572079A (en) * 2016-10-13 2017-04-19 杭州鸿雁电器有限公司 Multimedia network playing device and embedded network radio
CN113784001B (en) * 2021-09-16 2023-11-24 Oppo广东移动通信有限公司 Audio data playing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321000A (en) * 2008-07-21 2008-12-10 成都移网传媒科技有限责任公司 Mobile phone Bluetooth touch screen interaction system and method
CN103297824A (en) * 2013-05-29 2013-09-11 华为技术有限公司 Video processing method, dongle, control terminal and system
CN104092658A (en) * 2014-04-30 2014-10-08 腾讯科技(深圳)有限公司 Audio data playing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100463543C (en) * 2007-04-19 2009-02-18 童任 Method for handset to record multimedia courseware through wireless network
TW200922185A (en) * 2007-09-26 2009-05-16 Packetvideo Corp System and method for receiving broadcast multimedia on a mobile device
CN101232535A (en) * 2008-02-15 2008-07-30 宇龙计算机通信科技(深圳)有限公司 Method for sharing broadcast multimedia document and multimedia player
CN101335584A (en) * 2008-07-31 2008-12-31 金纯� Bluetooth mobile phone and CMMB/Bluetooth gateway cooperated mobile phone television receiving method and system
CN101741971A (en) * 2008-11-21 2010-06-16 乐金电子(中国)研究开发中心有限公司 Mobile phone with earphone function and working method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321000A (en) * 2008-07-21 2008-12-10 成都移网传媒科技有限责任公司 Mobile phone Bluetooth touch screen interaction system and method
CN103297824A (en) * 2013-05-29 2013-09-11 华为技术有限公司 Video processing method, dongle, control terminal and system
CN104092658A (en) * 2014-04-30 2014-10-08 腾讯科技(深圳)有限公司 Audio data playing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918257A (en) * 2020-07-28 2020-11-10 歌尔光学科技有限公司 Head-mounted display device, data transmission method thereof and readable storage medium

Also Published As

Publication number Publication date
CN104092658A (en) 2014-10-08
CN104092658B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
US7680490B2 (en) System and method for multimedia networking with mobile telephone and headset
RU2666621C1 (en) Communication processor, method of volte implementation, mobile terminal, data card
WO2015165415A1 (en) Method and apparatus for playing audio data
US11627205B2 (en) Information processing method and apparatus, communication device and storage medium
EP2670209A2 (en) Method and apparatus for providing concurrent service
US20230039861A1 (en) Projection Connection Control Method And Electronic Device
KR101914117B1 (en) Method and apparatus for establishing Wireless Local Network link between portable terminals
JP2015195488A (en) Information processing device and information processing method
US20160205148A1 (en) Method and device for performing audio/video streaming in wireless communication system
US20180014063A1 (en) Method and Apparatus for Accessing a Terminal Device Camera to a Target Device
US9658817B2 (en) Screen sharing terminal, method of screen sharing, and program for screen sharing terminal
US11240559B2 (en) Content reproducing apparatus and content reproducing method
KR20130115780A (en) Method and system for establishing wireless local area netwrok link between portable terminals
WO2017101579A1 (en) Call control apparatus and method
KR102050379B1 (en) Method and appratus for moving call
WO2016150191A1 (en) Data sharing method and device
US20150133052A1 (en) Device selection
KR20140029740A (en) Method and apparatus for transferring files during video telephony in electronic device
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN104575548B (en) File plays localization method, device and terminal
CN103680101A (en) Method and system for editing NFC (near field communication) data for NFC equipment or NFC label
CN106095132B (en) Playback equipment keypress function setting method and device
CN114173321B (en) Equipment communication connection establishment method and equipment communication system
CN113810887B (en) Bluetooth protocol connection method and device, storage medium and related equipment
WO2016037356A1 (en) Control method for wi-fi module and relevant device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15786746

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 20/03/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15786746

Country of ref document: EP

Kind code of ref document: A1