CN107105337A - Radio multimedium playing method and device - Google Patents
Radio multimedium playing method and device Download PDFInfo
- Publication number
- CN107105337A CN107105337A CN201710109626.XA CN201710109626A CN107105337A CN 107105337 A CN107105337 A CN 107105337A CN 201710109626 A CN201710109626 A CN 201710109626A CN 107105337 A CN107105337 A CN 107105337A
- Authority
- CN
- China
- Prior art keywords
- main player
- player
- sent
- multimedia
- multicast group
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/61—Network physical structure; Signal processing
- H04N21/6106—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
- H04N21/6131—Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via a mobile phone network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control 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/64—Addressing
- H04N21/6405—Multicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8106—Monomedia components thereof involving special audio data, e.g. different tracks for different languages
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to a kind of radio multimedium playing method and device, this method comprises determining whether to receive the online signal of main player transmission;When not receiving, then download according to the multimedia broadcast address stored and play multimedia;Present multimedia is sent to multicast group to other player plays present multimedias so that in multicast group;Main player, which is sent, to terminal has changed information;The information for the new standby main player that receiving terminal is sent;Online signal is sent to new standby main player.The above method is by setting the real-time Communication for Power for main player and main player, so that whether understand main player in real time for main player online, when main player is not online, standby main player replaces main player to download multimedia messages and send into multicast group, and in order to prevent new main player from breaking down or powering off, after former main player failure or power-off, terminal reconfigures new standby main player, goes down so that multimedia can continue broadcasting.
Description
Technical field
The present invention relates to multimedia field, more particularly to a kind of radio multimedium playing method and device.
Background technology
In acoustic source system, many room (Multiroom) audios are played as a new application scenarios by people
Known, the play mode of many room audio systems is to all from audio amplifier push audio by a main sound box by tone frequency channel wire
Data, but when main sound box breaks down or powered off in playing process, then the whole packet of multiple audio amplifiers compositions is also
It stopped broadcasting.
The content of the invention
Based on this, it is necessary to after above-mentioned main sound box failure or power-off, the problem of whole sound equipment group stops playing there is provided
A kind of radio multimedium playing method and device.
A kind of radio multimedium player method, methods described includes:
Judge whether to receive the online signal that main player is sent;
When not receiving the online signal that the main player is sent, then according to the multimedia broadcasting stored
Address, continues to download and play the multimedia;
The present multimedia is sent to multicast group, so that current described in other player plays in the multicast group
Multimedia;
Main player, which is sent, to terminal has changed information;
The information for the new standby main player that receiving terminal is sent;
Online signal is sent to the new standby main player.
In one of the embodiments, the multimedia broadcast address that the basis has been stored, continues to download and broadcast
The multimedia step is put, including:
Calculate the play position of present multimedia;
The present multimedia is downloaded according to the broadcast address of the present multimedia stored;
The present multimedia is played according to the play position of the present multimedia.
In one of the embodiments, it is described to include the step of the present multimedia is sent to multicast group:
The present multimedia is divided into multiple packets;
Send the packet to multicast group by several times time, and when to multicast group send be not first packet when, then
The packet and current packet to be sent that last time is sent are sent into the multicast group.
A kind of radio multimedium player method, methods described includes:
The main player for receiving current standby main player transmission has changed information;
The current standby main player is configured to new main player;
New standby main broadcaster is configured to from the online player of being chosen out of player in multicast group according to logic of propositions
Put device;
Present multimedia broadcast address is sent to the new standby main player;
The information of the new standby main player is sent to new main player.
In one of the embodiments, it is described that one is chosen out of player from online in multicast group according to logic of propositions
The step of player is configured to new standby main player, including:
Calculate the numerical value of the online MAC Address from player;
The numerical value maximum of MAC Address is configured to new standby main player from player.
A kind of radio multimedium playing device, described device includes:
First receiving module, for judging whether to receive the online signal that main player is sent;
Continued broadcasting module, for when not receiving the online signal that the main player is sent, then according to the institute stored
Multimedia broadcast address is stated, continues to download and play the multimedia;
First sending module, for the present multimedia to be sent to multicast group, so that other in the multicast group
Present multimedia described in player plays;
Second sending module, information has been changed for sending main player to terminal;
Second receiving module, the information of the new standby main player configured sent for receiving terminal;
3rd sending module, for sending online signal to the new standby main player.
In one of the embodiments, the continued broadcasting module includes:
First computing unit, the play position for calculating present multimedia;
Download unit, the present multimedia is downloaded for the broadcast address according to the present multimedia stored;
Broadcast unit, for playing the present multimedia according to the play position of the present multimedia.
In one of the embodiments, first sending module includes:
Packet formation unit, for the present multimedia to be divided into multiple packets;
Transmitting element, for multicast group send be not first packet when, then by last time send data
Bag and current packet to be sent are sent into the multicast group.
A kind of radio multimedium playing device, described device includes:
3rd receiving module, information has been changed for receiving the main player that current standby main player is sent;
First configuration module, for the current standby main player to be configured into new main player;
Second configuration module, for choosing a player out of player from online in multicast group according to logic of propositions
It is configured to new standby main player;
4th sending module, for present multimedia broadcast address to be sent to the new standby main player;
5th sending module, for the information of the new standby main player to be sent to new main player.
In one of the embodiments, second configuration module includes:
Second computing unit, the numerical value for calculating the online MAC Address from player;
Dispensing unit, for the numerical value maximum of MAC Address to be configured into new standby main player from player.
Above-mentioned radio multimedium playing method and device, by setting standby main player, is led in real time with main player
Letter so that whether standby main player can to understand main player in real time online, when main player is not online, i.e., power-off or therefore
During barrier, standby main player replaces main player to continue to download multimedia messages and send into multicast group, in order in multicast group
Other players continue to play multimedia, and in order to prevent new main player from also breaking down or powering off, put in former main broadcaster
After device failure or power-off, terminal reconfigures new standby main player, goes down so that multimedia can continue broadcasting.
Brief description of the drawings
Fig. 1 is the applied environment figure of wireless multimedia broadcasting system in an embodiment;
Fig. 2 be an embodiment in radio multimedium player method flow chart;
Fig. 3 is the flow chart of the step S204 shown in Fig. 2;
Fig. 4 is the flow chart of the step S206 shown in Fig. 2;
Fig. 5 be another embodiment in radio multimedium player method flow chart;
Fig. 6 is the timing diagram of radio multimedium player method in an embodiment;
Fig. 7 be embodiment illustrated in fig. 6 in player playing flow figure;
Fig. 8 is the schematic diagram of radio multimedium playing device in an embodiment;
Fig. 9 is the schematic diagram of radio multimedium playing device in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and
It is not used in the restriction present invention.
Describe in detail embodiments in accordance with the present invention before, it should be noted that, described embodiment essentially consist in
The combination of the related step of radio multimedium playing method and device and system component.Therefore, said system component and method step
Suddenly showed in position by ordinary symbol in the accompanying drawings, and merely illustrate the reality with understanding the present invention
The relevant details of example is applied, in order to avoid because obviously those are thin for having benefited from those of ordinary skill in the art of the present invention
Section has obscured the disclosure.
Herein, such as left and right, upper and lower, front and rear, and first and second etc relational terms are used merely to area
Divide an entity or action and another entity or action, and not necessarily require or imply any between this entity or action
Actual this relation or order.Term " comprising ", "comprising" or any other variant are intended to including for nonexcludability, by
This causes the process, method, article or the equipment that include a series of key elements not only to include these key elements, but also comprising not bright
Other key elements really listed, or be this process, method, article or the intrinsic key element of equipment.
Referring to Fig. 1, Fig. 1 is the applied environment figure of wireless multimedia broadcasting system in an embodiment, radio multimedium is broadcast
Place system includes several players, wireless router and terminal, wherein several players can be separately positioned on different rooms
Between, to realize in family, company or supermarket at multiple positions, such as the multimedia synchronous broadcasting in multiple rooms.Wherein terminal
Can be mobile phone, computer or tablet personal computer etc., user can be configured by the several players of terminal-pair, make several broadcastings
Device is divided into main player, standby main player and several from player.Wherein, main player can by wireless router from
Download multimedia in mobile Internet, generally audio server, and be sent to and standby main player and several from player institute
In the multicast of formation, in order to standby main player and several from the player plays multimedia.Main player, standby main player,
It is several to be communicated from player and terminal by 2.4G communications with wireless router.
As shown in Fig. 2 in one of the embodiments there is provided a kind of radio multimedium player method, the present embodiment is with this
Standby main player in the wireless multimedia broadcasting system that method is applied in above-mentioned Fig. 1 is illustrated.This is for main player
Upper operation has wireless multimedia playing program, by the radio multimedium playing program come real-time wireless multimedia player method.
This method specifically includes following steps:
S202:Judge whether to receive the online signal that main player is sent.
Main player, standby main player are completed in terminal configuration and after player, and user can then begin to use this
Wireless multimedia broadcasting system.Multimedia can refer to that (wireless music, based on wireless Internet, is with numeral to wireless music
Change means, using computer as one kind of the digital music of body making, refer to and are provided by mobile communications network and mobile Internet
Digital music service), wireless video etc..For example user can set the play instruction for the song that plays a song by terminal, this
When main player by wireless router receive the radio play instruction after, the song is downloaded by wireless router and carried out
Play, and the song is sent in multicast group, in order to standby main player and from the player plays song, it can be seen that such as
Fruit main player is not online, that is, when powering off or breaking down, and whole wireless multimedia broadcasting system can not work.Therefore it is
The occurrence of preventing this kind, configures to main player so that main player can be periodically to standby main player
Online signal is sent, in order to which standby main player detects whether main player is online in real time, so that in main player power-off or event
During barrier, standby main player can replace main player to continue to download and play the song.Wherein, main player can be with standby main broadcaster
Put device and carry out TCP heartbeat communications, its cycle can be the speed played according to radio multimedium to set, it is ensured that user hear or
See the sensation for not having interim card during radio multimedium, the cycle could be arranged to 1 second, 2 seconds, 1.5 seconds etc..
S204:When not receiving the online signal of main player transmission, then the multimedia broadcasting that basis has been stored
Location, continues to download and play multimedia.
When standby main player does not receive the online signal of main player transmission, i.e., main player is powered off or failure, is
Prevent the situation that radio multimedium stops playing from occurring, standby main player can replace former main player, according to what is stored
Multimedia broadcast address, continues to download and play multimedia, to realize multimedia lasting broadcasting.
Wherein, multimedia broadcast address can be that multimedia broadcast address is sent to by terminal when terminal is configured
Standby main player, for example, when user sets the play instruction for the song that plays a song by terminal, the play instruction includes the song
The play instruction can be sent to main player and standby main player by bent broadcast address, terminal simultaneously, in order in main broadcaster
When putting device power-off or failure, standby main player directly can download corresponding multimedia by the broadcast address.
S206:Present multimedia is sent to multicast group, so that other player plays present multimedias in multicast group.
When main player power-off or failure, standby main player is operated instead of main player, its working method and original
It is the same to carry out main player, and the multimedia that will be downloaded is sent into multicast group, in order to other players in multicast group
Play present multimedia.
S208:Main player, which is sent, to terminal has changed information.
In order that multimedia can continue broadcasting and go down, terminal needs the shape of each player in moment understanding multicast group
State, was changed after standby main player judges main player failure, it is necessary to put current anchor on record to terminal and put device, in order to end
The new standby main player of end configuration, so that when new main player power-off or failure, new standby main player can be realized many
The continued broadcasting of media.
S210:The information for the new standby main player that receiving terminal is sent.
Terminal can configure new standby main player when knowing that main player has been changed, and by this for main player
Information is sent to new main player, in order to which main player can send online signal to new standby main player, to prevent
When new main player power-off or failure, multimedia stops.
S212:Online signal is sent to new standby main player.
Above-mentioned radio multimedium player method, by setting standby main player, real-time Communication for Power is carried out with main player, so that
Whether online standby main player is allowd to understand main player in real time, when main player is not online, i.e. power-off or during failure is standby
Main player replaces main player to continue to download multimedia messages and send into multicast group, in order to which other in multicast group are broadcast
Device is put to continue to play multimedia, and in order to prevent new main player from also breaking down or powering off, in former main player failure or
After power-off, terminal reconfigures new standby main player, goes down so that multimedia can continue broadcasting.
As shown in figure 3, in one embodiment, the step S204 shown in Fig. 2, i.e., according to the multimedia broadcasting stored
Address, continues to download and plays multimedia step, can include:
S302:Calculate the play position of present multimedia.
Specifically, when standby main player judges main player failure, standby main player replace former main player into
For new main player, the new main player can calculate the play position of present multimedia, multimedia in order to realize
Continued broadcasting, and no longer need to replay the multimedia.Wherein, standby main player by the bit rate of multimedia transmission and can be worked as
Preceding play time calculates the multimedia size played, so that it is determined that the play position of present multimedia.
S304:Present multimedia is downloaded according to the broadcast address of the present multimedia stored.
, can be by current many matchmakers for having stored when new main player calculates the multimedia size played
The broadcast address of body finds the multimedia, and in HTTP Get (HyperText Transfer Protocol, Hyper text transfer
Agreement is a kind of procotol being most widely used on internet, and wherein Http defines the not Tongfang with server interaction
Method, one of which method be Get, according to HTTP specifications, GET can be used for acquisition of information) request header Range fields
(the field identification server supports power-off to resume function) takes the multimedia size played, such audio server warp
Cross and parse the message, you can to send multimedia to new main player from the play position, to realize that multimedia breakpoint continues
Broadcast.
S306:Present multimedia is played according to the play position of present multimedia.
In above-described embodiment, by the multimedia play position of calculating and the multimedia broadcast address stored,
It can simply continue to play the multimedia at multimedia breakpoint, multimedia break-point continuous playing be realized, so that user is not
The multimedia played with repeating to listen to or watch, optimizes Consumer's Experience.
As shown in figure 4, in one embodiment, the step S206 shown in Fig. 2 sends present multimedia to multicast group
The step of can include:
S402:Present multimedia is divided into multiple packets.
Specifically, when new main player downloads a lot of media, it is necessary to which the multimedia is converted into multicast group to know
Other packet, so that other players in multicast group, such as can download the data for main player and from player
Bao Hou, is parsed to the packet, to obtain multimedia, so that main player, standby main player and can be with from player
Play same multimedia simultaneously.As shown in table 1 below, the packet can include header field, protocol version, sound channel
Number, audio length of a film, sample rate, audio coding ID, group volume, place group, voice data length, current play time point, main broadcaster
Put device IP address and reserved field.
The packet structure of table 1.
Header field | Shared byte-sized |
Protocol version | 1Byte |
Channel number | 1Byte |
Audio length of a film | 2Bytes |
Test serial number | 4Bytes |
Sample rate | 4Bytes |
Bit rate | 4Bytes |
Audio coding ID | 4Bytes |
Group volume | 1Bytes |
Place group | 1Bytes |
Voice data length | 4Bytes |
Current play time point | 4Bytes |
Main player IP address | 4Bytes |
Reserved field | 4Bytes |
Wherein, protocol version can be configured as needed.Channel number is 1 or 2,1 expression monophonic, and 2 represent double
Sound channel.When audio length of a film refers to multimedia for audio file, the length of a film of the audio, unit can be number of seconds, i.e., what one head was sung broadcasts
The time is put, such as 280 seconds.Sample rate is the multimedia sample rate, its can for 44100Hz, 48000Hz or
96000Hz.Audio coding ID is the coding ID of the multimedia audio, unique new, such as mp3 audio ID of mark audio format
It could be arranged to 0x15001.Group volume is the broadcast sound volume of current multicast group.Place group is currently playing group of packet number.Sound
Frequency data length is the voice data length entrained by current data.The non-main player current play time of current play time point
Point, unit is millisecond.Main player IP address connects the IP address that wireless router distributes to main player by main player.
Reserved field is the following field that will be used of reservation.
When in addition for multiple players, multiple multicast groups can be set, a pair of multicast address of each packet number correspondence and
Port numbers, such as when being divided into 10 multicast groups, corresponding main player IP address and port numbers can be:First packet { "
225.1.1.1 ", 5001 }, second packet { " 225.2.2.2 ", 5002 }, the 3rd packet { " 225.3.3.3 ", 5003 }, the 4th point
Group { " 225.4.4.4 ", 5004 }, the 5th packet { " 225.5.5.5 ", 5005 }, the 6th packet { " 225.6.6.6 ", 5006 }, the
Seven packets { " 225.7.7.7 ", 5007 }, the 8th packet { " 225.8.8.8 ", 5008 }, the 9th packet " 225.9.9.9 ",
5009 }, the tenth packet { " 225.10.10.10 ", 5010 }.
S404:By several times time to multicast group send packet, and when to multicast group send be not first packet when, then
The packet and current packet to be sent that last time is sent are sent into multicast group.
Specifically, for the insecure packet loss characteristic of udp protocol, a kind of mode of optimization is proposed, i.e., for main player
The packet sent to multicast group, when being first packet that main player is sent, then only sends the packet, when being main
During second packet that player is sent, then by first packet before first sending, second packet is retransmited;It is right
In the 3rd packet, second packet before first sending retransmits the 3rd packet;The like, for nth
According to bag, (n-1)th packet before first sending retransmits nth data bag, thus can reduce packet loss with maximum probability.
In the present embodiment, packet is sent to multicast group by several times, and is not first data when what be sent to multicast group
Bao Shi, the then packet sent the last time and current packet to be sent are sent into multicast group, can so be substantially reduced
Packet loss so that standby main player and from player can with main player synchronously play out.
As shown in figure 5, in one of the embodiments there is provided a kind of radio multimedium player method, the present embodiment is with this
Terminal in the wireless multimedia broadcasting system that method is applied in above-mentioned Fig. 1 is illustrated.Operation has wireless in the terminal
Multimedia playing program, by the radio multimedium playing program come real-time wireless multimedia player method.This method is specifically wrapped
Include following steps:
S502:The main player for receiving current standby main player transmission has changed information.
Specifically, the configuration of player needs to be carried out by terminal, when the main broadcaster that terminal receives standby main player transmission is put
Device has been changed after information, and terminal will automatically configure new standby main player and new main player, so that multimedia continues
Go down under broadcasting.
S504:Current standby main player is configured to new main player.
Usually, current standby main player is configured to new main player by terminal automatically, thus new main player after
It is continuous to download multimedia and play.
S506:According to logic of propositions from online in multicast group chosen out of player a player be configured to it is new standby
Main player.
In addition, in order to prevent during main player failure that this is new, multimedia failure, terminal will configure new standby main broadcaster
Device is put, for example, terminal can select one as new standby main player from online from player at random, can also basis
Logic of propositions is configured to new standby main player from an online player of being chosen out of player.The logic of propositions can be had
User preset, for example, can be the priority of user preset.
S508:Present multimedia broadcast address is sent to new standby main player.
, can be by multimedia address in order to realize multimedia continued broadcasting in new main player power-off or failure
New standby main player is sent to, so that in new main player power-off or failure, new standby main player can be according to this
Broadcast address continues to download and play the multimedia.
S510:The information of new standby main player is sent to new main player.
In addition, in addition it is also necessary to which the information of new standby main player is sent into new main player, for example by new standby main broadcaster
The IP address for putting device is sent to new main player, in order to which new main player can send online to new standby main player
Signal.
In above-described embodiment, the configuration of new main player and new standby main player is realized by terminal so that
When former main player power-off or failure, new main player and new standby main player can be configured, so that multimedia can
Gone down with unlimited plays.
In one of the embodiments, the step S506 shown in Fig. 5, i.e., according to logic of propositions from online in multicast group
A step of player is configured to new standby main player is chosen out of player, can be included:Calculate online from player
MAC Address (Media Access Control addresses, media access control address) numerical value.By the numerical value of MAC Address most
Big is configured to new standby main player from player.The principle that i.e. terminal selects standby main player is carried out according to following rule
's:All online MAC Address from player in current multicast group are become into whole property numerical value of growing up, are then ranked up, finally
Select numerical value it is maximum from player be new standby main player.
In above-described embodiment, the selection of new standby main player can be realized automatically by MAC Address, so that terminal
New standby main player can be automatically configured so that multimedia can continue broadcasting and go down.
Incorporated by reference to Fig. 6 and Fig. 7, Fig. 6 is the timing diagram of radio multimedium player method in an embodiment, and Fig. 7 is shown in Fig. 6
The playing flow figure of player in embodiment.
Wherein wireless multimedia broadcasting system include terminal, main player, wireless router, standby main player and it is several from
Player, is only illustrated so that two from player as an example in the present embodiment, i.e., first from player and second from player.
When player starts, can initialize UPnP protocol (UPnP be various smart machines, wireless device and
PC etc. realizes the structure of the peer-to-peer network connection (P2P) spread all over the world.UPnP is a kind of distributed, open network
Framework.UPnP is independent medium.In any operating system, UPnP device can be used using any programming language.
UPnP protocol is that UPnP English is Universal Plug and Play, is abbreviated as UPnP.UPnP specifications are based on
ICP/IP protocol and the new Internet protocol for communicating and working out to each other for equipment), the agreement is used for terminal and broadcasting
The communication of device, can start a thread in addition, for detecting whether many room marks support many rooms, i.e., whether support multicast
Group, does not support then circular wait to support many rooms;Support many rooms then to add corresponding multicast group, wait receiving multicast data,
Thread is in blocked state.
First, terminal can be set in multicast group, such as Fig. 6, comprising 4 players, then selected from 4 players
Corresponding player is configured to main player, standby main player and from player, when configure complete when, main player is can be to
Standby main player sends online signal, i.e. heartbeat signal.
Secondly, multimedia broadcast address can be sent to main player by terminal after the multimedia that selection needs broadcasting
With standby main player.
3rd, after the startup of each player, for example, Fig. 7 can be referred to, after main player starts, first set and send data
Socket forbids home loop, and (Uniform Resoure Locator, unified resource is fixed by the broadcasting URL that terminal to be received is sent
Position device) when, main player can download file by Http agreements (HTTP), detect audio file formats, open
Corresponding decoder, circulation reads each frame voice data, is then judged whether to support many rooms according to the configuration file of itself
Play, i.e., whether support multicast group, if supporting multicast group, continue to determine whether to be connected with wireless router, if the master
Player is connected with wireless router, then is cycled through multimedia in multicast group by wireless router.If the master
Player does not support multicast group, or is not connected to wireless router, then the main player is directly local according to broadcast address
Play the multimedia.
Standby main player and after player startup, also can be it is first determined whether support multicast group, if it does not, then etc.
The configuration of terminal is treated, if had been added in corresponding multicast group, the data in multicast group is received, can set connect herein
Between time receiving, such as when not receiving the data of multicast group also in preset time, then this is for main player and can be with from player
The decoder of its own is closed, the preset time could be arranged to 5 seconds, 4 seconds, 10 seconds etc..If receiving group in preset time
Multicast data, then can analyze the multicast packet by decoder, then judge whether the multicast packet mutually fits with current decoder
Match somebody with somebody, if current decoder can be decoded to current multicast data, current multicast data are decoded by current decoder
And play, if current decoder can not be decoded to current multicast data, the multicast packet is set, and opens corresponding
After decoder, then current multicast data are decoded by corresponding decoder and played.
4th, in the playing process of wireless multimedia broadcasting system, main player may be powered off or failure, now standby
It is not online that main player can detect main player, and online information is not sent to terminal by the main player, and terminal is being received
To after the main player not online information, new main player and standby main player is configured according to default logic, will be newly
The information of standby main player, it is sent in former standby main player, i.e., new main player comprising IP address, as shown in fig. 6, eventually
End configuration first is new standby main player from player, and new main player then sends online letter to the new standby main player
Number, to prevent after the new standby main player power-off or failure, multimedia stops playing.
In above-described embodiment, by setting standby main player, real-time Communication for Power is carried out with main player, so that standby main broadcaster
Whether putting device, can to understand main player in real time online, when main player is not online, i.e. power-off or during failure, standby main player generation
Continue to download multimedia messages and send into multicast group for main player, in order to which other players in multicast group continue to broadcast
Multimedia is put, and in order to prevent new main player from also breaking down or powering off, after former main player failure or power-off, terminal
New standby main player is reconfigured, is gone down so that multimedia can continue broadcasting.
Referring to Fig. 8, Fig. 8 is the schematic diagram of radio multimedium playing device in an embodiment, the device can include:
First receiving module 101, for judging whether to receive the online signal that main player is sent.
Continued broadcasting module 102, for when not receiving the online signal of main player transmission, then according to many matchmakers stored
The broadcast address of body, continues to download and play multimedia.
First sending module 103, for present multimedia to be sent to multicast group, so that other players in multicast group
Play present multimedia.
Second sending module 104, information has been changed for sending main player to terminal.
Second receiving module 105, the information of the new standby main player configured sent for receiving terminal.
3rd sending module 106, for sending online signal to new standby main player.
In one of the embodiments, continued broadcasting module 102 includes:
First computing unit, the play position for calculating present multimedia.
Download unit, present multimedia is downloaded for the broadcast address according to the present multimedia stored.
Broadcast unit, for playing present multimedia according to the play position of present multimedia.
In one of the embodiments, the first sending module 103 includes:
Packet formation unit, for present multimedia to be divided into multiple packets.
Transmitting element, for multicast group send be not first packet when, then by last time send data
Bag and current packet to be sent are sent into multicast group.
Referring to Fig. 9, Fig. 9 is the schematic diagram of radio multimedium playing device in another embodiment, the device can include:
3rd receiving module 201, information has been changed for receiving the main player that current standby main player is sent.
First configuration module 202, for current standby main player to be configured into new main player.
Second configuration module 203, for being broadcast according to logic of propositions from the online selection one out of player in multicast group
Put device and be configured to new standby main player.
4th sending module 204, for present multimedia broadcast address to be sent to new standby main player.
5th sending module 205, for the information of new standby main player to be sent to new main player.
In one of the embodiments, the second configuration module 203 includes:
Second computing unit, the numerical value for calculating the online MAC Address from player.
Dispensing unit, for the numerical value maximum of MAC Address to be configured into new standby main player from player.
Restriction for above-mentioned radio multimedium control device can be referring specifically to above for wirelessly to media control
The restriction of method, will not be repeated here.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of radio multimedium player method, it is characterised in that methods described includes:
Judge whether to receive the online signal that main player is sent;
When not receiving the online signal that the main player is sent, then according to the multimedia broadcasting ground stored
Location, continues to download and play the multimedia;
The present multimedia is sent to multicast group, so that current many matchmakers described in other player plays in the multicast group
Body;
Main player, which is sent, to terminal has changed information;
The information for the new standby main player that receiving terminal is sent;
Online signal is sent to the new standby main player.
2. according to the method described in claim 1, it is characterised in that the multimedia broadcasting ground that the basis has been stored
Location, continues to download and plays the multimedia step, including:
Calculate the play position of present multimedia;
The present multimedia is downloaded according to the broadcast address of the present multimedia stored;
The present multimedia is played according to the play position of the present multimedia.
3. according to the method described in claim 1, it is characterised in that described to send the present multimedia to the step of multicast group
Suddenly include:
The present multimedia is divided into multiple packets;
Send the packet to multicast group by several times time, and when to multicast group send be not first packet when, then will be upper
The packet and current packet to be sent once sent is sent into the multicast group.
4. a kind of radio multimedium player method, it is characterised in that methods described includes:
The main player for receiving current standby main player transmission has changed information;
The current standby main player is configured to new main player;
New standby main player is configured to from the online player of being chosen out of player in multicast group according to logic of propositions;
Present multimedia broadcast address is sent to the new standby main player;
The information of the new standby main player is sent to new main player.
5. method according to claim 4, it is characterised in that it is described according to logic of propositions from multicast group it is online from
A step of player is configured to new standby main player is chosen in player, including:
Calculate the numerical value of the online MAC Address from player;
The numerical value maximum of MAC Address is configured to new standby main player from player.
6. a kind of radio multimedium playing device, it is characterised in that described device includes:
First receiving module, for judging whether to receive the online signal that main player is sent;
Continued broadcasting module is for when not receiving the online signal that the main player is sent, then described more according to what is stored
The broadcast address of media, continues to download and play the multimedia;
First sending module, for the present multimedia to be sent to multicast group, so that other broadcastings in the multicast group
Device plays the present multimedia;
Second sending module, information has been changed for sending main player to terminal;
Second receiving module, the information of the new standby main player configured sent for receiving terminal;
3rd sending module, for sending online signal to the new standby main player.
7. device according to claim 6, it is characterised in that the continued broadcasting module includes:
First computing unit, the play position for calculating present multimedia;
Download unit, the present multimedia is downloaded for the broadcast address according to the present multimedia stored;
Broadcast unit, for playing the present multimedia according to the play position of the present multimedia.
8. device according to claim 6, it is characterised in that first sending module includes:
Packet formation unit, for the present multimedia to be divided into multiple packets;
Transmitting element, for multicast group send be not first packet when, then by last time send packet and
Current packet to be sent is sent into the multicast group.
9. a kind of radio multimedium playing device, it is characterised in that described device includes:
3rd receiving module, information has been changed for receiving the main player that current standby main player is sent;
First configuration module, for the current standby main player to be configured into new main player;
Second configuration module, for being configured according to logic of propositions from the online player of being chosen out of player in multicast group
For new standby main player;
4th sending module, for present multimedia broadcast address to be sent to the new standby main player;
5th sending module, for the information of the new standby main player to be sent to new main player.
10. device according to claim 9, it is characterised in that second configuration module includes:
Second computing unit, the numerical value for calculating the online MAC Address from player;
Dispensing unit, for the numerical value maximum of MAC Address to be configured into new standby main player from player.
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 true CN107105337A (en) | 2017-08-29 |
CN107105337B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948703A (en) * | 2017-11-22 | 2018-04-20 | 青岛海信电器股份有限公司 | Playing progress rate synchronous method and device |
CN110557454A (en) * | 2019-09-10 | 2019-12-10 | 广州河东科技有限公司 | Method for realizing synchronous playing of multiple machines based on cloud network music player |
CN112260982A (en) * | 2019-07-22 | 2021-01-22 | 华为技术有限公司 | Audio processing method and device |
CN115665002A (en) * | 2022-10-24 | 2023-01-31 | 国网山东省电力公司 | System and method for detecting computer network abnormity |
Citations (8)
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 |
-
2017
- 2017-02-27 CN CN201710109626.XA patent/CN107105337B/en active Active
Patent Citations (8)
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 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948703A (en) * | 2017-11-22 | 2018-04-20 | 青岛海信电器股份有限公司 | Playing progress rate synchronous method and device |
CN107948703B (en) * | 2017-11-22 | 2020-02-18 | 青岛海信电器股份有限公司 | Method and device for synchronizing playing progress |
CN112260982A (en) * | 2019-07-22 | 2021-01-22 | 华为技术有限公司 | Audio processing method and device |
CN112260982B (en) * | 2019-07-22 | 2022-03-11 | 华为技术有限公司 | Audio processing method and device |
CN110557454A (en) * | 2019-09-10 | 2019-12-10 | 广州河东科技有限公司 | Method for realizing synchronous playing of multiple machines based on cloud network music player |
CN110557454B (en) * | 2019-09-10 | 2022-07-05 | 广州河东科技有限公司 | Method for realizing synchronous playing of multiple machines based on cloud network music player |
CN115665002A (en) * | 2022-10-24 | 2023-01-31 | 国网山东省电力公司 | System and method for detecting computer network abnormity |
Also Published As
Publication number | Publication date |
---|---|
CN107105337B (en) | 2020-07-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190173590A1 (en) | Sonic signaling communication for user devices | |
CN107105337A (en) | Radio multimedium playing method and device | |
CN1708023B (en) | Method for managing an audio network | |
CN102843589B (en) | Intelligent advertisement cut system and intelligent advertisement inserting method | |
CN106105150A (en) | For sending the equipment of broadcast singal, for receiving the equipment of broadcast singal, the method sending broadcast singal and the method receiving broadcast singal | |
JP4248494B2 (en) | Announcement of information services by broadcast or multicast | |
US7631088B2 (en) | System and method for minimizing perceived dead air time in internet streaming media delivery | |
CN105828134B (en) | Control method for playing back and device in a kind of audio-video frequency playing system | |
CN104581647A (en) | Network access method and device of intelligent equipment | |
CN109450851A (en) | Equipment connection method, device, electronic equipment and computer-readable medium | |
CN104918069A (en) | Play scene reduction method, system, playing terminal and control terminal | |
CN104834623A (en) | Audio playing method and audio playing device | |
KR20100139137A (en) | Method and apparatus for outputting media content | |
CN106603503A (en) | Live streaming data processing method and device | |
CN102065340A (en) | System and method for implementing multimedia synchronous interaction | |
CN102984026A (en) | Test method for exchange unit multicast listener protocol snooping discovering function | |
CN106257928A (en) | Audio file acquisition methods, update notification sending method, equipment and system | |
CN109787900B (en) | Transmission method, device, equipment and machine readable medium | |
CN104468543B (en) | The access method and device of a kind of lan device | |
WO2016197759A1 (en) | Information presentation method, terminal device, server and system | |
CN106303754A (en) | A kind of audio data play method and device | |
CN105025353B (en) | A kind of control method for playing back and user terminal | |
CN104426914A (en) | Audio or image wireless sharing method | |
CN106664432A (en) | Multimedia information play methods and systems, acquisition equipment, standardized server | |
CN106161044B (en) | A kind of information transferring 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 |