CN107105337B - Wireless multimedia playing method and device - Google Patents

Wireless multimedia playing method and device Download PDF

Info

Publication number
CN107105337B
CN107105337B CN201710109626.XA CN201710109626A CN107105337B CN 107105337 B CN107105337 B CN 107105337B CN 201710109626 A CN201710109626 A CN 201710109626A CN 107105337 B CN107105337 B CN 107105337B
Authority
CN
China
Prior art keywords
player
multimedia
main player
current
playing
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
CN201710109626.XA
Other languages
Chinese (zh)
Other versions
CN107105337A (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.)
Shenzhen Zowee Technology Co Ltd
Original Assignee
Shenzhen Zowee 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 Shenzhen Zowee Technology Co Ltd filed Critical Shenzhen Zowee Technology Co Ltd
Priority to CN201710109626.XA priority Critical patent/CN107105337B/en
Publication of CN107105337A publication Critical patent/CN107105337A/en
Application granted granted Critical
Publication of CN107105337B publication Critical patent/CN107105337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6131Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via a mobile phone network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8106Monomedia components thereof involving special audio data, e.g. different tracks for different languages

Abstract

The invention relates to a wireless multimedia playing method and a device, wherein the method comprises the steps of judging whether an online signal sent by a main player is received or not; when the multimedia is not received, downloading and playing the multimedia according to the playing address of the stored multimedia; sending the current multimedia to a multicast group to enable other players in the multicast group to play the current multimedia; sending the replaced information of the main player to the terminal; receiving information of a new standby player sent by a terminal; an on-line signal is sent to the new standby player. The method comprises the steps that the standby main player and the main player are set to be in real-time communication, so that the standby main player can know whether the main player is online or not in real time, when the main player is not online, the standby main player replaces the main player to download multimedia information and sends the multimedia information to a multicast group, and in order to prevent a new main player from being in fault or power failure, a terminal reconfigures the new standby main player after the original main player is in fault or power failure, so that multimedia can be continuously played.

Description

Wireless multimedia playing method and device
Technical Field
The present invention relates to the field of multimedia playing, and in particular, to a method and an apparatus for playing wireless multimedia.
Background
In an audio source system, multi-room (multi) audio playing is known as a new application scenario, and the playing mode of the multi-room audio system is to push audio data to all slave speakers through a master speaker via an audio line, but when the master speaker fails or is powered off during playing, the entire group of multiple speakers stops playing.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for playing a wireless multimedia, aiming at the problem that the whole audio set stops playing after the main speaker fails or is powered off.
A wireless multimedia playback method, the method comprising:
judging whether an online signal sent by a main player is received or not;
when the online signal sent by the main player is not received, the multimedia is continuously downloaded and played according to the stored playing address of the multimedia;
sending the current multimedia to a multicast group so as to enable other players in the multicast group to play the current multimedia;
sending the replaced information of the main player to the terminal;
receiving information of a new standby player sent by a terminal;
and sending an online signal to the new standby player.
In one embodiment, the step of continuing to download and play the multimedia according to the stored playing address of the multimedia includes:
calculating the playing position of the current multimedia;
downloading the current multimedia according to the stored playing address of the current multimedia;
and playing the current multimedia according to the playing position of the current multimedia.
In one embodiment, the step of sending the current multimedia to the multicast group includes:
dividing the current multimedia into a plurality of data packets;
and sending the data packets to a multicast group in multiple times, and sending the data packet sent last time and the data packet to be sent currently to the multicast group when the data packet sent to the multicast group is not the first data packet.
A wireless multimedia playback method, the method comprising:
receiving the replaced information of the main player sent by the current standby main player;
configuring the current standby main player as a new main player;
selecting a player from online slave players in the multicast group according to a preset logic to configure the player as a new standby player;
sending the current multimedia playing address to the new standby player;
and sending the information of the new standby main player to the new main player.
In one embodiment, the step of selecting a player from online slave players in the multicast group to configure as a new standby player according to a preset logic includes:
calculating the value of the MAC address of the on-line slave player;
and configuring the slave player with the maximum value of the MAC address as a new standby player.
A wireless multimedia playback device, the device comprising:
the first receiving module is used for judging whether an online signal sent by a main player is received or not;
the continuous playing module is used for continuously downloading and playing the multimedia according to the stored playing address of the multimedia when the online signal sent by the main player is not received;
the first sending module is used for sending the current multimedia to a multicast group so as to enable other players in the multicast group to play the current multimedia;
the second sending module is used for sending the replaced information of the main player to the terminal;
the second receiving module is used for receiving the information of the configured new standby player sent by the terminal;
and the third sending module is used for sending an online signal to the new standby player.
In one embodiment, the resume module includes:
the first calculating unit is used for calculating the playing position of the current multimedia;
the downloading unit is used for downloading the current multimedia according to the stored playing address of the current multimedia;
and the playing unit is used for playing the current multimedia according to the playing position of the current multimedia.
In one embodiment, the first sending module comprises:
a packet forming unit for dividing the current multimedia into a plurality of packets;
and the sending unit is used for sending the data packet sent last time and the data packet to be sent currently to the multicast group when the data packet sent to the multicast group is not the first data packet.
A wireless multimedia playback device, the device comprising:
the third receiving module is used for receiving the replaced information of the main player sent by the current standby main player;
a first configuration module, configured to configure the current standby main player as a new main player;
the second configuration module is used for selecting a player from online slave players in the multicast group according to preset logic to configure the player as a new standby player;
a fourth sending module, configured to send the current multimedia playing address to the new standby player;
and the fifth sending module is used for sending the information of the new standby main player to the new main player.
In one embodiment, the second configuration module comprises:
a second calculation unit for calculating a value of the MAC address of the slave player on-line;
and the configuration unit is used for configuring the slave player with the maximum value of the MAC address as a new standby player.
According to the wireless multimedia playing method and device, the standby main player is arranged and is in real-time communication with the main player, so that the standby main player can know whether the main player is online or not in real time, when the main player is offline, namely, power failure or power failure occurs, the standby main player replaces the main player to continuously download multimedia information and send the multimedia information to the multicast group, other players in the multicast group can continuously play multimedia conveniently, and in order to prevent the new main player from also failing or power failure, after the original main player fails or is powered off, the terminal reconfigures the new standby main player, so that the multimedia can be continuously played.
Drawings
FIG. 1 is a diagram illustrating an exemplary wireless multimedia playback system;
FIG. 2 is a flow chart of a wireless multimedia playing method according to an embodiment;
FIG. 3 is a flowchart of step S204 shown in FIG. 2;
fig. 4 is a flowchart of step S206 shown in fig. 2;
FIG. 5 is a flow chart of a wireless multimedia playing method according to another embodiment;
FIG. 6 is a timing diagram illustrating a wireless multimedia playback method according to an embodiment;
FIG. 7 is a flow chart of the playing of the player in the embodiment shown in FIG. 6;
FIG. 8 is a diagram illustrating an embodiment of a wireless multimedia playback device;
FIG. 9 is a diagram of a wireless multimedia playback device according to another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Before describing in detail embodiments that are in accordance with the present invention, it should be observed that the embodiments reside primarily in combinations of steps and system components related to wireless multimedia playback methods and apparatus. Accordingly, the system components and method steps have been represented where appropriate by conventional symbols in the drawings, showing only those details that are pertinent to understanding the embodiments of the present invention so as not to obscure the disclosure with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
In this document, relational terms such as left and right, top and bottom, front and back, first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a diagram illustrating an application environment of a wireless multimedia playing system according to an embodiment, where the wireless multimedia playing system includes a plurality of players, a wireless router, and a terminal, where the plurality of players can be respectively disposed in different rooms to achieve synchronous playing of multimedia in multiple locations, such as multiple rooms, in a home, a company, or a supermarket. The terminal can be a mobile phone, a computer or a tablet computer, and the user can configure the plurality of players through the terminal, so that the plurality of players are divided into a main player, a standby player and a plurality of slave players. The main player can download multimedia from a mobile internet, generally an audio server, through a wireless router, and send the multimedia to a multicast formed by the standby player and the plurality of slave players, so that the standby player and the plurality of slave players can play the multimedia conveniently. The main player, the standby main player, the plurality of slave players and the terminal can communicate with the wireless router in a 2.4G wireless communication mode.
As shown in fig. 2, in one embodiment, a wireless multimedia playing method is provided, and this embodiment is illustrated by applying the method to the backup player in the wireless multimedia playing system in fig. 1. The standby player runs a wireless multimedia playing program, and the wireless multimedia playing method is realized in real time through the wireless multimedia playing program. The method specifically comprises the following steps:
s202: and judging whether an online signal sent by a main player is received.
After the terminal is configured to complete the main player, the standby player and the slave player, the user can start using the wireless multimedia playing system. The multimedia may refer to wireless music (wireless music, which is one of digital music mainly produced by a computer by using a digital means based on a wireless internet, and refers to a digital music service provided through a mobile communication network and a mobile internet), wireless video, and the like. For example, a user may set a play instruction for playing a song through a terminal, and at this time, after receiving the wireless play instruction through the wireless router, the master player downloads the song through the wireless router and plays the song, and sends the song to the multicast group, so that the master player and the slave player can play the song, and thus, if the master player is not online, that is, when a power failure or a fault occurs, the entire wireless multimedia playing system cannot operate. To prevent this, the main player is configured so that it can periodically send an online signal to the standby player to facilitate the standby player to detect whether the main player is online in real time, so that the standby player can continue downloading and playing the song in place of the main player when the main player is powered off or fails. The main player can carry out TCP heartbeat communication with the standby player, the period can be set according to the playing speed of the wireless multimedia, the user can be ensured not to have a pause feeling when hearing or seeing the wireless multimedia, and the period can be set to be 1 second, 2 seconds, 1.5 seconds and the like.
S204: and when the online signal sent by the main player is not received, continuously downloading and playing the multimedia according to the stored playing address of the multimedia.
When the standby main player does not receive the online signal sent by the main player, namely the main player is powered off or fails, in order to prevent the situation that the wireless multimedia stops playing, the standby main player can replace the original main player and continue to download and play the multimedia according to the stored playing address of the multimedia so as to realize the continuous playing of the multimedia.
For example, when a user sets a playing instruction for playing a song through the terminal, the playing instruction includes the playing address of the song, and the terminal can simultaneously send the playing instruction to the main player and the standby player, so that when the main player is powered off or fails, the standby player can directly download corresponding multimedia through the playing address.
S206: and sending the current multimedia to the multicast group so as to enable other players in the multicast group to play the current multimedia.
When the main player is powered off or fails, the standby main player replaces the main player to work, the working mode of the standby main player is the same as that of the original main player, namely, the downloaded multimedia is sent to the multicast group, so that other players in the multicast group can play the current multimedia conveniently.
S208: and sending the replaced information of the main player to the terminal.
In order to enable the multimedia to be continuously played, the terminal needs to know the state of each player in the multicast group all the time, and after the standby main player judges that the main player is in failure, the terminal needs to be informed that the current main player is replaced, so that the terminal is convenient to configure a new standby main player, and therefore when the new main player is powered off or in failure, the new standby main player can realize the continuous playing of the multimedia.
S210: and receiving the information of the new standby player sent by the terminal.
When knowing that the main player is replaced, the terminal configures a new standby main player and sends information of the standby main player to the new main player, so that the main player can send an online signal to the new standby main player to prevent the multimedia playing from stopping when the new main player is powered off or fails.
S212: an on-line signal is sent to the new standby player.
According to the wireless multimedia playing method, the standby main player is arranged to communicate with the main player in real time, so that the standby main player can know whether the main player is online or not in real time, when the main player is offline, namely, power failure or power failure occurs, the standby main player replaces the main player to continuously download multimedia information and send the multimedia information to the multicast group, so that other players in the multicast group can continuously play multimedia, and in order to prevent the new main player from also failing or power failure, the terminal reconfigures the new standby main player after the original main player fails or is powered off, so that the multimedia can be continuously played.
As shown in fig. 3, in an embodiment, the step S204 shown in fig. 2, namely, the step of continuing to download and play the multimedia according to the play address of the stored multimedia, may include:
s302: and calculating the playing position of the current multimedia.
Specifically, when the standby main player determines that the main player has failed, the standby main player replaces the original main player to become a new main player, and the new main player can calculate the playing position of the current multimedia so as to realize the continuous playing of the multimedia without playing the multimedia again. The standby player can calculate the size of the played multimedia according to the bit rate of the multimedia transmission and the current playing time point, so as to determine the playing position of the current multimedia.
S304: and downloading the current multimedia according to the stored playing address of the current multimedia.
When a new main player calculates the size of the played multimedia, the multimedia can be found through the playing address of the stored current multimedia, and the HTTP Get (HyperText Transfer Protocol) is a network Protocol which is most widely applied on the internet, wherein HTTP defines different methods for interacting with a server, one of the methods is Get, and Get can be used for information acquisition according to HTTP specifications, and the field identifies the size of the played multimedia in a Range field (which identifies that the server supports the power-off resume function) of the message header of the request, so that the audio server can send the multimedia from the playing position to the new main player by analyzing the message, so as to realize the breakpoint resume of the multimedia.
S306: and playing the current multimedia according to the playing position of the current multimedia.
In the above embodiment, the multimedia can be simply played continuously from the breakpoint of the multimedia through the calculated playing position of the multimedia and the stored playing address of the multimedia, and the breakpoint continuous playing of the multimedia is realized, so that the user does not need to repeatedly listen to or watch the played multimedia, and the user experience is optimized.
As shown in fig. 4, in one embodiment, the step S206 shown in fig. 2, namely, the step of sending the current multimedia to the multicast group, may include:
s402: the current multimedia is divided into a plurality of data packets.
Specifically, when the multimedia is downloaded by a new master player, the multimedia needs to be converted into a data packet that can be identified by the multicast group, so that after other players in the multicast group, such as a standby master player and a slave player, can download the data packet, the data packet is parsed to obtain the multimedia, and thus the master player, the standby player and the slave player can play the same multimedia at the same time. As shown in table 1 below, the packet may include a packet header field, a protocol version number, a channel number, an audio slice length, a sampling rate, an audio coding ID, a group volume, a group in which the packet is located, an audio data length, a current play time point, a main player IP address, and a reserved field.
TABLE 1 data packet structure
Message header field Occupied byte size
Protocol version number 1Byte
Number of channels 1Byte
Audio film length 2Bytes
Message sequence number 4Bytes
Sampling rate 4Bytes
Bit rate 4Bytes
Audio coding ID 4Bytes
Group volume 1Bytes
In the group 1Bytes
Audio data length 4Bytes
Current playing time point 4Bytes
Main player IP address 4Bytes
Reserved field 4Bytes
The protocol version number can be set as required. The number of channels is 1 or 2, 1 representing mono and 2 representing binaural. The audio duration refers to the duration of the audio when the multimedia is an audio file, and the unit of the duration may be seconds, i.e., the playing time of a song, such as 280 seconds. The sample rate is the sample rate of the multimedia, which may be 44100Hz, 48000Hz, or 96000 Hz. The audio encoding ID is the encoding ID of the audio of the multimedia, and identifies the only new audio format, such as mp3, the audio ID may be set to 0x 15001. The group volume is the playing volume of the current multicast group. The group is the packet number of the currently playing group. The length of the audio data is the length of the audio data carried by the current data. The current playing time point is not the current playing time point of the main player and is in milliseconds. The main player IP address is an IP address assigned to the main player by the wireless router to which the main player is connected. Reserved fields are fields that are reserved for future use.
In addition, for a plurality of players, a plurality of multicast groups may be set, and each group number corresponds to a pair of multicast address and port number, for example, when the group is divided into 10 multicast groups, the corresponding IP address and port number of the main player may be: a first packet { "225.1.1.1",5001}, a second packet { "225.2.2.2",5002}, a third packet { "225.3.3.3",5003}, a fourth packet { "225.4.4.4",5004}, a fifth packet { "225.5.5.5",5005}, a sixth packet { "225.6.6.6",5006}, a seventh packet { "225.7.7.7",5007}, an eighth packet { "225.8.8.8",5008}, a ninth packet { "225.9.9.9",5009}, a tenth packet { "225.10.10.10",5010 }.
S404: and sending the data packets to the multicast group in multiple times, and sending the data packet sent last time and the data packet to be sent currently to the multicast group when the data packet sent to the multicast group is not the first data packet.
Specifically, aiming at the unreliable packet loss characteristic of the UDP protocol, an optimized mode is provided, namely, for a data packet sent to a multicast group by a main player, when the data packet is a first data packet sent by the main player, only the data packet is sent, and when the data packet is a second data packet sent by the main player, the first data packet before sending is sent first, and then the second data packet is sent; for the third data packet, the previous second data packet is sent first, and then the third data packet is sent; and by analogy, for the nth data packet, the previous nth-1 data packet is sent first, and then the nth data packet is sent, so that the packet loss rate can be reduced approximately.
In this embodiment, the data packets are sent to the multicast group in several times, and when the data packet sent to the multicast group is not the first data packet, the data packet sent last time and the data packet to be sent currently are sent to the multicast group, so that the packet loss rate can be greatly reduced, and the standby player and the slave player can be played synchronously with the main player.
As shown in fig. 5, in one embodiment, a wireless multimedia playing method is provided, and this embodiment is illustrated by applying the method to the terminal in the wireless multimedia playing system in fig. 1. The terminal runs a wireless multimedia playing program, and the wireless multimedia playing method is realized in real time through the wireless multimedia playing program. The method specifically comprises the following steps:
s502: and receiving the main player replaced information sent by the current standby main player.
Specifically, the configuration of the player needs to be performed by the terminal, and after the terminal receives the main player replacement information sent by the standby main player, the terminal automatically configures a new standby main player and a new main player, so that the multimedia continues to be played.
S504: the current standby player is configured as a new main player.
Generally, the terminal automatically configures the current standby main player as a new main player so that the new main player continues to download multimedia and play.
S506: and selecting one player from the online slave players in the multicast group according to preset logic to be configured as a new standby player.
In addition, in order to prevent the multimedia playing from failing when the new master player fails, the terminal configures a new standby master player, for example, the terminal may randomly select one from the online slave players as the new standby master player, or may select a player from the online slave players according to a preset logic to configure the player as the new standby master player. The preset logic may be user preset, for example, a priority preset by a user.
S508: and sending the current multimedia playing address to the new standby player.
When the new main player is powered off or fails, the multimedia playing address can be sent to the new standby main player in order to realize the continuous playing of the multimedia, so that when the new main player is powered off or fails, the new standby main player can continue to download and play the multimedia according to the playing address.
S510: and sending the information of the new standby main player to the new main player.
In addition, it is also necessary to send information of the new standby main player to the new main player, e.g. to send the IP address of the new standby main player to the new main player, so that the new main player can send an online signal to the new standby main player.
In the above embodiment, the configuration of the new main player and the new standby main player is realized through the terminal, so that when the original main player is powered off or fails, the new main player and the new standby main player can be configured, and multimedia can be played indefinitely.
In one embodiment, the step S506 shown in fig. 5, namely, the step of selecting a player from the online slave players in the multicast group to be configured as a new standby player according to the preset logic, may include: a value of the MAC address (Media Access Control address ) of the slave player on line is calculated. And configuring the slave player with the maximum value of the MAC address as a new standby player. Namely, the principle that the terminal selects the standby player is performed according to the following rules: and changing the MAC addresses of all online slave players in the current multicast group into a long-integer value, then sequencing, and finally selecting the slave player with the largest value as a new standby player.
In the above embodiment, the selection of the new standby player can be automatically realized through the MAC address, so that the terminal can automatically configure the new standby player, and the multimedia can continue to be played.
Referring to fig. 6 and 7, fig. 6 is a timing diagram illustrating a wireless multimedia playing method according to an embodiment, and fig. 7 is a playing flow chart of the player according to the embodiment shown in fig. 6.
The wireless multimedia playing system includes a terminal, a master player, a wireless router, a standby player and a plurality of slave players, in this embodiment, only two slave players are taken as an example for description, that is, a first slave player and a second slave player.
UPnP protocol (UPnP is a structure that implements peer-to-peer network connections (P2P) that are distributed throughout the world. UPnP is a distributed, open network architecture. UPnP is an independent medium. in any operating system, UPnP devices can be used using any programming language.UPnP protocol, i.e., Universal Plug and Play, is a Universal Plug and Play, abbreviated UPnP.the UPnP specification is based on the TCP/IP protocol and a new Internet protocol that is formulated for devices to communicate with each other), is used for communication between the terminal and the player, and additionally a thread can be started for detecting whether the multi-room flag supports multi-rooms, i.e., whether multicast groups are supported, and if not, for cyclically waiting to support multi-rooms; and the corresponding multicast group is added to support multiple rooms, the multicast data is waited to be received, and the thread is in a blocking state.
First, the terminal sets a multicast group, for example, in fig. 6, 4 players are included, and then a corresponding player is selected from the 4 players to configure as a master player, a standby player, and a slave player, and when the configuration is completed, the master player can send an online signal, i.e., a heartbeat signal, to the standby player.
Secondly, after the terminal selects the multimedia to be played, the playing address of the multimedia is sent to the main player and the standby player.
Third, after each player is started, for example, referring to fig. 7, after the main player is started, a send data socket is set to prohibit a local loop, when a play UR L (Uniform resource L bearer) sent by a terminal is received, the main player downloads a file via an Http protocol (hypertext transfer protocol), detects an audio file format, opens a corresponding decoder, reads each frame of audio data in a loop, and then determines whether multi-room play is supported or not according to its own configuration file, i.e., whether a multicast group is supported or not, if a multicast group is supported, it continues to determine whether a connection with a wireless router is made, and if the main player is connected with a wireless router, the multimedia is sent to the multicast group in a loop via the wireless router.
After the standby player and the slave player are started, it may also first determine whether a multicast group is supported, if not, wait for configuration of a terminal, if the terminal has joined into a corresponding multicast group, receive data in the multicast group, where a receiving time may be set, for example, when data of the multicast group has not been received within a preset time, the standby player and the slave player may turn off their own decoders, where the preset time may be set to 5 seconds, 4 seconds, 10 seconds, and the like. If the multicast data is received within the preset time, the multicast data can be analyzed through a decoder, then whether the multicast data is matched with the current decoder is judged, if the current decoder can decode the current multicast data, the current multicast data is decoded and played through the current decoder, if the current decoder cannot decode the current multicast data, the multicast data is set, and after the corresponding decoder is opened, the current multicast data is decoded and played through the corresponding decoder.
Fourthly, in the playing process of the wireless multimedia playing system, the main player may be powered off or failed, at this time, the standby player may detect that the main player is not online, and send offline information of the main player to the terminal, after receiving the offline information of the main player, the terminal configures a new main player and a new standby player according to preset logic, that is, information of the new standby player, which includes an IP address, is sent to the original standby main player, that is, the new main player, as shown in fig. 6, the terminal configures the first slave player as the new standby main player, and the new main player sends an online signal to the new standby main player, so as to prevent the multimedia from stopping playing after the power off or failure of the new standby main player.
In the above embodiment, the standby main player is arranged to perform real-time communication with the main player, so that the standby main player can know whether the main player is online in real time, when the main player is offline, that is, when the main player is powered off or fails, the standby main player replaces the main player to continuously download multimedia information and send the multimedia information to the multicast group, so that other players in the multicast group can continue to play multimedia, and in order to prevent a new main player from also failing or being powered off, after the original main player fails or is powered off, the terminal reconfigures the new standby main player, so that the multimedia can continue to be played.
Referring to fig. 8, fig. 8 is a schematic diagram of a wireless multimedia player according to an embodiment, the wireless multimedia player may include:
the first receiving module 101 is configured to determine whether an online signal sent by a main player is received.
And the continuous playing module 102 is configured to continue downloading and playing the multimedia according to the stored playing address of the multimedia when the online signal sent by the main player is not received.
A first sending module 103, configured to send the current multimedia to the multicast group, so that other players in the multicast group play the current multimedia.
And a second sending module 104, configured to send the main player replaced information to the terminal.
And a second receiving module 105, configured to receive information of the configured new standby player sent by the terminal.
And a third sending module 106, configured to send an online signal to the new standby player.
In one embodiment, the resume module 102 includes:
the first calculating unit is used for calculating the playing position of the current multimedia.
And the downloading unit is used for downloading the current multimedia according to the stored playing address of the current multimedia.
And the playing unit is used for playing the current multimedia according to the playing position of the current multimedia.
In one embodiment, the first sending module 103 includes:
a packet forming unit for dividing the current multimedia into a plurality of packets.
And the sending unit is used for sending the data packet sent last time and the data packet to be sent currently to the multicast group when the data packet sent to the multicast group is not the first data packet.
Referring to fig. 9, fig. 9 is a schematic diagram of a wireless multimedia playing device according to another embodiment, the device may include:
a third receiving module 201, configured to receive the main player replaced information sent by the current standby main player.
A first configuration module 202 for configuring the current standby main player as a new main player.
And a second configuring module 203, configured to select a player from online slave players in the multicast group according to a preset logic to configure the selected player as a new standby player.
A fourth sending module 204, configured to send the current multimedia playing address to the new standby player.
A fifth sending module 205, configured to send the information of the new standby main player to the new main player.
In one embodiment, the second configuration module 203 comprises:
and the second calculation unit is used for calculating the value of the MAC address of the on-line slave player.
And the configuration unit is used for configuring the slave player with the maximum value of the MAC address as a new standby player.
For the above definition of the wireless multimedia control device, reference may be made to the above definition of the wireless media control method, which is not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A wireless multimedia playing method, the method comprising:
receiving a playing address of the multimedia sent by a terminal, wherein the terminal is also used for configuring a current main player and a current standby main player and sending the playing address of the multimedia to the main player;
judging whether an online signal sent by a main player is received or not;
when the online signal sent by the main player is not received, calculating the playing position of the current multimedia through the bit rate of multimedia transmission and the current playing time point;
continuously downloading the current multimedia according to the playing address of the multimedia which is sent by the terminal during configuration and stored to the local, and playing the downloaded current multimedia according to the playing position;
sending the current multimedia to a multicast group so as to enable other players in the multicast group to play the current multimedia;
sending the replaced information of the main player to the terminal;
receiving information of a new standby main player sent by a terminal, wherein the information of the new standby main player is that the terminal configures a current standby main player as a new main player, and the terminal selects a player from online slave players in a multicast group according to preset logic to configure the player as the new standby main player and sends a current multimedia playing address to the new standby main player;
and sending an online signal to the new standby player.
2. The method of claim 1, wherein the step of sending the current multimedia to a multicast group comprises:
dividing the current multimedia into a plurality of data packets;
and sending the data packets to a multicast group in multiple times, and sending the data packet sent last time and the data packet to be sent currently to the multicast group when the data packet sent to the multicast group is not the first data packet.
3. A wireless multimedia playing method, the method comprising:
configuring a current main player and a current standby main player, and sending a multimedia playing address to the current main player and the current standby main player;
receiving main player changed information sent by the current standby main player, wherein the main player changed information is generated after the current standby main player does not receive an online signal sent by the current main player, the current standby main player calculates the playing position of the current multimedia according to the bit rate of multimedia transmission and the current playing time point, continues to download the current multimedia according to the playing address, and continues to play the downloaded current multimedia according to the playing position;
configuring the current standby main player as a new main player;
selecting a player from online slave players in the multicast group according to a preset logic to configure the player as a new standby player;
sending the current multimedia playing address to the new standby player;
and sending the information of the new standby main player to the new main player.
4. The method according to claim 3, wherein the step of selecting a player from the online slave players in the multicast group as a new standby player according to a predetermined logic comprises:
calculating the value of the MAC address of the on-line slave player;
and configuring the slave player with the maximum value of the MAC address as a new standby player.
5. A wireless multimedia playback apparatus, the apparatus comprising:
the terminal is also used for configuring a current main player and a current standby main player and sending the playing address of the multimedia to the main player;
the first receiving module is used for judging whether an online signal sent by a main player is received or not;
the first calculation module is used for calculating the playing position of the current multimedia through the bit rate of multimedia transmission and the current playing time point when the online signal sent by the main player is not received;
the continuous playing module is used for continuously downloading the current multimedia according to the playing address of the multimedia which is sent by the terminal during configuration and stored to the local, and playing the downloaded current multimedia according to the playing position;
the first sending module is used for sending the current multimedia to a multicast group so as to enable other players in the multicast group to play the current multimedia;
the second sending module is used for sending the replaced information of the main player to the terminal;
the second receiving module is used for receiving information of the configured new standby main player sent by the terminal, wherein the information of the new standby main player is that the terminal configures the current standby main player as the new main player, and the terminal selects a player from online slave players in the multicast group according to preset logic and configures the player as the new standby main player, and sends the current multimedia playing address to the new standby main player;
and the third sending module is used for sending an online signal to the new standby player.
6. The apparatus of claim 5, wherein the first sending module comprises:
a packet forming unit for dividing the current multimedia into a plurality of packets;
and the sending unit is used for sending the data packet sent last time and the data packet to be sent currently to the multicast group when the data packet sent to the multicast group is not the first data packet.
7. A wireless multimedia playback apparatus, the apparatus comprising:
the configuration and sending module is used for configuring a current main player and a current standby main player and sending a multimedia playing address to the current main player and the current standby main player;
a third receiving module, configured to receive main player changed information sent by the current standby main player, where the main player changed information is generated after the current standby main player does not receive an online signal sent by the current main player, and the current standby main player calculates a playing position of a current multimedia according to a bit rate of multimedia transmission and a current playing time point, continues to download the current multimedia according to the playing address, and continues to play the downloaded current multimedia according to the playing position;
a first configuration module, configured to configure the current standby main player as a new main player;
the second configuration module is used for selecting a player from online slave players in the multicast group according to preset logic to configure the player as a new standby player;
a fourth sending module, configured to send the current multimedia playing address to the new standby player;
and the fifth sending module is used for sending the information of the new standby main player to the new main player.
8. The apparatus of claim 7, wherein the second configuration module comprises:
a second calculation unit for calculating a value of the MAC address of the slave player on-line;
and the configuration unit is used for configuring the slave player with the maximum value of the MAC address as a new standby player.
CN201710109626.XA 2017-02-27 2017-02-27 Wireless multimedia playing method and device Active CN107105337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710109626.XA CN107105337B (en) 2017-02-27 2017-02-27 Wireless multimedia playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710109626.XA CN107105337B (en) 2017-02-27 2017-02-27 Wireless multimedia playing method and device

