Nothing Special   »   [go: up one dir, main page]

CN104066015B - The flow media playing method and device of mobile terminal - Google Patents

The flow media playing method and device of mobile terminal Download PDF

Info

Publication number
CN104066015B
CN104066015B CN201410318672.7A CN201410318672A CN104066015B CN 104066015 B CN104066015 B CN 104066015B CN 201410318672 A CN201410318672 A CN 201410318672A CN 104066015 B CN104066015 B CN 104066015B
Authority
CN
China
Prior art keywords
terminal
streaming media
files
mobile terminal
stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410318672.7A
Other languages
Chinese (zh)
Other versions
CN104066015A (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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201410318672.7A priority Critical patent/CN104066015B/en
Publication of CN104066015A publication Critical patent/CN104066015A/en
Application granted granted Critical
Publication of CN104066015B publication Critical patent/CN104066015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

This application discloses the flow media playing method and device of a kind of mobile terminal, wherein, the method includes:When as from terminal, the Streaming Media fragment of this secondary download corresponding state pause judgments positional information in files in stream media is obtained to master terminal, Streaming Media fragment is downloaded from streaming media server according to state pause judgments positional information, wherein, it is no overlapping between the different Streaming Media fragments of master terminal distribution, and all Streaming Media fragments of distribution constitute files in stream media;In playing stream media file, if the Streaming Media fragment currently to be played is not in this mobile terminal, the end message of the mobile terminal where then obtaining the Streaming Media fragment currently to be played to master terminal, plays out to the acquisition for mobile terminal indicated by the end message to the Streaming Media fragment currently to be played.The application avoids the congestion of data network, improves network speed of download, while also saving the data downloading flow of each mobile terminal.

Description

The flow media playing method and device of mobile terminal
Technical field
The application is related to mobile communication technology field, the flow media playing method and dress of more particularly to a kind of mobile terminal Put.
Background technology
With continuing to develop for mobile communication technology, new mobile terminal emerges in an endless stream, mobile phone, PDA (Personal Digital Assistant, personal digital assistant) and the mobile terminal such as panel computer due to mobility and being easy to carry Advantage and it is increasingly widespread, have become the essential communication tool that people carry with.
In order to meet the demand that people become more diverse, existing mobile terminal is more and more intelligent, and function is also increasingly It is abundant, people not only can using mobile terminal dialing/receiving telephone, transmit/receive short message etc., can also surf the Net, soft using office The various files of part treatment and viewing Streaming Media etc..
At present, if many people want to watch same files in stream media, such as video file or audio file by mobile terminal, Then everyone needs to use respective mobile terminal from 3G (G mobile communication) or 4G (forth generation mobile communication skills Art) etc. download the files in stream media to locally playing out in streaming media server in data network, so, same Streaming Media File needs to be downloaded repeatedly, not only results in data network congestion, reduces network speed of download, wastes each mobile terminal Data downloading flow.
The content of the invention
This application provides the flow media playing method and device of a kind of mobile terminal, it is intended to which solution exists in the prior art At least one problem above.
The technical scheme of the application is as follows:
On the one hand, there is provided a kind of flow media playing method of mobile terminal, it is intended to play same files in stream media at least Two mobile terminals include:Master terminal and from terminal, the method includes:
When as from terminal, the Streaming Media fragment for obtaining this secondary download to master terminal is corresponding in files in stream media State pause judgments positional information, Streaming Media fragment is downloaded according to state pause judgments positional information from streaming media server, wherein, main end It is no overlapping between the different Streaming Media fragments of end distribution, and all Streaming Media fragments of distribution constitute files in stream media;
In playing stream media file, if the Streaming Media fragment currently to be played is not in this mobile terminal, to main end The end message of the mobile terminal where the Streaming Media fragment currently to be played of end acquisition, to the movement indicated by the end message Terminal gets the Streaming Media fragment currently to be played and plays out.
On the other hand, a kind of streaming medium playing device of mobile terminal is additionally provided, is intended to play same files in stream media At least two mobile terminals include:Master terminal and from terminal, the device includes:Data obtaining module, download module, stream matchmaker Body acquisition module and playing module, wherein:
Data obtaining module, for when this mobile terminal is used as from terminal, the stream of this secondary download being obtained to master terminal Media fragment corresponding state pause judgments positional information in files in stream media, wherein, the different Streaming Media fragments of master terminal distribution Between without overlapping, and distribution all Streaming Media fragments composition files in stream media;It is additionally operable to when this mobile terminal is used as from end During end, in playing module playing stream media file, if the Streaming Media fragment currently to be played is not in this mobile terminal, to The end message of the mobile terminal where the master terminal Streaming Media fragment currently to be played of acquisition;
Download module, for the state pause judgments positional information got according to data obtaining module, from streaming media server Middle download Streaming Media fragment;
Streaming Media acquisition module, for the acquisition for mobile terminal indicated by the end message that is got to data obtaining module The Streaming Media fragment currently to be played;
Playing module, for the Streaming Media fragment that playing stream media acquisition module gets.
In the above technical scheme of the application, when multiple mobile terminals will play same files in stream media, this multiple is moved The files in stream media is divided into multiple Streaming Media fragments by the master terminal in dynamic terminal distributes to multiple mobile terminals is carried out down respectively Carry, when the files in stream media is played, if any mobile terminal finds do not have the Streaming Media currently to be played on this mobile terminal Fragment, the then end message of the mobile terminal where obtaining the Streaming Media fragment currently to be played to master terminal, to the terminal Acquisition for mobile terminal where information is played out to the Streaming Media fragment currently to be played, is realized multiple mobile terminals and is closed Download and play same files in stream media.Each stream matchmaker in same files in stream media is downloaded due to multiple mobile terminals joint Body fragment, i.e. for this multiple mobile terminal, the files in stream media need to only be downloaded once, and it is multiple without downloading, it is to avoid The congestion of data network, improves network speed of download, while also saving the data downloading flow of each mobile terminal.Move Dynamic terminal quantity is more, and the effect of broadcasting is also better.
Brief description of the drawings
Fig. 1 is operational flowchart of the master terminal in set-up procedure is configured in the embodiment of the present application;
Fig. 2 is the operational flowchart from terminal in set-up procedure is configured in the embodiment of the present application;
Fig. 3 is the operation that master terminal needs the one side for performing in multimedia file downloading process in the embodiment of the present application Flow chart;
Fig. 4 is the another aspect performed the need for master terminal is in the multimedia file downloading process in the embodiment of the present application Operational flowchart;
Fig. 5 is the operational flowchart from terminal in multimedia file downloading process in the embodiment of the present application;
Fig. 6 is operational flowchart of the master terminal in multimedia file playing process in the embodiment of the present application;
Fig. 7 is the operational flowchart from terminal in multimedia file playing process in the embodiment of the present application;
Fig. 8 is a kind of structural representation of the streaming medium playing device of mobile terminal in the embodiment of the present application;
Fig. 9 is another structural representation of the streaming medium playing device of mobile terminal in the embodiment of the present application.
Specific embodiment
In order to solve data network congestion present in prior art, network speed of download is relatively low, wastes each movement eventually At least one of the data downloading flow at end problem, provides a kind of Streaming Media of mobile terminal in the application following examples Player method, and it is a kind of can apply the method device.Files in stream media in following examples can be specifically video File, audio file etc., the application is not limited this.
In following examples, when at least two mobile terminals, (assuming that quantity is N, 2) N is not less than will play same Streaming Media During file (describing for convenience, referred to as files in stream media 1), this N number of mobile terminal may be constructed LAN, be entered by LAN Communication between row mobile terminal, wherein it is possible to pass through the modes such as WIFI (Wireless Fidelity), bluetooth or WLAN (WLAN) Constitute LAN.In addition, in this N number of mobile terminal, one of them is set into master terminal, other mobile terminals are disposed as From terminal.In actual implementation process, the relatively good mobile terminal of performance can be set to master terminal.
Specifically, the flow media playing method of the mobile terminal in the embodiment of the present application is comprised the following steps:
1st, set-up procedure is configured
As shown in figure 1, for master terminal, needing to perform following steps in this stage:
Step S102, according to the configuration information of user, master terminal is set to by this mobile terminal;
Step S104, according to the selection of user, judges whether when Streaming Media fragment is distributed using impartial (Δ i.e. below It is equal) mode, if so, then enter step S106, otherwise, into step 108;
Refer to by the way of equalization, start bit of the different Streaming Media fragments that master terminal is distributed in files in stream media 1 Size delta=the y-x of confidence breath [x, y] is equal.For example, starting of the different Streaming Media fragments of distribution in files in stream media 1 The size delta of positional information [x, y] is 10 minutes, i.e. the duration of each Streaming Media fragment of distribution is 10 minutes.
Generally, Δ is smaller, plays more smooth during follow-up this N number of mobile terminal playing files in stream media 1, but, It is not the smaller the better Δ.Because Δ is smaller, the data communication in follow-up LAN between mobile terminal is more frequent, and mobile whole Data communication between end needs to consume CPU (central processing unit) resource, accordingly, it would be desirable to rationally set the size of Δ value.It is overall For, the determination of Δ value is relevant with the combination of one or more in following condition:Performance is worst in N number of mobile terminal The performance of mobile terminal, the network speed of the worst mobile terminal of network speed in N number of mobile terminal participates in the number of the mobile terminal of download Amount, user is to the tolerance etc. that waits.Wherein, when participate in download mobile terminal it is a fairly large number of in the case of, can will fit When increase Δ value, the data network of each mobile terminal so can be not only made full use of, but also mobile terminal can be reduced Between frequency data communication.
Step S106, obtains Δ value;
Specifically, the mode that master terminal obtains Δ value can have various, for example:
(1) input according to user is worth to the actual value of Δ;Can by the value of user input one as Δ actual value;
(2) obtained from the selection result at least two options that system is carried according to user;Set in systems in advance The selection of multiple Δ values, user can select an actual value as this Δ for using from these values;
(3) default value carried using system;Set the default value of Δ value in systems in advance, in step s 106 directly Use the value;
(4) obtained using the mode for testing the speed;
Specifically, master terminal sends order of testing the speed to each from terminal, the stream for testing the speed is carried in the order of testing the speed The network linking address of media file (for convenience, referred to as files in stream media 2) and the mode that tests the speed etc., each is from terminal After receiving the order of testing the speed, files in stream media 2 is downloaded from data network using the same mode that tests the speed, by this device downloads stream Time feedbacking needed for media file 2 is to master terminal;If master terminal participate in download, master terminal be also required to it is same test the speed mode from Download files in stream media 2 in data network, the time needed for minute book device downloads files in stream media 2, so that, master terminal can be with Obtain it is all participate in download mobile terminals using it is same test the speed mode when download same flow media file needed for time Y1, Y2,...,Yi,...,Yn.Afterwards, master terminal just can be calculated Δ value according to below equation (1):
Δ=A*T/max { Y1,Y2,...,Yi,...,Yn} (1)
Wherein, the buffer time needed for A represents default playing stream media file, in actual implementation process, the value of A Scope can be [60 seconds, 120 seconds];T represents the playing duration of files in stream media 2;YiParticipation is downloaded in representing N number of mobile terminal Mobile terminal i download files in stream media 2 needed for actual duration;N represents the mobile terminal for participating in downloading in N number of mobile terminal Sum, 1 < n≤N;Max { } is represented and is taken maximum operator.
Step S108, obtains each end message from terminal, for example, IP address, device name etc., set up communication service To be subsequently connected acquisition data with from terminal foundation, the control service of this equipment is opened to be subsequently concurrent from terminal distribution Send Streaming Media fragment and the corresponding end message of different Streaming Media fragments is sent to from terminal;
Step S110, the fileinfo of files in stream media 1 is obtained to the streaming media server in data network, wherein, text Part information can be playing duration or size;
For example, when fileinfo is playing duration, the playing duration of the files in stream media 1 for getting in step s 302 It is 120 minutes;When fileinfo is size, the size of the files in stream media 1 for getting in step s 302 is 1000M.
In actual implementation process, above-mentioned steps S104, step S108 and step S110 do not have specific sequencing.
As shown in Fig. 2, it is necessary to perform following steps for from terminal:
Step S202, according to the configuration information of user, this mobile terminal is set to from terminal;
Step S204, sets up communication service to be subsequently connected acquisition data from terminal and master terminal foundation with other.
2nd, files in stream media downloading process
For master terminal, the operation of following two aspects can be simultaneously performed, i.e. the operation of following two aspects does not have There is specific sequencing:
The operation of one side is comprised the following steps, as shown in Figure 3:
Step S302, judge whether to receive from terminal send for obtaining this from the Streaming Media of the secondary download of terminal sheet The request of state pause judgments positional information [x, y] of the fragment in files in stream media 1, if so, then performing step S304, otherwise, returns Return step S302;
Wherein, when fileinfo is playing duration, state pause judgments positional information [x, y] is used to indicate the stream matchmaker to be downloaded Body fragment is Streaming Media fragment of the time point from x to y in files in stream media 1;When fileinfo is size, state pause judgments position It is Streaming Media fragment of the size from x to y in files in stream media 1 that information [x, y] is used to indicate the Streaming Media fragment to be downloaded.
Step S304, judges whether files in stream media 1 has been assigned, if so, then exiting this flow, otherwise, performs Step S306;
Or, when judging that files in stream media 1 has been assigned, can be returned for indicating stream matchmaker from terminal to this The response that body file 1 has been assigned, so that this can know that files in stream media 1 has been assigned from terminal, and no longer Send and obtain request.
Step S306, according to the fileinfo of the files in stream media 1 for getting in step s 110, from files in stream media 1 A part is selected in current unassigned part, Streaming Media fragment of the part as this from the secondary download of terminal sheet point will be chosen Dispensing should be from terminal;Step S308 is performed afterwards;
For example, when fileinfo is playing duration, the playing duration of the files in stream media 1 for getting in step s 110 120 minutes, master terminal has been allocated for first 60 minutes of files in stream media 1, current unassigned part be [61 minutes, 120 minutes], then in step S306, master terminal [61 points of selection from current unassigned part [61 minutes, 120 minutes] Clock, 70 minutes] part distribute to this from terminal from the Streaming Media fragment of the secondary download of terminal sheet as this, and will [61 minutes, 70 minutes] this is sent to from terminal.
If step S104 have selected by the way of equalization, when master terminal performs step S306 every time, all according to identical Δ value selected from current unassigned part, otherwise, enter from current unassigned part according to random Δ value Row selection.
Step S308, the state pause judgments position from the Streaming Media fragment of terminal in files in stream media 1 is distributed to by this Confidence breath returns to this from terminal, records this and distributes to this from the Streaming Media fragment of terminal with this from the end message of terminal Corresponding relation between state pause judgments positional information, afterwards return to step S302.
The operation of another aspect is comprised the following steps, as shown in Figure 4:
Step S402, judges whether this mobile terminal participates in downloading, if so, then performing step S404, otherwise, exits this stream Journey;
Step S404, judges whether files in stream media 1 has been assigned, if so, then exiting this flow, otherwise, performs Step S406;
Step S406, according to the fileinfo of the files in stream media 1 for getting in step s 110, from files in stream media 1 A part is selected in current unassigned part, part as the Streaming Media fragment of the secondary download of this mobile terminal sheet will be chosen This mobile terminal is distributed to, starting knot of the Streaming Media fragment of this mobile terminal in files in stream media 1 is distributed to according to this Beam position information;Step S408 is performed afterwards;
For example, when fileinfo is playing duration, the playing duration of the files in stream media 1 for getting in step s 110 120 minutes, master terminal has been allocated for first 80 minutes of files in stream media 1, current unassigned part be [81 minutes, 120 minutes], then in step S406, master terminal [81 points of selection from current unassigned part [81 minutes, 120 minutes] Clock, 90 minutes] part distribute to this mobile terminal as the Streaming Media fragment of the secondary download of this mobile terminal sheet, from data network The Streaming Media fragment between the 81st minute to the 90th minute in files in stream media 1 is downloaded in streaming media server in network.
Step S408, downloads the Streaming Media fragment from streaming media server, the end message of minute book mobile terminal with This distributes to the correspondence pass between state pause judgments positional information of the Streaming Media fragment of this mobile terminal in files in stream media 1 System;
Step S410, judges whether the Streaming Media fragment has been downloaded and finishes, if so, then return to step S404, otherwise, returns Return step S410.
Files in stream media 1 can be divided into multiple Streaming Media fragments by the operation in terms of by performing above-mentioned two, master terminal The different mobile terminal for participating in downloading is distributed to be downloaded.
As shown in figure 5, it is necessary to the step of performing includes for from terminal:
Step S502, sends right in files in stream media 1 for obtaining the Streaming Media fragment of this secondary download to master terminal The request of the state pause judgments positional information answered;
Step S504, receive master terminal return this distribute to this from the Streaming Media fragment of terminal in files in stream media State pause judgments positional information in 1;
Step S506, according to the state pause judgments positional information for receiving, downloads the Streaming Media piece from streaming media server Section.
In actual implementation process, mobile terminal can be using RTP (Real-time Transport Protocol, reality When host-host protocol) or RTCP (Realtime Transport Control Protocol) RTCP Real-time Transport Control Protocol) from stream matchmaker Streaming Media fragment is downloaded in body server.
Specifically, in stream medium datas such as transmission over networks audio/videos (Audio/Video, A/V), under mainly having at present Carry and stream transmission two schemes.A/V files are general all larger, so the memory capacity for needing is also larger;Simultaneously because network The limitation of bandwidth, usually needs to spend several minutes even a few hours, so this processing method postpones using this scheme is downloaded Also it is very big.During using stream transmission scheme, the time-base media such as sound, image or animation (Time based Media) is by Streaming Media Server carries out continuous, real-time transmission to user terminal, and user need not all download when whole file and finish, and only need by The start-up study of several seconds or ten several seconds can be watched.
Realize that stream transmission mainly there are two methods:Real Time Streaming (Real time streaming) and sequential flow Formula transmits (progressive streaming).Because sequential control design method does not support random access, therefore, be not suitable for this Shen Please be used in embodiment, therefore, Real Time Streaming mode can be used in the embodiment of the present application.Real Time Streaming refers to protect Card media signal bandwidth is matched with network connection, media is watched in real time.Real-time streams and HTTP (HyperText Transfer Protocol, HTTP) stream transmission difference, it needs special streaming media server with transmission Agreement.Real Time Streaming is always transmitted in real time, is particularly suitable for live event, also supports random access, user can F.F. or after Move back to watch the content of above or below.
Real Time Streaming needs particular server, such as:QuickTime、Streaming Server、RealServer、 And Windows Media Server.These servers allow to send media carries out the other control of more stages, thus system Set, manage more more complicated than standard HTTP server.Real Time Streaming also needs to ad hoc network agreement, such as:RTSP (Realtime Streaming Protocol, real time streaming transport protocol) or MMS (Microsoft Media Server, Microsoft Media server).These agreements comparative maturity, also has many Streaming Media frameworks to support random access, such as quick Mono- relatively good, powerful framework of time.
3rd, files in stream media playing process
Files in stream media playing process and above-mentioned files in stream media downloading process do not have specific sequencing, typically In the case of, as long as after thering is a mobile terminal to finish first Streaming Media fragment download that master terminal distributes to itself, respectively Playing stream media file 1 by individual mobile terminal, and all mobile terminals for participating in downloading need not be waited until and distributed to all certainly The Streaming Media fragment of body is downloaded after finishing and just played.
As figure for master terminal, it is necessary to perform following steps:
Step S602, in playing stream media file 1, if the Streaming Media fragment currently to be played is not in this mobile terminal In, then the start position information according to the Streaming Media fragment currently to be played finds corresponding end message, to finding End message indicated by acquisition for mobile terminal played out to the Streaming Media fragment currently to be played;
For example, when fileinfo is playing duration, most starting to be commenced play out from the 0th minute, master terminal finds this movement The Streaming Media fragment not started with the 0th minute in terminal, then it is the state pause judgments positional information [0 of starting to search with the 0th minute Minute, 10 minutes] corresponding to end message, in the acquisition for mobile terminal indicated by the end message to files in stream media 1 [0 minute, 10 minutes] corresponding Streaming Media fragment 1 is played out, and when the Streaming Media fragment 1 is finished, to play the 11st point Zhong Shi, has found Streaming Media fragment not since the 11st minute in this mobile terminal again, then perform similar lookup step again Suddenly, played out with [11 minutes, 20 minutes] corresponding Streaming Media fragment 2 in obtaining files in stream media 1;By that analogy, until Files in stream media 1 is finished.
Step S604, receive from terminal send for obtaining the Streaming Media fragment currently to be played where movement After the request of the end message of terminal, the start position information according to the Streaming Media fragment currently to be played finds correspondence End message, the end message that will be found returns to this from terminal.
In actual implementation process, above-mentioned steps S602 and step S604 do not have specific sequencing.
As shown in fig. 7, it is necessary to perform following steps for from terminal:
Step S702, in playing stream media file 1, if the Streaming Media fragment currently to be played is not in this mobile terminal In, then the end message of the mobile terminal where being sent for obtaining the Streaming Media fragment currently to be played to master terminal please Ask;
Step S704, receives master terminal by performing the end message that step S604 is returned;
Step S706, to the acquisition for mobile terminal indicated by the end message for receiving to the Streaming Media piece currently to be played Section is played out.
For example, when fileinfo is playing duration, most starting to be commenced play out from the 0th minute, this movement is found from terminal The Streaming Media fragment not started with the 0th minute in terminal, then send for obtaining with the 0th minute rising for starting to master terminal End message corresponding to beginning end position information, the Streaming Media fragment 1 that master terminal finds [0 minute, 10 minutes] is corresponding Mobile terminal is terminal 4, then the end message of terminal 4 is returned into this from terminal, should get Streaming Media to terminal 4 from terminal Fragment 1 is played out, and when the Streaming Media fragment 1 is finished, and to play the 11st minute, finds do not have in this mobile terminal again Streaming Media fragment since the 11st minute, then perform similar obtaining step again, to obtain [11 points in files in stream media 1 Clock, 20 minutes] Streaming Media fragment 2 play out;By that analogy, until files in stream media 1 is finished.
Wherein, when being played out in step S602 and step S706, it is possible to use existing media player is broadcast Put, for example quick time, real player etc., the application is not limited this.
In addition, if the poor-performing of mobile terminal, in order to not influence performance, then master terminal or can played from terminal After a complete Streaming Media fragment, the Streaming Media fragment played is deleted in time;Or, if the performance of mobile terminal compared with Height, then master terminal or can also be after files in stream media 1 is finished from terminal, all Streaming Media fragments that will have been played Combination obtains files in stream media 1, preserves files in stream media 1, for example, be saved in mobile memory card, so that user looks back in the future Viewing.But, for the Streaming Media fragment being temporarily stored in internal memory, release removing must be carried out after finishing, it is new to preserve Streaming Media fragment.
In the method for the above embodiments of the present application, when multiple mobile terminals will play same files in stream media, this is multiple The files in stream media is divided into multiple Streaming Media fragments by the master terminal in mobile terminal distributes to multiple mobile terminals is carried out respectively Download, when the files in stream media is played, if any mobile terminal finds do not have the stream matchmaker currently to be played on this mobile terminal Body fragment, the then end message of the mobile terminal where obtaining the Streaming Media fragment currently to be played to master terminal, to the end Acquisition for mobile terminal where client information is played out to the Streaming Media fragment currently to be played, realizes multiple mobile terminals Cooperation is downloaded and plays same files in stream media.Each stream in same files in stream media is downloaded due to multiple mobile terminals joint Media fragment, i.e. for this multiple mobile terminal, the files in stream media need to only be downloaded once, and it is multiple without downloading, keep away The congestion of data network is exempted from, has improve network speed of download, while also saving the data downloading flow of each mobile terminal. Mobile terminal quantity is more, and the effect of broadcasting is also better.
For the method in above-described embodiment, a kind of streaming media playing of mobile terminal is additionally provided in the embodiment of the present application Device.The device can be arranged at and be intended to play same files in stream media (for convenience, referred to as files in stream media 1) at least Master terminal in two mobile terminals or from terminal.
As shown in figure 8, the streaming medium playing device of the mobile terminal of the embodiment of the present application is included with lower module:Information is obtained Modulus block 801, download module 802, Streaming Media acquisition module 803 and playing module 804, wherein:
Data obtaining module 801, for when this mobile terminal is used as from terminal, this secondary download being obtained to master terminal Streaming Media fragment corresponding state pause judgments positional information in files in stream media 1, wherein, the different Streaming Media pieces of master terminal distribution It is no overlapping between section, and all Streaming Media fragments of distribution constitute files in stream media;Be additionally operable to when this mobile terminal as from During terminal, in 804 playing stream media file 1 of playing module, if the Streaming Media fragment currently to be played is not in this mobile terminal In, then the end message of the mobile terminal where obtaining the Streaming Media fragment currently to be played to master terminal;
Download module 802, for the state pause judgments positional information got according to data obtaining module 801, from Streaming Media Streaming Media fragment is downloaded in server;
Streaming Media acquisition module 803, for the mobile end indicated by the end message that is got to data obtaining module 801 End obtains the Streaming Media fragment currently to be played;
Playing module 804, for the Streaming Media fragment that playing stream media acquisition module 803 gets.
Wherein, this at least two mobile terminal constitutes LAN, and the communication between terminal is moved by LAN, its In, the mode for constituting LAN includes:WIFI, bluetooth, WLAN etc..
In addition, can also include in the device:Receiver module 805, distribute module 806, sending module 807 and preserving module 808, wherein:
Receiver module 805, for when this mobile terminal is used as master terminal, receive from terminal send for obtaining this The request of state pause judgments positional information of the Streaming Media fragment to be downloaded in files in stream media 1, and, reception is sent from terminal The mobile terminal where for obtaining the Streaming Media fragment currently to be played end message request;
Distribute module 806, for receiving the stream for obtaining this secondary download sent from terminal in receiver module 805 After the request of state pause judgments positional information of the media fragment in files in stream media 1, the file letter according to files in stream media 1 Breath, a part is selected from the current unassigned part of files in stream media 1, will choose part as this from terminal sheet it is secondary under The Streaming Media fragment of load distributes to this from terminal;Wherein, fileinfo is one below:Playing duration, size;
Sending module 807, for this to distribute to the Streaming Media fragment from terminal in files in stream media by distribute module 806 In state pause judgments positional information return to this from terminal;Be additionally operable to receiver module receive from terminal send for obtaining After the request of the end message of the mobile terminal where the Streaming Media fragment currently to be played, according to the stream currently to be played The start position information of media fragment finds corresponding end message in preserving module, and the end message that will be found is returned To this from terminal;
Preserving module 808, for recording from the end message of terminal and distribute module 806, this distributes to this from terminal Corresponding relation between state pause judgments positional information of the Streaming Media fragment in files in stream media 1;
Streaming Media acquisition module 803, is additionally operable to, when this mobile terminal is used as master terminal, be played in playing module 804 and flowed During media file 1, if the Streaming Media fragment currently to be played is not in this mobile terminal, according to the stream matchmaker currently to be played The start position information of body fragment, finds corresponding end message in preserving module 808, to the end message institute for finding The acquisition for mobile terminal of instruction is to the Streaming Media fragment currently to be played.
Wherein, distribute module, is additionally operable to when this mobile terminal is used as master terminal, if this mobile terminal participates in downloading, According to the fileinfo of files in stream media, a part is selected from the current unassigned part of files in stream media, portion will be chosen It is allocated as distributing to this mobile terminal for the Streaming Media fragment of the secondary download of this mobile terminal sheet;
Download module, is additionally operable to according to distribute module Streaming Media fragment that this distributes to this mobile terminal in Streaming Media text State pause judgments positional information in part, downloads the Streaming Media fragment from streaming media server;
Preserving module, is additionally operable to when this mobile terminal is used as master terminal, if this mobile terminal participates in downloading, minute book The end message of mobile terminal and distribute module this distribute to the Streaming Media fragment of this mobile terminal in files in stream media Corresponding relation between state pause judgments positional information.
Wherein, state pause judgments positional information of the Streaming Media fragment in files in stream media is represented with [x, y];
When fileinfo is playing duration, state pause judgments positional information [x, y] is used to indicate the Streaming Media piece to be downloaded Section is Streaming Media fragment of the time point from x to y in files in stream media;
When fileinfo is size, state pause judgments positional information [x, y] is used for the Streaming Media fragment to be downloaded of instruction is Streaming Media fragment of the size from x to y in files in stream media.
Wherein, as Δ=y-x, and distribution different Streaming Media fragments the corresponding Δ of state pause judgments positional information [x, y] When equal, the mode for obtaining the value of Δ includes:
Input according to user is worth to;
Or, being obtained from the selection result at least two options that system is carried according to user;
Or, the default value carried using system;
Or, being obtained according to below equation:Δ=A*T/max { Y1,Y2,...,Yi,...,Yn, wherein, A represents default Buffer time needed for playing stream media file, T represents the playing duration for the files in stream media for testing the speed, YiRepresent at least two The mobile terminal i for participating in downloading in individual mobile terminal downloads this for the actual duration needed for the files in stream media that tests the speed, and n is represented The sum of the mobile terminal of download is participated in, max { } is represented and taken maximum operator.
Wherein, can also include in the device:
Processing module, for when this mobile terminal is as master terminal or from terminal, deleting what playing module had been played Streaming Media fragment, or, after playing module plays files in stream media, all Streaming Media fragment combinations that will have been played Files in stream media is obtained, files in stream media is preserved.
To sum up, the application above example can reach following technique effect:
When multiple mobile terminals will play same files in stream media, master terminal in this multiple mobile terminal is by stream matchmaker Body file is divided into multiple Streaming Media fragments to be distributed to multiple mobile terminals and is downloaded respectively, when the files in stream media is played, If any mobile terminal finds do not have the Streaming Media fragment currently to be played on this mobile terminal, it is current to obtain this to master terminal The end message of the mobile terminal where the Streaming Media fragment to be played, to the acquisition for mobile terminal where the end message to should The Streaming Media fragment currently to be played is played out, and is realized multiple mobile terminal cooperations and is downloaded and play same Streaming Media text Part.Each Streaming Media fragment in same files in stream media is downloaded due to multiple mobile terminals joint, i.e. mobile for this multiple For terminal, the files in stream media need to only be downloaded once, and multiple without downloading, it is to avoid the congestion of data network, be improve Network speed of download, while also saving the data downloading flow of each mobile terminal.Mobile terminal quantity is more, the effect of broadcasting Fruit is also better.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (14)

1. a kind of flow media playing method of mobile terminal, is intended to be wrapped at least two mobile terminals for play same files in stream media Include:Master terminal and from terminal, it is characterised in that methods described includes:
When as from terminal, the Streaming Media fragment for obtaining this secondary download to master terminal is corresponding in the files in stream media State pause judgments positional information, the Streaming Media fragment is downloaded according to the state pause judgments positional information from streaming media server, Wherein, it is no overlapping between the different Streaming Media fragments of the master terminal distribution, and all Streaming Media fragments of distribution constitute institute State files in stream media;
When the files in stream media is played, if the Streaming Media fragment currently to be played is not in this mobile terminal, to described The end message of the mobile terminal where the master terminal acquisition Streaming Media fragment currently to be played, it is signified to the end message The acquisition for mobile terminal for showing is played out to the Streaming Media fragment currently to be played.
2. method according to claim 1, it is characterised in that at least two mobile terminal constitutes LAN, passes through The LAN moves the communication between terminal, wherein, the mode for constituting the LAN includes:Wireless Fidelity WIFI, Bluetooth, WLAN WLAN.
3. method according to claim 1, it is characterised in that also include:
During as master terminal, the Streaming Media fragment for obtaining this secondary download sent from terminal is being received in the stream After the request of the state pause judgments positional information in media file, according to the fileinfo of the files in stream media, from the stream Media file selects a part in current unassigned part, will choose stream matchmaker of the part as this from the secondary download of terminal sheet Body fragment distributes to this from terminal;Wherein, the fileinfo is one below:Playing duration, size;
This is distributed into state pause judgments positional information of the Streaming Media fragment from terminal in the files in stream media to return To this from terminal, record this and distribute to this from the Streaming Media fragment of terminal in the Streaming Media with this from the end message of terminal The corresponding relation between state pause judgments positional information in file;
Receive from terminal send for obtaining the Streaming Media fragment currently to be played where mobile terminal terminal letter After the request of breath, the start position information according to the Streaming Media fragment currently to be played finds corresponding end message, The end message that will be found returns to this from terminal;
When the files in stream media is played, if the Streaming Media fragment currently to be played is not in this mobile terminal, basis should The start position information of the Streaming Media fragment currently to be played finds corresponding end message, to the end message institute for finding The acquisition for mobile terminal of instruction is played out to the Streaming Media fragment currently to be played.
4. method according to claim 3, it is characterised in that also include:
During as master terminal, if this mobile terminal participates in downloading, according to the fileinfo of the files in stream media, from described Files in stream media selects a part in current unassigned part, will choose part as the secondary download of this mobile terminal sheet Streaming Media fragment distributes to this mobile terminal;
State pause judgments positional information of the Streaming Media fragment of this mobile terminal in the files in stream media is distributed to according to this The Streaming Media fragment is downloaded from the streaming media server, the end message of minute book mobile terminal distributes to this shifting with this Corresponding relation between state pause judgments positional information of the Streaming Media fragment of dynamic terminal in the files in stream media.
5. the method according to claim 3 or 4, it is characterised in that Streaming Media fragment rising in the files in stream media Beginning end position information is represented with [x, y];
When the fileinfo is playing duration, the state pause judgments positional information [x, y] is used to indicate the stream matchmaker to be downloaded Body fragment is Streaming Media fragment of the time point from x to y in the files in stream media;
When the fileinfo is size, the state pause judgments positional information [x, y] is used to indicate the Streaming Media piece to be downloaded Section is Streaming Media fragment of the size from x to y in the files in stream media.
6. method according to claim 5, it is characterised in that as Δ=y-x, and master terminal distribution different Streaming Media pieces When the corresponding Δ of state pause judgments positional information [x, y] of section is equal, the mode that master terminal obtains the value of Δ includes:
Input according to user is worth to;
Or, being obtained from the selection result at least two options that system is carried according to user;
Or, the default value carried using system;
Or, being obtained according to below equation:Δ=A*T/max { Y1,Y2,...,Yi,...,Yn, wherein, A represents default and plays stream Buffer time needed for media file, T represents the playing duration for the files in stream media for testing the speed, YiRepresent described at least two The mobile terminal i for participating in downloading in mobile terminal downloads this for the actual duration needed for the files in stream media that tests the speed, and n represents ginseng With download mobile terminal sum, max { } represent take maximum operator.
7. method according to claim 1, it is characterised in that also include:
As for master terminal or from terminal when, the Streaming Media fragment played of deletion, or, played in the files in stream media After finishing, all Streaming Media fragment combinations that will have been played obtain the files in stream media, preserve the files in stream media.
8. a kind of streaming medium playing device of mobile terminal, is intended to be wrapped at least two mobile terminals for play same files in stream media Include:Master terminal and from terminal, it is characterised in that described device includes:Data obtaining module, download module, Streaming Media obtain mould Block and playing module, wherein:
Described information acquisition module, for when this mobile terminal is used as from terminal, the stream of this secondary download being obtained to master terminal Media fragment corresponding state pause judgments positional information in the files in stream media, wherein, the not cocurrent flow of the master terminal distribution It is no overlapping between media fragment, and all Streaming Media fragments of distribution constitute the files in stream media;It is additionally operable to when this movement Terminal as from terminal when, the playing module play the files in stream media when, if the Streaming Media fragment currently to be played Not in this mobile terminal, then to the mobile terminal where the master terminal acquisition Streaming Media fragment currently to be played End message;
The download module, for the state pause judgments positional information got according to described information acquisition module, from Streaming Media clothes The Streaming Media fragment is downloaded in business device;
The Streaming Media acquisition module, for the mobile terminal indicated by the end message that is got to described information acquisition module Obtain the Streaming Media fragment currently to be played;
The playing module, for playing the Streaming Media fragment that the Streaming Media acquisition module gets.
9. device according to claim 8, it is characterised in that at least two mobile terminal constitutes LAN, passes through The LAN moves the communication between terminal, wherein, the mode for constituting the LAN includes:Wireless Fidelity WIFI, Bluetooth, WLAN WLAN.
10. device according to claim 8, it is characterised in that also include:Receiver module, distribute module, sending module and Preserving module, wherein:
The receiver module, for when this mobile terminal is used as master terminal, receive from terminal send it is secondary for obtaining The request of state pause judgments positional information of the Streaming Media fragment of download in the files in stream media, and, receive from terminal hair The request of the end message of the mobile terminal where for obtaining the Streaming Media fragment currently to be played for coming;
The distribute module, for receiving the stream matchmaker for obtaining this secondary download sent from terminal in the receiver module After the request of state pause judgments positional information of the body fragment in the files in stream media, according to the file of the files in stream media Information, a part is selected from the current unassigned part of the files in stream media, will choose part as this from terminal sheet The Streaming Media fragment of secondary download distributes to this from terminal;Wherein, the fileinfo is one below:Playing duration, size;
The sending module, for this to distribute to the Streaming Media fragment from terminal in Streaming Media text by the distribute module State pause judgments positional information in part returns to this from terminal;It is additionally operable to receive the use sent from terminal in the receiver module After the request of the end message of the mobile terminal where obtaining the Streaming Media fragment currently to be played, currently to be broadcast according to this The start position information of the Streaming Media fragment put finds corresponding end message in the preserving module, the end that will be found Client information returns to this from terminal;
The preserving module, for recording from the end message and the distribute module of terminal, this distributes to the stream from terminal Corresponding relation between state pause judgments positional information of the media fragment in the files in stream media;
The Streaming Media acquisition module, is additionally operable to, when this mobile terminal is used as master terminal, play described in the playing module During files in stream media, if the Streaming Media fragment currently to be played is not in this mobile terminal, according to the stream currently to be played The start position information of media fragment, finds corresponding end message in the preserving module, believes to the terminal for finding Cease indicated acquisition for mobile terminal to the Streaming Media fragment currently to be played.
11. devices according to claim 10, it is characterised in that
The distribute module, is additionally operable to when this mobile terminal is used as master terminal, if this mobile terminal participates in downloading, according to institute The fileinfo of files in stream media is stated, a part is selected from the current unassigned part of the files in stream media, will chosen This mobile terminal is distributed to as the Streaming Media fragment of the secondary download of this mobile terminal sheet in part;
The download module, is additionally operable to according to the distribute module that this distributes to the Streaming Media fragment of this mobile terminal described State pause judgments positional information in files in stream media, downloads the Streaming Media fragment from the streaming media server;
The preserving module, is additionally operable to when this mobile terminal is used as master terminal, if this mobile terminal participates in downloading, minute book The end message of mobile terminal and the distribute module this distribute to the Streaming Media fragment of this mobile terminal in the Streaming Media The corresponding relation between state pause judgments positional information in file.
12. device according to claim 10 or 11, it is characterised in that Streaming Media fragment is in the files in stream media State pause judgments positional information is represented with [x, y];
When the fileinfo is playing duration, the state pause judgments positional information [x, y] is used to indicate the stream matchmaker to be downloaded Body fragment is Streaming Media fragment of the time point from x to y in the files in stream media;
When the fileinfo is size, the state pause judgments positional information [x, y] is used to indicate the Streaming Media piece to be downloaded Section is Streaming Media fragment of the size from x to y in the files in stream media.
13. devices according to claim 12, it is characterised in that as Δ=y-x, and the different Streaming Media fragments distributed When the corresponding Δ of state pause judgments positional information [x, y] is equal, the mode for obtaining the value of Δ includes:
Input according to user is worth to;
Or, being obtained from the selection result at least two options that system is carried according to user;
Or, the default value carried using system;
Or, being obtained according to below equation:Δ=A*T/max { Y1,Y2,...,Yi,...,Yn, wherein, A represents default and plays stream Buffer time needed for media file, T represents the playing duration for the files in stream media for testing the speed, YiRepresent described at least two The mobile terminal i for participating in downloading in mobile terminal downloads this for the actual duration needed for the files in stream media that tests the speed, and n represents ginseng With download mobile terminal sum, max { } represent take maximum operator.
14. devices according to claim 8, it is characterised in that also include:
Processing module, for when this mobile terminal is as master terminal or from terminal, deleting what the playing module had been played Streaming Media fragment, or, after the playing module plays the files in stream media, all Streaming Medias that will have been played Fragment combination obtains the files in stream media, preserves the files in stream media.
CN201410318672.7A 2014-07-04 2014-07-04 The flow media playing method and device of mobile terminal Active CN104066015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410318672.7A CN104066015B (en) 2014-07-04 2014-07-04 The flow media playing method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410318672.7A CN104066015B (en) 2014-07-04 2014-07-04 The flow media playing method and device of mobile terminal

Publications (2)

Publication Number Publication Date
CN104066015A CN104066015A (en) 2014-09-24
CN104066015B true CN104066015B (en) 2017-06-23

Family

ID=51553509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410318672.7A Active CN104066015B (en) 2014-07-04 2014-07-04 The flow media playing method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN104066015B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040399B (en) * 2016-02-04 2022-03-15 京东方科技集团股份有限公司 Method, device and system for downloading upgrade file
CN106028125A (en) * 2016-05-17 2016-10-12 乐视控股(北京)有限公司 Multimedia sharing method and device
CN115802097B (en) * 2023-01-18 2023-05-02 中传互动(湖北)信息技术有限公司 Low-delay live broadcast streaming media method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330613A (en) * 2007-06-18 2008-12-24 天津三星电子有限公司 Method for on-line watching television broadcast program
CN101997889A (en) * 2009-08-28 2011-03-30 中国移动通信集团公司 Method, system and device for optimizing P2P transmission in WLAN
CN101997890A (en) * 2009-08-28 2011-03-30 中国移动通信集团公司 P2P stream media downloading method, system and device
CN102404608A (en) * 2011-11-30 2012-04-04 苏州奇可思信息科技有限公司 video on demand method based on local area network point-to-point transmission
CN103873926A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Method and system for downloading and playing media file

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI381716B (en) * 2007-12-31 2013-01-01 Ind Tech Res Inst Networked transmission system and method for stream data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330613A (en) * 2007-06-18 2008-12-24 天津三星电子有限公司 Method for on-line watching television broadcast program
CN101997889A (en) * 2009-08-28 2011-03-30 中国移动通信集团公司 Method, system and device for optimizing P2P transmission in WLAN
CN101997890A (en) * 2009-08-28 2011-03-30 中国移动通信集团公司 P2P stream media downloading method, system and device
CN102404608A (en) * 2011-11-30 2012-04-04 苏州奇可思信息科技有限公司 video on demand method based on local area network point-to-point transmission
CN103873926A (en) * 2012-12-13 2014-06-18 腾讯科技(深圳)有限公司 Method and system for downloading and playing media file

Also Published As

Publication number Publication date
CN104066015A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN103384235B (en) Data are presented during multi-conference method, server and system
CN105306963B (en) The processing system for video of adaptive mobile terminal resolution ratio, device and method
US8068866B2 (en) Group communication server
CN105763832B (en) A kind of video interactive, control method and device
US20050055719A1 (en) Broadcast storage arrangement
EP3879801B1 (en) Content sending method and device, and content receiving method and device
CN103327287B (en) A kind of conference signal playing method and device, video conference terminal, mobile device
CN101453699B (en) Advertisement playing method and user terminal
WO2005101697A1 (en) System and method for monitoring simultaneous poc sessions
US7650567B2 (en) Reception apparatus and information browsing method
CN104066015B (en) The flow media playing method and device of mobile terminal
CN110891123A (en) Interactive information transmission method and device
CN103167327A (en) Method, device and system of information interaction
CN107318052A (en) Player method, television set and the storage medium of television video
CN110943977A (en) Multimedia service data transmission method, server, equipment and storage medium
CN105898356A (en) Live video streaming media recording method and system
US7945686B2 (en) Communication control apparatus and method
US8041828B2 (en) Method and system for distributed streaming service of portable devices
CN1835506B (en) A multimedia streaming service providing method and a streaming service system
CN106604085A (en) Video sharing method and video sharing device
CN101547191B (en) Method and device for controlling media content syndication
US20120203903A1 (en) Content distribution system
CN101990131B (en) Method, device and system for realizing uniform continuity of video service
CN114500474A (en) Communication method, device, communication equipment and storage medium based on SIP terminal
CN102047675A (en) Server device, communication method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant