CN104618418A - Method and device for playing multimedia file - Google Patents

Method and device for playing multimedia file Download PDF

Info

Publication number
CN104618418A
CN104618418A CN201410325615.1A CN201410325615A CN104618418A CN 104618418 A CN104618418 A CN 104618418A CN 201410325615 A CN201410325615 A CN 201410325615A CN 104618418 A CN104618418 A CN 104618418A
Authority
CN
China
Prior art keywords
multimedia file
address information
identification information
medium data
file
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
Application number
CN201410325615.1A
Other languages
Chinese (zh)
Other versions
CN104618418B (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410325615.1A priority Critical patent/CN104618418B/en
Publication of CN104618418A publication Critical patent/CN104618418A/en
Application granted granted Critical
Publication of CN104618418B publication Critical patent/CN104618418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a device for playing a multimedia file and belongs to the field of Internet. The method comprises the steps of detecting the current network state in case of failure in offline playing of the multimedia file, if the network state indicates that the network is connected, obtaining the address information of the multimedia file according to the identification information of the multimedia file, sending an online playing request which carries the address information to a server side so as to enable the server side to obtain multimedia data corresponding to the multimedia file according to the address information, receiving the multimedia data and playing the multimedia file based on the multimedia data. The device comprises a detection module, an acquisition module, a transmission module and a playing module. According to the method and the device for playing the multimedia file, the offline playing of the multimedia file is switched to online playing, and then the problem of failure in playing during offline playing of the multimedia file is solved.

Description

The method of play multimedia file and device
Technical field
The present invention relates to internet arena, particularly a kind of method of play multimedia file and device.
Background technology
Along with the fast development of the Internet, terminal not only can play multimedia file online, can also play this multimedia file by off-line.Before terminal off-line plays this multimedia file, this terminal needs from server, download this multimedia file, and stores.If subsequent user is wanted to watch this multimedia file again, then terminal can play-over the multimedia file of storage, and need not again search on the internet.But in actual applications, the multimedia file stored in terminal often causes partial document damaged for various reasons, thus causes playing unsuccessfully.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and device of play multimedia file.Described technical scheme is as follows:
On the one hand, provide a kind of method of play multimedia file, described method comprises:
When the failure of off-line play multimedia file, detect current network state;
If described network state instruction has connected connect to the Net, then according to the identification information of described multimedia file, obtain the address information of described multimedia file;
Send online playing request to server side, in described online playing request, carry described address information, make described server side according to described address information, obtain the multi-medium data that described multimedia file is corresponding;
Receive described multi-medium data, based on described multi-medium data, play described multimedia file.
On the other hand, provide a kind of device of play multimedia file, described device comprises:
Detection module, for when off-line play multimedia file is failed, detects current network state;
Acquisition module, connects to the Net if connected for described network state instruction, then according to the identification information of described multimedia file, obtains the address information of described multimedia file;
Sending module, for sending online playing request to server side, carrying described address information in described online playing request, making described server side according to described address information, obtaining the multi-medium data that described multimedia file is corresponding;
Playing module, for receiving described multi-medium data, based on described multi-medium data, plays described multimedia file.
In embodiments of the present invention, when the failure of terminal off-line play multimedia file, detect current network state, if connected to the Net this terminal current company, then this terminal according to the identification information of this multimedia file, can obtain the address information of this multimedia file.Then, according to the address information of this multimedia file, obtain multi-medium data corresponding to this multimedia file from server side, realize online this multimedia file of broadcasting.Wherein, off-line is play this multimedia file and be converted to online this multimedia file of broadcasting, thus occur when solving off-line play multimedia file playing failed problem.In addition, terminal is automatically converted to online to play this multimedia file, searches on the internet without the need to user, and what make solution play unsuccessfully is simple to operate.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the system architecture diagram of a kind of play multimedia file that the embodiment of the present invention provides;
Fig. 2 is the method flow diagram of a kind of play multimedia file that the embodiment of the present invention provides;
Fig. 3 is the method flow diagram of the another kind of play multimedia file that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of multimedia player that the embodiment of the present invention provides;
Fig. 5 is the apparatus structure schematic diagram of a kind of play multimedia file that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 is the system architecture diagram of a kind of play multimedia file that the embodiment of the present invention provides.Comprise end side and server side in the system shown in figure 1, end side can be connected by network with server side.Be provided with multimedia player in end side, this multimedia player can be that system carries, and can also be that third party provides, and this terminal can be mobile phone, panel computer, personal computer etc.Server side comprises strategic server and data server, and strategic server and data server can be different servers, can also be the difference in functionality module on same server, and preferably, strategic server and data server are different servers.Wherein, strategic server is used for some policy informations that storing multimedia is play, such as, and authorization information, address information etc.Data server is used for multi-medium data corresponding to storing multimedia.
Fig. 2 is the method flow diagram of a kind of play multimedia file that the embodiment of the present invention provides.See Fig. 2, the method comprises:
Step 201: when the failure of off-line play multimedia file, detect current network state.
Step 202: if the instruction of this network state has connected connect to the Net, then according to the identification information of this multimedia file, obtain the address information of this multimedia file.
Step 203: send online playing request to server side, carries this address information in this online playing request, makes server side according to this address information, obtains the multi-medium data that this multimedia file is corresponding.
Step 204: receive this multi-medium data, based on this multi-medium data, plays this multimedia file.
In embodiments of the present invention, when the failure of terminal off-line play multimedia file, detect current network state, if connected to the Net this terminal current company, then this terminal according to the identification information of this multimedia file, can obtain the address information of this multimedia file.Then, according to the address information of this multimedia file, obtain multi-medium data corresponding to this multimedia file from server side, realize online this multimedia file of broadcasting.Wherein, off-line is play this multimedia file and be converted to online this multimedia file of broadcasting, thus occur when solving off-line play multimedia file playing failed problem.In addition, terminal is automatically converted to online to play this multimedia file, searches on the internet without the need to user, and what make solution play unsuccessfully is simple to operate.
Alternatively, according to the identification information of this multimedia file, obtain the address information of this multimedia file, comprising:
Send address acquisition request to server side, carry the identification information of this multimedia file in this address acquisition request, make server side according to the identification information of this multimedia file, obtain the address information of this multimedia file;
The address information of this multimedia file that reception server side sends.
Alternatively, according to the identification information of this multimedia file, obtain the address information of this multimedia file, comprising:
According to the identification information of this multimedia file, obtain corresponding address information from the identification information stored with the corresponding relation between address information.
Alternatively, according to the identification information of this multimedia file, before obtaining the address information of this multimedia file, at least one item in also comprising the steps:
Determine that this network is not mobile data on flows network;
Obtain the file size of this multimedia file, determine that this file size is less than or equal to data threshold;
When determining that this network is hotspot network, detect the bandwidth of this hotspot network, according to the file size of this multimedia file and the reproduction time of this multimedia file, calculate the code check of this multimedia file, determine that the bandwidth of this hotspot network is more than or equal to the code check of this multimedia file.
Alternatively, receive this multi-medium data, based on this multi-medium data, after playing this multimedia file, also comprise:
The original multimedia data of this multimedia file stored this locality replaces with the multi-medium data of reception.
Above-mentioned all alternatives, all can form optional embodiment of the present invention according to combining arbitrarily, this is no longer going to repeat them.
Fig. 3 is the method flow diagram of a kind of play multimedia file that the embodiment of the present invention provides.In embodiments of the present invention, server side can be divided into strategic server and data server is described.See Fig. 3, the method comprises:
Step 301: when the failure of off-line play multimedia file, terminal detects current network state.
Wherein, multimedia file can comprise audio file or video file etc., and before terminal off-line plays this multimedia file, this terminal first can download this multimedia file from server side, and is stored in this locality by this multimedia file.
When this terminal off-line plays this multimedia file, this terminal can obtain original multimedia data corresponding to this multimedia file from this locality, and based on this original multimedia data, off-line plays this multimedia file.Cause again the local multimedia file stored damaged for various reasons, make original multimedia data defect, and then cause off-line to play this multimedia file failure.Such as, the third party's management software cause for the storage card, hard disk etc. of terminal, the reason of multimedia file breakage can store that the equipment of data often be inserted into or extract, installing in terminal revises this original multimedia data etc.
Wherein, Fig. 4 is a kind of multimedia player structural representation that the embodiment of the present invention provides.This multimedia player comprises plays logical wrapper layer, address information acquisition module, download component and player kernel.When off-line plays this multimedia file failure, player kernel can feed back one to broadcasting logical wrapper layer and play failed message.When playing logical wrapper layer and receiving this broadcasting failed message, this broadcasting logical wrapper layer can the current network state of sense terminals, and based on this network state, the method provided by the embodiment of the present invention solves this problem, specific as followsly states described in step.
Step 302: if the network state instruction detected has connected connect to the Net, then terminal is according to the identification information of this multimedia file, obtains the address information of this multimedia file.
Provide the address information that two kinds of modes obtain this multimedia file in embodiments of the present invention, be specially:
First kind of way, terminal sends address acquisition request to strategic server, carries the identification information of this multimedia file, make strategic server according to the identification information of this multimedia file, obtain the address information of this multimedia file in this address acquisition request.Receive the address information of this multimedia file that strategic server sends.
Particularly, terminal sends address acquisition request to strategic server, carries the identification information of this multimedia file in this address acquisition request.When this strategic server receives this address acquisition request, this strategic server is according to the identification information of this multimedia file, obtain corresponding address information from the identification information stored with corresponding relation between address information, and the address information of acquisition is sent to this terminal.
Such as, the identification information carried in the address acquisition request that terminal sends to strategic server is ID1, when this strategic server receives this address acquisition request, strategic server can according to this identification information ID1, be address 1 from identification information as shown in table 1 below with obtaining corresponding address information the corresponding relation between address information, and the address information address 1 of acquisition is sent to this terminal.
Table 1
Identification information Address information
ID1 Address 1
ID2 Address 2
ID3 Address 3
For the multimedia player structure in Fig. 4, first kind of way can also be specifically: play the identification information that logical wrapper layer obtains this multimedia file, and this identification information is sent to address information acquisition module.When address data obtaining module receives this identification information, address information acquisition module sends address acquisition request to strategic server.When strategic server is according to this identification information, when getting the address information of this multimedia file, this address information is sent to address information acquisition module by this strategic server.When address data obtaining module receives this address information, this address information sends to by address information acquisition module again plays logical wrapper layer.
Wherein, the identification information of this multimedia file can be the title, document, download address etc. of this multimedia file.Address information can be the download address, broadcast address etc. that this multimedia file is corresponding, and can comprise domain name, check information and timestamp etc. in address information.
It should be added that, the multi-medium data that the first kind of way that the embodiment of the present invention proposes steals this multimedia file corresponding for other multimedia provider is arranged.In first kind of way, terminal can only know the identification information of this multimedia file, and the address information of this multimedia file cannot be known, thus make other multimedia provider cannot know this address information, and then multi-medium data corresponding to this multimedia file cannot be stolen.Further in order to prevent multi-medium data corresponding to this multimedia file to be stolen, the step of above-mentioned acquisition address information can also be split as following method by the embodiment of the present invention, comprising:
Address information acquisition module sends domain Name acquisition request to strategic server, carries the identification information of this multimedia file in this domain Name acquisition request.When strategic server receives this domain Name acquisition request, according to this identification information, obtain corresponding domain name from the identification information stored with the corresponding relation between domain name, and the domain name of acquisition is sent to address information acquisition module.Now, address information acquisition module sends parameter acquiring request to strategic server again, carries this identification information in this parameter acquiring request.When strategic server receives this parameter acquiring request, strategic server is according to this identification information, and obtain corresponding parameter from the identification information stored with the corresponding relation between parameter, this parameter comprises check information and timestamp.The parameter of acquisition is sent to address information acquisition module by strategic server, and address information acquisition module is spliced into the address information of this multimedia file according to the domain name obtained, check information and timestamp, then, then sends to broadcasting logical wrapper layer.
Further, when subsequent terminal obtains multi-medium data corresponding to this multimedia file from data server, data server needs to verify the check information in this address information and timestamp, when being verified, just this multi-medium data is sent to this terminal, ensure that the fail safe of this multi-medium data.
Wherein, when check information is different with the building form of timestamp, the method verified check information and timestamp is different, and the embodiment of the present invention is not described in detail this.
The second way, terminal, according to the identification information of this multimedia file, obtains corresponding address information from the identification information stored with the corresponding relation between address information.
For the second way, need, when the multi-medium data that terminal downloads multimedia file is corresponding, address information corresponding for this multimedia file to be stored in terminal local, to that is to say, the corresponding relation between storaging mark information and address information.After the corresponding relation between local storaging mark information and address information, when again needing from this multimedia file of interconnected locate line, without the need to obtaining the address information of this multimedia file from strategic server, can directly obtain from this locality, and according to the address information that this locality obtains, from data server, ask the multi-medium data that this multimedia file is corresponding, improve the efficiency of play multimedia file.
For the multimedia player structure in Fig. 4, the second way can also be specifically: play the identification information that logical wrapper layer obtains this multimedia file, and this identification information is sent to address information acquisition module.When address data obtaining module receives this identification information, address information acquisition module obtains corresponding address information from the identification information stored with the corresponding relation between address information, and the address information of acquisition is sent to broadcasting logical wrapper layer.
Alternatively, terminal, according to the identification information of this multimedia file, before obtaining the address information of this multimedia file, also comprises at least one item in the step of following (1)-(3):
(1), determine that the current network connected of terminal is not mobile data on flows network.
Wherein, when the network determining that terminal is current have been connected is not mobile data on flows network, now, terminal performs follow-up step again, during to obtain multi-medium data corresponding to this multimedia file from server, the flow of terminal would not be wasted, thus extra campus network can not be produced for user.
(2), obtain the file size of this multimedia file, determine that this file size is less than or equal to data threshold.
When multimedia file is comparatively large and network speed is poor, when terminal obtains multi-medium data corresponding to this multimedia file from server, may occur that multimedia file plays the phenomenons such as card pauses, have a strong impact on the play quality of multimedia file, so, when can determine that this file size is less than or equal to data threshold, just from server, obtain multi-medium data corresponding to this multimedia file according to follow-up step, and the play quality of multimedia file can not be affected.
Further, when the file size of this multimedia file is greater than data threshold, then can show a miscue information, to point out the failure of user's off-line play multimedia file.
Wherein, data threshold can be a numerical value of setting in advance, and the size of the embodiment of the present invention to data threshold is not specifically limited.
(3), when the network determining that terminal is current have been connected is hotspot network, detect the bandwidth of this hotspot network, according to the file size of this multimedia file and the reproduction time of this multimedia file, calculate the code check of this multimedia file, determine that the bandwidth of this hotspot network is more than or equal to the code check of this multimedia file.
Particularly, when the network determining that terminal is current have been connected is hotspot network, the bandwidth of this hotspot network is detected.By the reproduction time of the file size of this multimedia file divided by this multimedia file, obtain the code check of this multimedia file.The bandwidth of this hotspot network and the code check of this multimedia file are compared, when the bandwidth of this hotspot network is more than or equal to the code check of this multimedia file, just from server, obtain multi-medium data corresponding to this multimedia file according to follow-up step, and the play quality of multimedia file can not be affected.
Wherein, the chronomere that code check is corresponding is second, so when calculating code check, can be second by the unit conversion of the reproduction time of this multimedia file.
Wherein, hotspot network is to waste the network that flow just can surf the Net, and such as, hotspot network can be wifi.
Further, when the bandwidth of this hotspot network is less than the code check of this multimedia file, the multi-medium data that this multimedia file is corresponding is obtained from server, the play quality of multimedia file can be had a strong impact on, so, now can select not obtain multi-medium data, and show a miscue information, to point out the failure of user's off-line play multimedia file.
Further, if the instruction of this network state does not connect connect to the Net, then terminal demonstration miscue information, to point out the failure of user's off-line play multimedia file.
Wherein, after terminal to get the address information of this multimedia file according to above-mentioned steps, this terminal can obtain multi-medium data corresponding to this multimedia file according to following step.
Step 303: this terminal sends online playing request to data server, carries this address information in this online playing request.
For the multimedia player structure in Fig. 4, this step 303 can be particularly: play logical wrapper layer and start download component, make this download component send online playing request to data server.
Wherein, when the failure of off-line play multimedia file, terminal obtains the address information of this multimedia file, and according to this address information, when user's unaware, off-line is play and is revised as online broadcasting, namely send online playing request directly to data server, again to obtain multi-medium data corresponding to this multimedia file from data server.
Wherein, download component is from data server during requesting multimedia data, and this download component not only can realize the function that broadcasting limit, limit is downloaded, and can also realize the function first playing rear download.
When realizing the function that broadcasting limit, limit is downloaded, download component creates a local agent in terminal local.Now, download component self can obtain multi-medium data from data server, when getting multi-medium data, this multi-medium data is stored in this local agent by download component, when player kernel plays this multimedia file, this player kernel can obtain multi-medium data from this local agent, and based on the multi-medium data obtained, plays this multimedia file.
When realizing first playing the function downloaded afterwards, download component obtains multi-medium data from data server, and the multi-medium data of acquisition is passed to player kernel, makes player kernel based on this multi-medium data, plays this multimedia file.When this multimedia file finishes, this download component downloads this multi-medium data again from data server, and is stored in this locality.
It should be added that, when download component realizes the function downloaded on broadcasting limit, limit, download component just merely downloads multi-medium data corresponding to this multimedia file from data server, and the multi-medium data downloaded is stored in local agent.When player kernel plays this multimedia file, only need obtain multi-medium data corresponding to this multimedia file from local agent, that is, network speed is taken when downloading multi-medium data, and without the need to taking network speed during play multimedia file, when the network bandwidth is more than or equal to the code check of multimedia file, download component can have enough network speeds to download multi-medium data, and then there is card when avoiding play multimedia file, ensure that the fluency of play multimedia file.
In addition, when download component realizes first playing the function downloaded afterwards, only have during play multimedia file and take network speed, and downloading multimedia file does not take network speed in playing process, when the network bandwidth is more than or equal to the code check of multimedia file, download component has enough network speeds to obtain multi-medium data from data server, and based on the multi-medium data play multimedia file obtained, ensure that the fluency of play multimedia file.
Step 304: when data server receives this online playing request, data server, according to this address information, obtains the multi-medium data that this multimedia file is corresponding.
Particularly, when data server receives this online playing request, data server is according to this address information, obtain corresponding multi-medium data from the address information stored with the corresponding relation between multi-medium data, and the multi-medium data of acquisition is defined as multi-medium data corresponding to this multimedia file.
Wherein, this multi-medium data can be stream medium data.
Such as, when data server receives this online playing request, data server is according to this address information address 1, be data 1 from address information as shown in table 2 below with obtaining corresponding multi-medium data the corresponding relation between multi-medium data, the data 1 of acquisition are defined as multi-medium data corresponding to this multimedia file.
Table 2
Address information Multi-medium data
Address 1 Data 1
Address 2 Data 2
Address 3 Data 3
Step 305: the multi-medium data of acquisition is sent to this terminal by this data server.
The multi-medium data of acquisition can be encoded by this data server, and the multi-medium data after coding is sent to download component.
Step 306: when this terminal receives this multi-medium data, this terminal, based on this multi-medium data, plays this multimedia file.
Wherein, when this terminal receives this multi-medium data, this terminal can be decoded to this multi-medium data, then, based on decoded multi-medium data, plays this multimedia file.
Step 307: the original multimedia data of this multimedia file that this locality stores by terminal replaces with the multi-medium data of reception.
Wherein, after terminal again obtains multi-medium data corresponding to this multimedia file from server, the original multimedia data of this multimedia file that this locality can store by this terminal replaces with the multi-medium data again obtained, that is to say, the multi-medium data of breakage that this locality stores is replaced with the multi-medium data again obtained, reduces error probability when off-line next time plays this multimedia file.
In embodiments of the present invention, when the failure of terminal off-line play multimedia file, detect current network state, if connected to the Net this terminal current company, then this terminal according to the identification information of this multimedia file, can obtain the address information of this multimedia file.Then, according to the address information of this multimedia file, obtain multi-medium data corresponding to this multimedia file from server side, realize online this multimedia file of broadcasting.Wherein, off-line is play this multimedia file and be converted to online this multimedia file of broadcasting, thus occur when solving off-line play multimedia file playing failed problem.In addition, terminal is automatically converted to online to play this multimedia file, searches on the internet without the need to user, and what make solution play unsuccessfully is simple to operate.
Fig. 5 is the apparatus structure schematic diagram of a kind of play multimedia file that the embodiment of the present invention provides.See Fig. 5, this device comprises: detection module 501, acquisition module 502, sending module 503 and playing module 504;
Detection module 501, for when off-line play multimedia file is failed, detects current network state;
Acquisition module 502, connects to the Net if connected for the instruction of this network state, then according to the identification information of this multimedia file, obtains the address information of this multimedia file;
Sending module 503, for sending online playing request to server side, carrying this address information in this online playing request, making server side according to this address information, obtaining the multi-medium data that this multimedia file is corresponding;
Playing module 504, for receiving this multi-medium data, based on this multi-medium data, plays this multimedia file.
Alternatively, acquisition module 502 comprises:
Transmitting element, for sending address acquisition request to server side, carrying the identification information of this multimedia file, making server side according to the identification information of this multimedia file, obtain the address information of this multimedia file in this address acquisition request;
Receiving element, for the address information of this multimedia file that reception server side sends.
Alternatively, acquisition module 502 comprises:
Acquiring unit, for the identification information according to this multimedia file, obtains corresponding address information from the identification information stored with the corresponding relation between address information.
Alternatively, this device also comprises as at least one item in lower module:
First determination module, for determining that this network is not mobile data on flows network;
Second determination module, for obtaining the file size of this multimedia file, determines that this file size is less than or equal to data threshold;
3rd determination module, for when determining that this network is hotspot network, detect the bandwidth of this hotspot network, according to the file size of this multimedia file and the reproduction time of this multimedia file, calculate the code check of this multimedia file, determine that the bandwidth of this hotspot network is more than or equal to the code check of this multimedia file.
Alternatively, this device also comprises:
Replacement module, the original multimedia data for this multimedia file stored this locality replaces with the multi-medium data of reception.
In embodiments of the present invention, when the failure of terminal off-line play multimedia file, detect current network state, if connected to the Net this terminal current company, then this terminal according to the identification information of this multimedia file, can obtain the address information of this multimedia file.Then, according to the address information of this multimedia file, obtain multi-medium data corresponding to this multimedia file from server side, realize online this multimedia file of broadcasting.Wherein, off-line is play this multimedia file and be converted to online this multimedia file of broadcasting, thus occur when solving off-line play multimedia file playing failed problem.In addition, terminal is automatically converted to online to play this multimedia file, searches on the internet without the need to user, and what make solution play unsuccessfully is simple to operate.
It should be noted that: the device of the play multimedia file that above-described embodiment provides is when play multimedia file, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the play multimedia file that above-described embodiment provides and the embodiment of the method for play multimedia file belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for play multimedia file, is characterized in that, described method comprises:
When the failure of off-line play multimedia file, detect current network state;
If described network state instruction has connected connect to the Net, then according to the identification information of described multimedia file, obtain the address information of described multimedia file;
Send online playing request to server side, in described online playing request, carry described address information, make described server side according to described address information, obtain the multi-medium data that described multimedia file is corresponding;
Receive described multi-medium data, based on described multi-medium data, play described multimedia file.
2. the method for claim 1, is characterized in that, the described identification information according to described multimedia file, obtains the address information of described multimedia file, comprising:
Send address acquisition request to server side, carry the identification information of described multimedia file in described address acquisition request, make described server side according to the identification information of described multimedia file, obtain the address information of described multimedia file;
Receive the address information of the described multimedia file that described server side sends.
3. the method for claim 1, is characterized in that, the described identification information according to described multimedia file, obtains the address information of described multimedia file, comprising:
According to the identification information of described multimedia file, obtain corresponding address information from the identification information stored with the corresponding relation between address information.
4. the method as described in claim as arbitrary in claim 1-3, is characterized in that, the described identification information according to described multimedia file, before obtaining the address information of described multimedia file, and at least one item in also comprising the steps:
Determine that described network is not mobile data on flows network;
Obtain the file size of described multimedia file, determine that described file size is less than or equal to data threshold;
When determining that described network is hotspot network, detect the bandwidth of described hotspot network, according to the file size of described multimedia file and the reproduction time of described multimedia file, calculate the code check of described multimedia file, determine that the bandwidth of described hotspot network is more than or equal to the code check of described multimedia file.
5. the method as described in claim as arbitrary in claim 1-4, is characterized in that, the described multi-medium data of described reception, based on described multi-medium data, after playing described multimedia file, also comprises:
The original multimedia data of the described multimedia file stored this locality replaces with the multi-medium data of reception.
6. a device for play multimedia file, is characterized in that, described device comprises:
Detection module, for when off-line play multimedia file is failed, detects current network state;
Acquisition module, connects to the Net if connected for described network state instruction, then according to the identification information of described multimedia file, obtains the address information of described multimedia file;
Sending module, for sending online playing request to server side, carrying described address information in described online playing request, making described server side according to described address information, obtaining the multi-medium data that described multimedia file is corresponding;
Playing module, for receiving described multi-medium data, based on described multi-medium data, plays described multimedia file.
7. device as claimed in claim 6, it is characterized in that, described acquisition module comprises:
Transmitting element, for sending address acquisition request to server side, carry the identification information of described multimedia file in described address acquisition request, make described server side according to the identification information of described multimedia file, obtain the address information of described multimedia file;
Receiving element, for receiving the address information of the described multimedia file that described server side sends.
8. device as claimed in claim 6, it is characterized in that, described acquisition module comprises:
Acquiring unit, for the identification information according to described multimedia file, obtains corresponding address information from the identification information stored with the corresponding relation between address information.
9. the device as described in claim as arbitrary in claim 6-8, is characterized in that, described device also comprises as at least one item in lower module:
First determination module, for determining that described network is not mobile data on flows network;
Second determination module, for obtaining the file size of described multimedia file, determines that described file size is less than or equal to data threshold;
3rd determination module, for when determining that described network is hotspot network, detect the bandwidth of described hotspot network, according to the file size of described multimedia file and the reproduction time of described multimedia file, calculate the code check of described multimedia file, determine that the bandwidth of described hotspot network is more than or equal to the code check of described multimedia file.
10. the device as described in claim as arbitrary in claim 6-9, is characterized in that, described device also comprises:
Replacement module, the original multimedia data for the described multimedia file stored this locality replaces with the multi-medium data of reception.
CN201410325615.1A 2014-07-09 2014-07-09 Play the method and device of multimedia file Active CN104618418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410325615.1A CN104618418B (en) 2014-07-09 2014-07-09 Play the method and device of multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410325615.1A CN104618418B (en) 2014-07-09 2014-07-09 Play the method and device of multimedia file

Publications (2)

Publication Number Publication Date
CN104618418A true CN104618418A (en) 2015-05-13
CN104618418B CN104618418B (en) 2019-09-10

Family

ID=53152693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410325615.1A Active CN104618418B (en) 2014-07-09 2014-07-09 Play the method and device of multimedia file

Country Status (1)

Country Link
CN (1) CN104618418B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007332A (en) * 2015-08-04 2015-10-28 广东欧珀移动通信有限公司 Network media file play method and system
CN105657456A (en) * 2016-03-10 2016-06-08 腾讯科技(深圳)有限公司 Processing method, device and system for multimedia data
CN106850629A (en) * 2017-02-09 2017-06-13 广东欧珀移动通信有限公司 The processing method and mobile terminal of a kind of stream medium data
CN106973302A (en) * 2016-01-14 2017-07-21 腾讯科技(深圳)有限公司 A kind of method of foradownloaded video data, apparatus and system
CN108614844A (en) * 2016-12-13 2018-10-02 腾讯科技(北京)有限公司 Multimedia file producting method and device
CN110191315A (en) * 2019-05-08 2019-08-30 视联动力信息技术股份有限公司 A kind of monitoring inspection method and device based on view networking

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355574A (en) * 2008-07-30 2009-01-28 优视动景(北京)技术服务有限公司 Method for on-line playing stream media files by a mobile terminal
US20130047084A1 (en) * 2011-08-18 2013-02-21 Christopher John Sanders Management of Local and Remote Media Items
CN103517143A (en) * 2013-08-29 2014-01-15 小米科技有限责任公司 Method, device and terminal device for playing network video
CN103731339A (en) * 2013-12-27 2014-04-16 青岛海信移动通信技术股份有限公司 Digital life network alliance system and method for sharing online multimedia resources in digital life network alliance system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355574A (en) * 2008-07-30 2009-01-28 优视动景(北京)技术服务有限公司 Method for on-line playing stream media files by a mobile terminal
US20130047084A1 (en) * 2011-08-18 2013-02-21 Christopher John Sanders Management of Local and Remote Media Items
CN103733197A (en) * 2011-08-18 2014-04-16 苹果公司 Management of local and remote media items
CN103517143A (en) * 2013-08-29 2014-01-15 小米科技有限责任公司 Method, device and terminal device for playing network video
CN103731339A (en) * 2013-12-27 2014-04-16 青岛海信移动通信技术股份有限公司 Digital life network alliance system and method for sharing online multimedia resources in digital life network alliance system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007332A (en) * 2015-08-04 2015-10-28 广东欧珀移动通信有限公司 Network media file play method and system
CN106973302A (en) * 2016-01-14 2017-07-21 腾讯科技(深圳)有限公司 A kind of method of foradownloaded video data, apparatus and system
CN105657456A (en) * 2016-03-10 2016-06-08 腾讯科技(深圳)有限公司 Processing method, device and system for multimedia data
WO2017152751A1 (en) * 2016-03-10 2017-09-14 腾讯科技(深圳)有限公司 Multimedia data processing method, apparatus and system, and storage medium
US10650119B2 (en) * 2016-03-10 2020-05-12 Tencent Technology (Shenzhen) Company Limited Multimedia data processing method, apparatus, system, and storage medium
CN108614844A (en) * 2016-12-13 2018-10-02 腾讯科技(北京)有限公司 Multimedia file producting method and device
CN108614844B (en) * 2016-12-13 2020-12-29 腾讯科技(北京)有限公司 Multimedia file generation method and device
CN106850629A (en) * 2017-02-09 2017-06-13 广东欧珀移动通信有限公司 The processing method and mobile terminal of a kind of stream medium data
CN110100424A (en) * 2017-02-09 2019-08-06 Oppo广东移动通信有限公司 A kind of processing method and mobile terminal of stream medium data
US10992723B2 (en) 2017-02-09 2021-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing streaming media data and terminal
CN110100424B (en) * 2017-02-09 2021-08-31 Oppo广东移动通信有限公司 Streaming media data processing method and mobile terminal
CN110191315A (en) * 2019-05-08 2019-08-30 视联动力信息技术股份有限公司 A kind of monitoring inspection method and device based on view networking

Also Published As

Publication number Publication date
CN104618418B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN104618418A (en) Method and device for playing multimedia file
CN103716656B (en) A kind of video loading method and electronic equipment
CN105376612A (en) Video playing method, media equipment, playing equipment and multimedia system
CN103327021B (en) Method, devices and system of multi-device interaction
CN104967862A (en) Video storage method and device, and video searching method and device
CN104023273A (en) Video-on-demand method and video-on-demand device
CN104967646A (en) File downloading method and apparatus
CN103618792A (en) Data stream identification method and device
CN104394601A (en) WiFi (wireless fidelity) network access control method, device and router
CN105657781A (en) Method and device for accessing WiFi network
CN105335471A (en) Vehicle multimedia device, mobile terminal, and vehicle multimedia playing method
CN114760281A (en) Indication of partial segments
CN103747284A (en) Video pushing method and server
CN107409130B (en) Indication of partial segments
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN106303577B (en) Download the method and device of Streaming Media
CN108833961B (en) Method, server and system for acquiring flight record data
CN105635753B (en) The method for down loading and device of media data
CN104753811A (en) Streaming medium service optimizing method, device and system
CN105227351A (en) Log acquisition system, journal obtaining method and electronic equipment
CN105763906A (en) Audio file playing method and audio file playing system
CN104581404A (en) Method, device and system for processing multimedia data
CN112118487B (en) Video playing control method, device, equipment and medium
CN103841458A (en) Auxiliary information pushing method and device and auxiliary information receiving method and device
CN105144073A (en) Removable storage device identity and configuration information

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