Publications (2)

Publication Number Publication Date
CN107105337A CN107105337A (en) 2017-08-29
CN107105337B true CN107105337B (en) 2020-07-24

Family

ID=59675546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710109626.XA Active CN107105337B (en) 2017-02-27 2017-02-27 Wireless multimedia playing method and device

Country Status (1)

Country Link
CN (1) CN107105337B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948703B (en) * 2017-11-22 2020-02-18 青岛海信电器股份有限公司 Method and device for synchronizing playing progress
CN112260982B (en) * 2019-07-22 2022-03-11 华为技术有限公司 Audio processing method and device
CN110557454B (en) * 2019-09-10 2022-07-05 广州河东科技有限公司 Method for realizing synchronous playing of multiple machines based on cloud network music player
CN115665002B (en) * 2022-10-24 2023-05-30 国网山东省电力公司 System and method for detecting computer network abnormality

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101389013A (en) * 2008-10-16 2009-03-18 中兴通讯股份有限公司 Main and standby code stream switching implementing device, method and system for mobile multimedia broadcast system
CN101960852A (en) * 2008-03-05 2011-01-26 阿尔卡特朗讯公司 System, method and computer readable medium for providing redundancy in a media delivery system
CN102025551A (en) * 2010-12-23 2011-04-20 中兴通讯股份有限公司 Method and device for switching master device to backup device based on access gateway
CN102264001A (en) * 2010-05-25 2011-11-30 华为技术有限公司 Method for enhancing multicast reliability of Internet protocol television (IPTV), server and system
CN102541697A (en) * 2010-12-31 2012-07-04 中国航空工业集团公司第六三一研究所 Switching method for processing fault of dual-redundancy computer
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN102905059A (en) * 2012-09-27 2013-01-30 曙光信息产业(北京)有限公司 Continuous radio and television broadcast system
CN104244063A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Conversion method and device of multiple playing devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101960852A (en) * 2008-03-05 2011-01-26 阿尔卡特朗讯公司 System, method and computer readable medium for providing redundancy in a media delivery system
CN101389013A (en) * 2008-10-16 2009-03-18 中兴通讯股份有限公司 Main and standby code stream switching implementing device, method and system for mobile multimedia broadcast system
CN102264001A (en) * 2010-05-25 2011-11-30 华为技术有限公司 Method for enhancing multicast reliability of Internet protocol television (IPTV), server and system
CN102025551A (en) * 2010-12-23 2011-04-20 中兴通讯股份有限公司 Method and device for switching master device to backup device based on access gateway
CN102541697A (en) * 2010-12-31 2012-07-04 中国航空工业集团公司第六三一研究所 Switching method for processing fault of dual-redundancy computer
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN102905059A (en) * 2012-09-27 2013-01-30 曙光信息产业(北京)有限公司 Continuous radio and television broadcast system
CN104244063A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Conversion method and device of multiple playing devices

Also Published As

Publication number Publication date
CN107105337A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
US11743534B2 (en) Systems and methods for networked music playback
JP6577082B2 (en) Satellite volume control
CN107105337B (en) Wireless multimedia playing method and device
US8683007B2 (en) Seamless transfer of media streams
EP3166343A1 (en) Audio playing method and apparatus for multiple playing devices
JP5342072B2 (en) Object transmission method between devices having multiple radio interfaces
JP2015520558A (en) Method and apparatus for direct routing between nodes of network
CN103888818A (en) Method, equipment and system for playing television programs
CN104539596A (en) Method, device and system for streaming media transmission
WO2016165584A1 (en) Communication method and device between terminal
CN104867513A (en) Play control method and equipment
JP6248188B2 (en) Transition between operating modes of networked playback devices
US11805174B2 (en) Transition between network connections
CN111049709A (en) Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
US20140023091A1 (en) Redundant, low-latency digital audio transmission
Gabrielli et al. Advancements and performance analysis on the wireless music studio (WeMUST) framework
CN117793648A (en) Audio multicast method, device, system, computer equipment and storage medium
US20150264599A1 (en) Non-intrusive method of sending the transmission configuration information from the transmitter to the receiver

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