CN108735240B - Sound playing method, device, storage medium and terminal - Google Patents

Sound playing method, device, storage medium and terminal Download PDF

Info

Publication number
CN108735240B
CN108735240B CN201810486775.2A CN201810486775A CN108735240B CN 108735240 B CN108735240 B CN 108735240B CN 201810486775 A CN201810486775 A CN 201810486775A CN 108735240 B CN108735240 B CN 108735240B
Authority
CN
China
Prior art keywords
playing
sound source
source equipment
audio
audio stream
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.)
Active
Application number
CN201810486775.2A
Other languages
Chinese (zh)
Other versions
CN108735240A (en
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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201810486775.2A priority Critical patent/CN108735240B/en
Publication of CN108735240A publication Critical patent/CN108735240A/en
Application granted granted Critical
Publication of CN108735240B publication Critical patent/CN108735240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • G11B19/027Remotely controlled
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Abstract

The invention provides a sound playing method, a sound playing device, a storage medium and a terminal; the sound playing method comprises the following steps: detecting sound source equipment in the same wireless local area network; sending a request whether to support audio remote playing to the sound source equipment; if receiving confirmation information supporting audio remote playing fed back by the sound source equipment, sending an audio remote playing request to the sound source equipment; and receiving the audio stream sent by the sound source equipment, and playing the audio stream. The invention can make the user hear the sound when the sound source equipment can not actively control the remote playing equipment to play the audio; and moreover, the audio stream can be prevented from being received by an irrelevant remote terminal, and the safety of the audio stream is improved.

Description

Sound playing method, device, storage medium and terminal
Technical Field
The present invention relates to information processing technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for playing sound.
Background
In the prior art, an external speaker of a device is generally implemented by wired connection, for example, an external speaker of a desktop computer; in some cases, a bluetooth sound box, a wifi wireless sound box, an FM wireless sound box, and the like are used; however, the wireless transmission distance of the bluetooth sound box is limited, and only audio close to the sound source equipment can be played, and the sound source equipment also needs to have a bluetooth function; the FM radio sound box needs to receive sound source signals through an FM receiver, so sound source equipment needs to have a function of sending FM signals; the existing wifi wireless sound box generally passively receives signals of an audio source device or a server, and the signals can be realized only by the audio source device or the server having a corresponding control function.
In some usage scenarios, it is difficult to realize remote audio playback because the audio source device has no active control function, or the active control function of the audio source device is weak, or the user cannot input a control command. For example: when a user watches videos by connecting the intelligent television box with the display, the display and the intelligent television box have no audio power amplification function, so that the user can only obtain image information of the videos and cannot hear the sounds; another example is: when a user uses a television to play movie resources, the audio playing function of the television may affect other users in the same scene, and the user is connected with a wired earphone to play, so that the visual experience is not good due to distance.
Disclosure of Invention
The present invention is directed to solve at least one of the above technical drawbacks, and in particular, to an audio playing problem caused when an audio source device cannot actively control a remote playing device.
The invention provides a sound playing method, which comprises the following steps:
detecting sound source equipment in the same wireless local area network;
sending a request whether to support audio remote playing to the sound source equipment;
if receiving confirmation information supporting audio remote playing fed back by the sound source equipment, sending an audio remote playing request to the sound source equipment;
and receiving the audio stream sent by the sound source equipment, and playing the audio stream.
Preferably, the sending the request whether to support audio remote playing to the audio source device includes:
if the number of the sound source equipment is more than two, reading a playing record within a preset time length of the terminal, arranging the more than two sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the sound source equipment with the first sequence in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the sound source device and playing the audio stream includes: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
Preferably, the sending the request whether to support audio remote playing to the audio source device includes:
if the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, arranging the sound source equipment in the more than two into a list according to the signal connection strength from strong to weak, and selecting the sound source equipment in the first order in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the sound source device and playing the audio stream includes: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
Preferably, the sending the request whether to support audio remote playing to the audio source device includes:
if the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, and screening out the sound source equipment of which the signal connection strength is greater than a preset value from the sound source equipment; reading the playing record within the preset time length of the terminal, arranging the screened sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the first ordered sound source equipment in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the sound source device and playing the audio stream includes: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
Preferably, before sending the request for audio remote play to the audio source device, the method further includes:
sending the identity verification information of the terminal to the sound source equipment;
and if the verification passing information fed back by the sound source equipment is received, continuing the step of sending the request for audio remote playing to the sound source equipment.
Preferably, the receiving an audio stream sent by the audio source device and playing the audio stream includes:
receiving an audio stream and a time axis which are separated from an audio and video stream file by the sound source equipment, wherein the time axis corresponds to a video picture in the audio and video stream;
and playing the audio stream according to the time axis.
Preferably, before sending the request whether to support audio remote playing to the audio source device, the method further includes:
acquiring an identifier of the sound source equipment;
and confirming that the sound source equipment is the sound source equipment allowed to be played by the terminal according to the identification.
The invention also provides a sound playing device, comprising:
the detection module is used for detecting sound source equipment in the same wireless local area network;
the confirmation module is used for sending a request whether to support audio remote playing to the sound source equipment;
the request module is used for receiving confirmation information which supports audio remote playing and is fed back by the sound source equipment and sending a request of audio remote playing to the sound source equipment;
and the playing module is used for receiving the audio stream sent by the sound source equipment and playing the audio stream.
The invention also provides a sound playing method, which comprises the following steps:
receiving a request whether to support audio remote playing sent by a playing terminal in the same wireless local area network;
feeding back confirmation information supporting audio remote playing to the playing terminal;
receiving a request for audio remote playing sent by the playing terminal;
and separating audio stream from the audio and video stream file, and sending the audio stream to the playing terminal.
Preferably, before separating the audio stream from the audio/video stream file and sending the audio stream to the play terminal, the method further includes:
acquiring an identifier of the playing terminal;
and confirming that the playing terminal has the authority of playing the audio stream according to the identifier.
The present invention also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the sound playing method according to any one of the preceding claims.
The invention also proposes a terminal, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the steps of the sound playing method of any one of the preceding claims.
The invention has the following beneficial effects:
1. the invention can actively detect the sound source equipment in the same wireless local area network and send the request of audio remote playing to the sound source equipment, so that when the sound source equipment can not actively control the remote playing equipment to play audio, the audio stream is output to other remote playing terminals to play through the function of the sound source equipment supporting remote playing, and a user can hear the sound; compared with the remote playing terminal passively receiving the audio stream broadcasted by the sound source equipment, the remote playing terminal actively sends the audio remote playing request to the sound source equipment, so that the irrelevant remote playing terminal can be prevented from receiving the audio stream, and the safety of the audio stream is improved.
2. When more than two sound source devices in the same wireless local area network are detected, the invention can determine the sound source device used by the user most according to the playing record in the preset time of the terminal, and uses the sound source device as the sound source device selected firstly, thereby improving the matching speed between the remote playing terminal and the plurality of sound source devices, particularly shortening the matching time between the sound source device commonly used by the user and the remote playing terminal, and improving the user experience.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating a sound playing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a sound playing method according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a sound playing method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a sound playing method according to a second embodiment of the present invention;
FIG. 5 is a flow chart illustrating a sound playing system according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of a broadcast terminal according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention provides a sound playing method, which is used for realizing a wireless remote playing function of a sound source, wherein a first embodiment of the sound playing method is shown in figure 1 and comprises the following steps:
step S10: detecting sound source equipment in the same wireless local area network;
step S20: sending a request whether to support audio remote playing to the sound source equipment;
step S30: if receiving confirmation information supporting audio remote playing fed back by the sound source equipment, sending an audio remote playing request to the sound source equipment;
step S40: and receiving the audio stream sent by the sound source equipment, and playing the audio stream.
Wherein each step is as follows:
step S10: and detecting the sound source equipment in the same wireless local area network.
The method for detecting the sound source equipment of the same wireless local area network can be realized by sending multicast or broadcast to the wireless local area network. The wireless local area network can be a wireless network with encryption information or a wireless network without encryption information. The sound source equipment can be data transmission equipment or video playing equipment which can be connected to a wireless local area network, such as an intelligent television box, an intelligent television, a panel device and the like. The number of the detected sound source devices can be one or more; when a plurality of sound source devices are detected, the sound source devices can be sequenced according to information such as names of the sound source devices, intensity of wireless signals, historical connection records and the like so as to be selected by a user; or an automatic identification rule is preset so that one sound source equipment is identified as a preferred sound source equipment, other sound source equipment is used as a candidate sound source equipment, and when the audio frequency in the preferred sound source equipment cannot be played, the audio frequency is automatically identified from the candidate sound source equipment in sequence to be suitable as the next preferred sound source equipment.
Step S20: and sending a request whether to support audio remote playing to the sound source equipment.
When sound source equipment in the same wireless local area network is detected, if the sound source equipment is the only detected sound source equipment, a request for whether to support audio remote playing is sent to the sound source equipment; and if a plurality of sound source equipment exist, sending a request for whether the audio remote playing is supported to the sound source equipment selected by the user, or sending a request for whether the audio remote playing is supported to the preferred sound source equipment identified according to the automatic identification rule.
In another embodiment of the present invention, before sending the request for whether to support audio remote playing to the audio source device, the method may further include:
acquiring an identifier of the sound source equipment;
and confirming that the sound source equipment is the sound source equipment allowed to be played by the terminal according to the identification.
In this embodiment, after the sound source device is determined to be the sound source device allowed to be played by the terminal, a request for whether to support audio remote playing is sent to the sound source device, so that the terminal can be prevented from being connected to other unrelated devices or from mistakenly playing audio files of other devices.
The audio to be remotely played can be an audio source file, an audio and video file, or an audio file separated from the audio and video file. The transmitted request of whether to support audio remote playing may include all audio formats supported by the terminal, such as WAVE, MPEG, MP3, APE, MIDI, RealAudio, and the like; if the sound source equipment supports the function of audio remote playing, but the audio format in the sound source equipment does not conform to the format supported by the terminal, the sound source equipment can return a message that the playing format is not supported; and if the sound source equipment does not support the function of audio remote playing, the sound source equipment can return a message that the remote playing is not supported. Of course, in the request of whether to support the remote audio playing, all audio formats supported by the terminal may not be included, and in the subsequent steps, it is further determined whether the audio format in the sound source device conforms to the format supported by the terminal; if not, returning a message that the playing format is not supported, or returning a playing mode or a playing suggestion matched from the network.
Step S30: and if receiving confirmation information which supports audio remote playing and is fed back by the sound source equipment, sending an audio remote playing request to the sound source equipment.
And when the sound source equipment confirms that the audio remote playing can be supported, continuously sending an audio remote playing request to acquire the audio to be played. If the confirmation information which supports the audio remote playing and is fed back by the sound source equipment is received, but the audio format in the sound source equipment does not conform to the format supported by the terminal, a playing strategy can be pushed to a user when a message which does not support the playing format is returned, wherein the playing strategy comprises upgrading the current audio playing software, downloading a decoding file matched with the audio in the sound source equipment and the like. If the user selects to continue sending the request for audio remote playing to the sound source equipment, the user can also send a corresponding request for acquiring a software upgrade package or search a corresponding audio decoding file and the like when sending the request for audio remote playing.
In another embodiment of the present invention, before sending the request for audio remote playback to the audio source device, the method may further include:
sending the identity verification information of the terminal to the sound source equipment;
and if the verification passing information fed back by the sound source equipment is received, continuing the step of sending the request for audio remote playing to the sound source equipment.
According to the embodiment, through the identity authentication information, the safety of information interaction between the sound source equipment and the terminal or other audio remote playing terminals can be improved, and the safety of data in the sound source equipment is guaranteed. The authentication information may be sent together with the request of step S20 for whether to support audio remote playback, or may be sent separately before or after step S20, for example, when detecting a sound source device in the same wireless lan in step S10, if the sound source device is detected and connected to the sound source device, the terminal prompts to input corresponding authentication information to send the authentication information of the terminal to the sound source device; and if the confirmation information supporting the audio remote playing and the verification passing information fed back by the audio source equipment are received, continuing the step of sending the request for the audio remote playing to the audio source equipment.
Step S40: and receiving the audio stream sent by the sound source equipment, and playing the audio stream.
The sound source equipment sends an audio stream to the terminal according to the request in the step S30; after receiving the audio stream, the terminal can perform corresponding buffering and decoding, and then play the audio stream according to the user instruction. The terminal can be intelligent equipment with an audio playing function, such as an intelligent sound box, an intelligent mobile phone and an intelligent earphone.
The embodiment of the invention can actively detect the sound source equipment in the same wireless local area network and send the audio remote playing request to the sound source equipment, so that when the sound source equipment cannot actively control the remote playing equipment to play audio, the audio stream is output to other remote playing terminals for playing through the remote playing function supported by the sound source equipment. Compared with the remote playing terminal passively receiving the audio stream broadcasted by the sound source equipment, the remote playing terminal actively sends the audio remote playing request to the sound source equipment, so that the irrelevant remote playing terminal can be prevented from receiving the audio stream, and the safety of the audio stream is improved.
In another embodiment of the present invention, the playing the audio stream may further include:
and acquiring the current volume level and sound effect of the sound source equipment, and playing the audio stream by using the volume level and the sound effect.
When the sound source equipment is provided with a loudspeaker, the current volume level and sound effect of the loudspeaker are used for playing the audio stream, so that the played audio effect is more in line with the requirements of users. For example, when the sound source equipment is a television and the terminal is an intelligent earphone, the audio can be played through the intelligent earphone, and the volume level and the sound effect played by the intelligent earphone are the same as those of the television.
In another embodiment of the present invention, after playing the audio stream, the method further includes:
and sending an instruction for closing the loudspeaker of the sound source equipment to the sound source equipment.
In this embodiment, the purpose of switching the audio playing device of the sound source device can be achieved by turning off the instruction of the speaker of the sound source device, for example, the speaker playing of the sound source device is switched to be played through a smart phone or to be played through a smart phone, so as to prevent the speaker of the sound source device from affecting other users in the same scene.
In another embodiment of the present invention, the receiving an audio stream sent by the audio source device and playing the audio stream includes:
receiving an audio stream sent by the sound source equipment;
receiving a playing control instruction input by the terminal, and playing the audio stream according to the playing control instruction; the playing control instruction comprises a volume control instruction and/or a sound effect control instruction.
In this embodiment, after the terminal acquires the audio stream, the user can input a play control instruction through the terminal according to a personalized requirement, so that the played audio more conforms to the requirement of the user; for example, adjusting the volume level, enhancing the bass effect, etc. When a plurality of the terminals are connected to the same sound source equipment, the playing effect of each terminal can be controlled independently, so that different user requirements can be met simultaneously.
Of course, the playing control instruction may also include control instructions such as pause and fast forward, so as to pause or fast forward the playing of the audio stream for a preset time. For example, when the sound source device is a television and the terminal is an intelligent headset, and a video picture played on the television is not synchronous with an audio stream played in the current intelligent headset, the video picture and the audio stream can be kept synchronous through pause or fast forward.
After the playing the audio stream, the present invention may further include:
and confirming the end of the playing of the terminal, and sending an end request to the sound source equipment.
When the terminal finishes playing, an ending request can be sent to the sound source equipment so as to disconnect the audio stream transmission between the terminal and the sound source equipment and save network resources and electric quantity consumption.
Based on the first embodiment, the present invention proposes another embodiment, as shown in fig. 2: the sending of the request whether to support audio remote playing to the audio source device comprises steps S21 and S22:
step S21: if the number of the sound source equipment is more than two, reading a playing record within a preset time length of the terminal, arranging the more than two sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the sound source equipment with the first sequence in the list;
step S22: sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the audio source device and playing the audio stream includes step S41:
step S41: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
Correspondingly, the step S30 becomes step S31: and if receiving confirmation information which supports audio remote playing and is fed back by the selected sound source equipment, sending an audio remote playing request to the selected sound source equipment.
When the terminal detects sound source equipment of the same wireless local area network, a plurality of sound source equipment can be detected; for example, the terminal sends a broadcast to the wireless local area network, and if the terminal receives responses from more than two sound source devices, the terminal needs to accept or sort the sound source devices. In this embodiment, by reading the play record within the preset duration of the terminal, the sound source device with the longest play time in the play record is used as the preferred sound source device (i.e. the sound source device with the first order in the list), so as to send a request for whether to support audio remote play to the most frequently-used preferred sound source device of the user; the playing record within the preset time length of the terminal can be the playing record within the latest preset time length of the terminal, so that a user can be matched with the latest commonly used sound source equipment as soon as possible. In this embodiment, it is further continuously determined whether the audio stream sent by the selected sound source device is received within the predetermined time, and if not, the next ordered sound source device is obtained from the list, and a request for whether to support audio remote playing is sent to the obtained sound source device, so that when the data transmission problem occurs in the preferred sound source device, the preferred sound source device is timely switched to the next sound source device. This embodiment passes through the play time length of sound source equipment and the sound source equipment send the time of audio stream confirm the sound source equipment that needs the long-range broadcast audio frequency, have improved the matching speed between this terminal and a plurality of sound source equipment, especially have shortened the matching time at sound source equipment that the user commonly used and this terminal, have promoted user experience.
Based on the first embodiment, the present invention also proposes another embodiment: the sending the request whether to support audio remote playing to the sound source equipment comprises:
if the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, arranging the sound source equipment in the more than two into a list according to the signal connection strength from strong to weak, and selecting the sound source equipment in the first order in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the sound source device and playing the audio stream includes: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
In this embodiment, the sound source device that needs to play audio remotely is determined by the signal connection strength between the terminal and the two or more sound source devices and the time for sending audio streams by the sound source devices, so that reasonable sequencing is provided for matching between the terminal and the plurality of sound source devices, and the matching time is shortened.
Based on the first embodiment, as shown in fig. 3, the present invention also proposes another embodiment: the sending of the request whether to support audio remote playing to the sound source device comprises the steps of S23, S24 and S25:
step S23: if the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, and screening out the sound source equipment of which the signal connection strength is greater than a preset value from the sound source equipment;
step S24: reading the playing record within the preset time length of the terminal, arranging the screened sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the first ordered sound source equipment in the list;
step S25: sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the audio source device and playing the audio stream includes step S42:
step S42: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
Correspondingly, the step S30 becomes step S31: and if receiving confirmation information which supports audio remote playing and is fed back by the selected sound source equipment, sending an audio remote playing request to the selected sound source equipment.
In the embodiment, the sound source equipment with the signal connection strength greater than the preset value is used as the screening condition, so that the external equipment with weak signal connection strength can be quickly eliminated, and the matching time between the terminal and the plurality of sound source equipment is saved; meanwhile, the sorting sequence of the list is determined according to the playing record of the terminal in the preset duration, the time for the terminal to be matched with the common sound source equipment is further shortened, and the matching efficiency is improved.
In another embodiment of the present invention, the receiving an audio stream sent by the audio source device and playing the audio stream includes:
receiving an audio stream and a time axis which are separated from an audio and video stream file by the sound source equipment, wherein the time axis corresponds to a video picture in the audio and video stream;
and playing the audio stream according to the time axis.
The audio stream played in this embodiment may correspond to a video picture in the audio/video stream, so that the video picture viewed by the user is synchronized with the audio. For example, when a user uses the smart television box to connect a display to watch an audio/video file, the smart television box can be used as the sound source device; the terminal can be an intelligent sound box to receive the audio stream and the time axis sent by the intelligent television box; the display serves as another receiving device to receive the video stream and the time axis sent by the intelligent television box; when the audio stream and the video stream are played according to the time axis, the video stream watched by the user and the audio stream heard by the user can be synchronized, so that the user can normally watch the audio and video files.
In another implementation of the present invention, the sound source device may directly send the audio/video stream file to the terminal, so that the terminal plays the audio/video stream file as an audio file; therefore, the invention also provides the following embodiments:
the receiving the audio stream sent by the sound source device and playing the audio stream includes:
and receiving the audio and video stream sent by the sound source equipment, and playing the audio stream by taking the audio and video stream as an audio stream.
When the audio and video stream is played by the sound source equipment through the terminal and is also sent to another display device to be played, the audio and video stream played by the display device is the same as the audio and video stream played by the display device, so that the video picture played by the display device keeps synchronous with the audio stream played by the terminal, and a user can also normally watch the audio and video file.
In the last implementation, in order to further keep the synchronization of the video frame and the audio stream, the audio/video stream may further have a timestamp, and during playing, the audio/video stream timestamp of the terminal is always aligned with the timestamp of the display device, so as to avoid the asynchronous playing of the video frame and the audio stream caused by problems such as network delay.
The invention also provides a sound playing device, comprising:
the detection module is used for detecting sound source equipment in the same wireless local area network;
the confirmation module is used for sending a request whether to support audio remote playing to the sound source equipment;
the request module is used for receiving confirmation information which supports audio remote playing and is fed back by the sound source equipment and sending a request of audio remote playing to the sound source equipment;
and the playing module is used for receiving the audio stream sent by the sound source equipment and playing the audio stream.
In an application scenario of the present invention, a plurality of sound playing devices of the present invention may be included at the same time, each sound playing device may further include an audio adjusting module, and after receiving an audio stream sent by the sound source device, the plurality of sound playing devices respectively play the audio stream, and may individually adjust a volume level and a sound effect output by each sound playing device through the audio adjusting module, so as to realize playing personalized audio on each sound playing device.
Based on the previous embodiment of the sound playing device, the present invention further provides another embodiment of the sound playing device, wherein the confirmation module further includes a first sequencing sub-module, and the playing module further includes a first playing sub-module;
the first sequencing submodule is used for confirming that the number of the sound source equipment is more than two, reading a playing record in a preset time length of the terminal, sequencing the more than two sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the sound source equipment in the first sequencing in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the first playing submodule is used for judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
The invention also provides another embodiment of the sound playing device, wherein the confirmation module further comprises a second sequencing submodule, and the playing module further comprises a second playing submodule;
the second sequencing submodule is used for confirming that the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, sequencing the sound source equipment with the number of the sound source equipment in the list according to the signal connection strength from strong to weak, and selecting the sound source equipment with the first sequencing in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
and the second playing submodule is used for judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
The invention also provides another embodiment of the sound playing device, wherein the confirmation module further comprises a third sequencing submodule, and the playing module further comprises a third playing submodule;
the third sorting submodule is used for confirming that the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, and screening the sound source equipment of which the signal connection strength is more than a preset value from the sound source equipment; reading the playing record within the preset time length of the terminal, arranging the screened sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the first ordered sound source equipment in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the third playing submodule is used for judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
The invention also provides another embodiment of the sound playing device, wherein the playing module further comprises a fourth playing submodule, the fourth playing submodule is used for receiving the audio stream and the time axis which are separated from the audio and video stream file by the sound source equipment, and the time axis corresponds to the video picture in the audio and video stream;
and playing the audio stream according to the time axis.
Based on the above embodiments, the present invention further provides a playing terminal, where the playing terminal includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the steps of the sound playing method of any one of the preceding claims.
In light of the above exemplary description of the method executed by the playback terminal, the following further summarizes the implementation of the method executed by the audio source device in accordance with the present invention with reference to fig. 4.
As described above, the sound source device is equipped to cooperate with the play terminal to implement remote play of audio stream, so that the sound playing method of the sound source device end of the present invention, as shown in fig. 4, includes the following steps:
step S01: receiving a request whether to support audio remote playing sent by a playing terminal in the same wireless local area network;
step S02: feeding back confirmation information supporting audio remote playing to the playing terminal;
step S03: receiving a request for audio remote playing sent by the playing terminal;
step S04: and separating audio stream from the audio and video stream file, and sending the audio stream to the playing terminal.
In this embodiment, the terminal executing the method may be a sound source device such as a smart television box or a television. After receiving a request of whether the audio remote playing is supported or not, the terminal feeds back confirmation information of supporting the audio remote playing to the playing terminal; and separating an audio stream and a video stream from an audio and video stream file according to the request of audio remote playing sent by the playing terminal, and sending the audio stream to the playing terminal so that the playing terminal remotely plays the audio stream, and the video stream is left in the terminal for playing. The method realizes that the live video stream and the audio stream are displayed and played in different devices under the same WLAN or WiFi. Taking an intelligent television as an example, the intelligent television separates an audio stream and a video stream from a live audio and video stream file pulled from a network, the video stream is played by a display of the television, and the audio stream is played by the playing terminal. The terminal of the embodiment sends the audio stream to the playing terminal according to the request of the playing terminal, so as to achieve the purpose of playing the audio stream remotely.
In another embodiment of the sound source device of the present invention, the playing terminal may detect the terminal in the same wireless lan as the sound source device through broadcasting, and the playing terminal sends a request whether to support remote audio playing to the terminal; the terminal receives the request whether to support the audio remote playing and feeds back confirmation information supporting the audio remote playing to the playing terminal; after receiving the confirmation information, the playing terminal sends a request for audio remote playing to the terminal; the terminal receives the request of audio remote playing, then separates audio stream from audio/video stream file, and sends the audio stream to the playing terminal; and the playing terminal receives the audio stream sent by the sound source equipment and plays the audio stream. The playing terminal and the terminal in the embodiment realize the purpose of remotely playing the audio stream of the terminal through the playing terminal through information interaction.
When the terminal serving as the sound source device is detected by a plurality of intelligent terminal devices, the terminal can comprise a playing terminal with an audio playing function, an intelligent terminal which can not play audio streams or an intelligent terminal which does not have the authority of receiving the audio streams; therefore, the present invention also provides the following embodiments:
before separating the audio stream from the audio/video stream file and sending the audio stream to the playing terminal, the method further includes:
acquiring an identifier of the playing terminal;
and confirming that the playing terminal has the authority of playing the audio stream according to the identifier.
In this embodiment, if it is determined that the devices represented by the at least two identifiers have playback permissions, and each identifier represents an intelligent terminal, the intelligent terminals corresponding to all the identifiers having the permission to play the audio stream may be shown separately, so that the user may select the intelligent terminal as the playback terminal, or the intelligent terminals that are finally used as the playback terminal are sequentially determined through a preset automatic screening rule; if only one identifier with the audio stream playing authority is included in the at least two identifiers, only the intelligent terminal corresponding to the identifier can be displayed, or other identifiers without the audio stream playing authority are displayed in other colors or forms, so that the effect of prompting the user is achieved; if the obtained identifications do not have the intelligent terminal with the authority of playing the audio stream, the playing terminal capable of playing the audio stream is not connected with the terminal serving as the sound source equipment, or other information interaction abnormity exists. According to the embodiment, before the data of the audio stream is sent, the authority of the playing terminal can be confirmed, invalid data transmission is avoided, the safety of data transmission is ensured, network resources are saved, and the performance loss of the intelligent terminal and the sound source equipment is reduced.
According to the above embodiment of the sound playing method of the sound source device, the present invention further provides another embodiment of a sound source playing apparatus, including:
the judging module is used for receiving a request whether the audio remote playing is supported or not, which is sent by the playing terminals in the same wireless local area network;
a feedback module: the system comprises a playing terminal, a receiving terminal and a processing terminal, wherein the playing terminal is used for playing audio;
the receiving module is used for receiving the request of audio remote playing sent by the playing terminal;
and the sending module is used for separating the audio stream from the audio and video stream file and sending the audio stream to the playing terminal.
Based on the previous embodiment of the sound source playing device, the present invention further provides another embodiment of the sound source playing device, where the sound source playing device further includes:
and the permission confirmation module is used for acquiring the identifier of the playing terminal and confirming that the playing terminal has the permission to play the audio stream according to the identifier.
The invention also provides an embodiment of a sound playing system, which comprises the following steps:
the playing terminal detects sound source equipment in the same wireless local area network;
the playing terminal sends a request whether to support audio remote playing to the sound source equipment;
the sound source equipment receives a request whether to support audio remote playing or not, which is sent by playing terminals in the same wireless local area network;
the sound source equipment feeds back confirmation information supporting audio remote playing to the playing terminal;
if receiving confirmation information supporting audio remote playing fed back by the sound source equipment, the playing terminal sends a request of audio remote playing to the sound source equipment;
the sound source equipment receives a request for audio remote playing sent by the playing terminal;
the sound source equipment separates an audio stream from an audio/video stream file and sends the audio stream to the playing terminal;
and the playing terminal receives the audio stream sent by the sound source equipment and plays the audio stream.
The invention also provides another embodiment of a sound playing system, which comprises a playing terminal, a sound source device and a routing device; the routing equipment is used for establishing a wireless local area network and transmitting the interactive data of the playing terminal and the sound source equipment. The specific process can be shown in fig. 5:
1. the user can use the client A (such as a television) as a sound source device, the sound source device is provided with audio and video stream data, and the audio and video stream data and the audio stream data can be respectively output;
2. the client B (such as an earphone) can be a playing terminal and broadcasts or multicasts in a local area network established by the routing equipment to discover the client A;
3. b, the client side inquires whether the client side A supports audio remote playing or not through a local area network transmission protocol;
4. if the client A supports, informing the client B that the audio remote playing is available, and initiating an audio remote playing request by the client B;
5. after receiving the audio remote play request, the client A transmits the decoded audio stream to the client B through a local area network;
6. after the client obtains the audio stream, the audio stream can be played through a loudspeaker;
7. and the client B finishes playing, informs the client A and finishes the process.
The embodiment can solve the problem that the user cannot answer the audio information when the client A lacks the audio output equipment; moreover, when a plurality of B clients are arranged in the local area network, the sound effect and the volume can be independently adjusted by the user of each B client, and the problem that different users have different requirements for sound playing can be solved.
The present invention also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the sound playing method according to any one of the preceding claims.
The invention also proposes a terminal, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the steps of the sound playing method of any one of the preceding claims.
The terminal may comprise a play terminal, such as a smart speaker, for implementing a method of playing an audio stream; the terminal may further include a sound source device or a transfer device of the sound source device, such as an intelligent set-top box or an intelligent television, for implementing the method of transmitting the audio stream to the play terminal.
As shown in fig. 6, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technique are not disclosed, please refer to the method portion of the embodiment of the present invention. This broadcast terminal can be for including arbitrary playback devices such as intelligent audio amplifier, cell-phone, panel computer, on-vehicle computer, use broadcast terminal as the cell-phone for the example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (Wi-Fi) module 1570, processor 1580, and power supply 1590. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and 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 phone in detail with reference to fig. 6:
the RF circuit 1510 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 1580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 1510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1520 may be used to store software programs and modules, and the processor 1580 performs various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 1520. The memory 1520 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 for at least one function (such as a playback application program of an audio stream, etc.), and the like; the storage data area may store data (such as a received audio stream, etc.) created according to the use of the cellular phone, etc. Further, the memory 1520 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 input unit 1530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of the user on or near the touch panel 1531 using any suitable object or accessory such as a finger or a stylus) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1531 may include two parts, 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, and sends the touch point coordinates to the processor 1580, and can receive and execute commands sent by the processor 1580. In addition, the touch panel 1531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 1540 may include a Display panel 1541, and optionally, the Display panel 1541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1531 may cover the display panel 1541, and when the touch panel 1531 detects a touch operation on or near the touch panel 1531, the touch operation is transmitted to the processor 1580 to determine the type of the touch event, and then the processor 1580 provides a corresponding visual output on the display panel 1541 according to the type of the touch event. Although in fig. 6, the touch panel 1531 and the display panel 1541 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1531 and the display panel 1541 may be integrated to implement the input and output functions of the mobile phone.
The handset can also include at least one sensor 1550, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 1541 according to the brightness of ambient light and a proximity sensor that turns off the display panel 1541 and/or the backlight when the mobile phone 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 gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1560, speaker 1561, and microphone 1562 may provide an audio interface between a user and a cell phone. The audio circuit 1560 may transmit the received electrical signal converted from the audio stream to the speaker 1561, and convert the signal to a voiceprint signal for output by the speaker 1561; on the other hand, the microphone 1562 converts the collected voiceprint signals to electrical signals, which are received by the audio circuit 1560 and converted to an audio stream, which is processed by the output processor 1580 and passed through the RF circuit 1510 for transmission to, for example, another cell phone, or for output of audio data to the memory 1520 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send broadcast information, audio stream data, search audio decoding files and the like through a Wi-Fi module 1570, and provides wireless broadband internet access for the user.
The processor 1580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1520 and calling data stored in the memory 1520, thereby integrally monitoring the mobile phone. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, and the like, and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor may not be integrated into the processor 1580.
The handset also includes a power supply 1590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1580 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
It should be understood that, although the steps in the flowcharts of the figures 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 a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In addition, each module in each embodiment of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for playing sound, comprising:
detecting sound source equipment in the same wireless local area network;
sending a request whether to support audio remote playing to the sound source equipment;
if the number of the sound source equipment is more than two after receiving the confirmation information supporting the audio remote playing fed back by the sound source equipment, reading the playing record in the preset time length of the terminal, arranging the more than two sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the sound source equipment in the list; sending a request whether to support audio remote playing to the selected sound source equipment;
and receiving the audio stream sent by the sound source equipment, and playing the audio stream.
2. The playback method as claimed in claim 1,
the step of arranging the two or more sound source devices into a list according to the playing time in the playing record, and selecting the sound source device in the list, includes:
arranging the more than two sound source devices into a list according to the playing time in the playing record from long to short, and selecting the sound source device with the first order in the list;
the receiving the audio stream sent by the sound source device and playing the audio stream includes:
and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
3. The playback method according to claim 1, wherein the sending the request for whether audio remote playback is supported to the audio source device comprises:
if the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, arranging the sound source equipment in the more than two into a list according to the signal connection strength from strong to weak, and selecting the sound source equipment in the first order in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the sound source device and playing the audio stream includes:
and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
4. The playback method according to claim 1, wherein the sending the request for whether audio remote playback is supported to the audio source device comprises:
if the number of the sound source equipment is more than two, acquiring the signal connection strength of the terminal and the sound source equipment, and screening out the sound source equipment of which the signal connection strength is greater than a preset value from the sound source equipment; reading the playing record within the preset time length of the terminal, arranging the screened sound source equipment into a list according to the playing time in the playing record from long to short, and selecting the first ordered sound source equipment in the list;
sending a request whether to support audio remote playing to the selected sound source equipment;
the receiving the audio stream sent by the sound source device and playing the audio stream includes: and judging whether the audio stream sent by the selected sound source equipment is received within a preset time, if so, receiving the audio stream sent by the sound source equipment, and playing the audio stream, otherwise, judging whether the list has unselected sound source equipment, if so, acquiring next ordered sound source equipment from the list, and sending a request whether to support audio remote playing to the acquired sound source equipment.
5. The playback method according to claim 1, wherein the receiving an audio stream sent by the audio source device and playing back the audio stream comprises:
receiving an audio stream and a time axis which are separated from an audio and video stream file by the sound source equipment, wherein the time axis corresponds to a video picture in the audio and video stream;
and playing the audio stream according to the time axis.
6. A method for playing sound, comprising:
when the number of the sound source equipment is more than two, reading the playing records in the preset time length of the playing terminal, arranging the more than two sound source equipment into a list according to the playing time in the playing records from long to short, and receiving a request whether to support audio remote playing or not from the playing terminal in the same wireless local area network by the sound source equipment selected in the list;
feeding back confirmation information supporting audio remote playing to the playing terminal;
receiving a request for audio remote playing sent by the playing terminal;
and separating audio stream from the audio and video stream file, and sending the audio stream to the playing terminal.
7. The playing method according to claim 6, wherein before separating the audio stream from the audio/video stream file and sending the audio stream to the playing terminal, the method further comprises:
acquiring an identifier of the playing terminal;
and confirming that the playing terminal has the authority of playing the audio stream according to the identifier.
8. A sound playing apparatus, comprising:
the detection module is used for detecting sound source equipment in the same wireless local area network;
the confirmation module is used for sending a request whether to support audio remote playing to the sound source equipment;
the request module is used for receiving confirmation information supporting audio remote playing fed back by the sound source equipment, reading the playing records within the preset time length of the terminal, arranging the two or more sound source equipment into a list according to the playing time in the playing records from long to short, and selecting the sound source equipment in the list; sending a request whether to support audio remote playing to the selected sound source equipment;
and the playing module is used for receiving the audio stream sent by the sound source equipment and playing the audio stream.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the sound playing method of any one of claims 1 to 5, or the steps of the sound playing method of any one of claims 6 to 7.
10. A terminal, characterized in that the terminal comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the steps of the sound playing method of any one of claims 1 to 5, or the steps of the sound playing method of any one of claims 6 to 7.
CN201810486775.2A 2018-05-21 2018-05-21 Sound playing method, device, storage medium and terminal Active CN108735240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810486775.2A CN108735240B (en) 2018-05-21 2018-05-21 Sound playing method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810486775.2A CN108735240B (en) 2018-05-21 2018-05-21 Sound playing method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108735240A CN108735240A (en) 2018-11-02
CN108735240B true CN108735240B (en) 2020-12-25

Family

ID=63937613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810486775.2A Active CN108735240B (en) 2018-05-21 2018-05-21 Sound playing method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108735240B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493633A (en) * 2019-08-19 2019-11-22 武汉蓝星科技股份有限公司 A kind of image and audio separated transmission system, method and mobile terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017039575A1 (en) * 2015-08-28 2017-03-09 Hewlett-Packard Development Company, L.P. Remote sensor voice recognition

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360089A (en) * 2007-08-03 2009-02-04 深圳Tcl工业研究院有限公司 Method and system for network media process
CN105337934A (en) * 2014-07-04 2016-02-17 阿里巴巴集团控股有限公司 Audio output method and equipment
CN105681444A (en) * 2016-02-02 2016-06-15 优听无限传媒科技(北京)有限责任公司 Method for remotely controlling target wifi loudspeaker box by intelligent terminal
CN105848225B (en) * 2016-03-22 2019-05-21 Oppo广东移动通信有限公司 Wireless connection switching method and device in audio frequency broadcast system
CN106911909A (en) * 2017-03-02 2017-06-30 北京疯景科技有限公司 Video call method and system based on intelligent camera

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017039575A1 (en) * 2015-08-28 2017-03-09 Hewlett-Packard Development Company, L.P. Remote sensor voice recognition

Also Published As

Publication number Publication date
CN108735240A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN106791892B (en) Method, device and system for live broadcasting of wheelhouses
KR101878279B1 (en) Video remote-commentary synchronization method and system, and terminal device
US9294869B2 (en) Methods, systems and apparatus to affect RF transmission from a non-linked wireless client
CN106412681B (en) Live bullet screen video broadcasting method and device
US9635409B2 (en) Playback device, playback method, and recording medium
JP4536140B2 (en) Mobile terminal with media tuning, method of operating the same, and computer program
US9538318B2 (en) Apparatus and method for playing music
CN107332976B (en) Karaoke method, device, equipment and system
CN103391473B (en) Method and device for providing and acquiring audio and video
EP3018845A1 (en) Method of broadcast audio/video content play out handover and corresponding apparatus
CN103581210A (en) Multi-screen business platform supporting digital broadcast and television network
CN112019929A (en) Volume adjusting method and device
CN108735240B (en) Sound playing method, device, storage medium and terminal
CN105430469A (en) Method and device for playing audio/video data, terminal and server
CN105376318A (en) File transmission method, device and system
CN103686317A (en) Method and device for playing television channels
JP2007329860A (en) Television broadcast recording system, video recorder, and television broadcast recording method
CN113395576B (en) Scene switching method, computer equipment and storage medium
KR20120078978A (en) Device and method for transmitting data in wireless terminal
KR100928253B1 (en) VOD data transmission method of mobile communication terminal and mobile communication terminal implementing such method
KR100743243B1 (en) Method for playing multimedia in portable terminal and the portable terminal thereof
JP6302062B2 (en) Electronic apparatus, method and program
US20200111473A1 (en) Method and Apparatus For Transmitting Audio
CN105451089A (en) Multimedia processing device and multimedia communication system
CN113497911A (en) Video communication method and device

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
GR01 Patent grant
GR01 Patent grant