Movatterモバイル変換


[0]ホーム

URL:


CN106162216A - Assist method and the local agent service unit of player downloads multimedia resource - Google Patents

Assist method and the local agent service unit of player downloads multimedia resource
Download PDF

Info

Publication number
CN106162216A
CN106162216ACN201610560498.6ACN201610560498ACN106162216ACN 106162216 ACN106162216 ACN 106162216ACN 201610560498 ACN201610560498 ACN 201610560498ACN 106162216 ACN106162216 ACN 106162216A
Authority
CN
China
Prior art keywords
message
multimedia resource
download
remote server
address
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.)
Pending
Application number
CN201610560498.6A
Other languages
Chinese (zh)
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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TVMining Beijing Media Technology Co LtdfiledCriticalTVMining Beijing Media Technology Co Ltd
Priority to CN201610560498.6ApriorityCriticalpatent/CN106162216A/en
Publication of CN106162216ApublicationCriticalpatent/CN106162216A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of method assisting player downloads multimedia resource and local agent service unit, relate to network data processing technique, solve Android player in prior art and be only provided that the downloading rate that single-threaded download causes is low, it is difficult to meet the technical problem of demand.Wherein, method includes: obtain trigger for download;Local address is sent to playing module;Receiving the second message of the request download multimedia resource that playing module sends, the destination address of the second message is local address;Being the first message by the second message modification, the destination address of the first message is the remote server address that trigger for download is corresponding;Send the first message to remote server, and replace described playing module to download described multimedia resource from described remote server in the way of multithreading;The described multimedia resource that the described remote server received returns is consigned to described playing module in the way of single-threaded.

Description

Assist method and the local agent service unit of player downloads multimedia resource
Technical field
The present invention relates to network data processing technique, particularly to a kind of player downloads multimedia resource of assistingMethod and local agent service unit.
Background technology
Network technical development is rapid, user on the equipment of computer or mobile phone by player watch video practised withFor often.A lot of online broadcastings can realize seeing while download, the most user friendly demand.Player described typically today isRefer to play the video with digital signal form storage or the software of audio file, also refer to that there is broadcasting video or audio file meritThe electronic device product of energy.Such as Mp 3 player based on flash memory and iPod based on portable hard drive etc..Except minority wave fileOutward, most of players carry decoder with reduction through compressed media file, and a whole set of conversion frequency built-in also wanted by playerAnd the algorithm of buffering.It was that the software playing Voice & Video differs from one another in the past, was video/audio player the most at mostUnite two into one.
Existing can be to see while the player downloading the video watched be all directly to access actual server to obtainMultimedia resource plays out.In the case of this scheme is stable in network condition, and bandwidth is many, have no problem.But peaceTall and erect player, due to the intrinsic problem of Android, causes Android player single-threaded to download, then to download many matchmakers for needsFor the player of body resource, single-threaded download is then difficult to meet downloading rate, is extremely difficult to the need of download limit, limit viewing videoAsk.
Summary of the invention
The present invention provides a kind of method assisting player downloads multimedia resource and local agent service unit, is used for solvingCertainly in prior art, Android player is only provided that the downloading rate that single-threaded download causes is low, it is difficult to the technology meeting demand is askedTopic.
The embodiment of the present invention provides a kind of method assisting player downloads multimedia resource, and the method is applicable to Android and broadcastsPutting device, the method specifically includes that
Obtain trigger for download;
Local address is sent to playing module;
Receiving the second message of the request download multimedia resource that playing module sends, the destination address of the second message is thisThe address on ground;
Being the first message by the second message modification, the destination address of the first message is the remote server that trigger for download is correspondingAddress;
Send the first message to remote server, and replace described playing module from described long-range clothes in the way of multithreadingDescribed multimedia resource downloaded by business device;
The described multimedia resource that the described remote server received returns is consigned in the way of single-threaded describedPlaying module.
In the method that the embodiment of the present invention provides, use before playing module sends message, obtain trigger for download;By this localityAddress be sent to playing module;Receive the second message of the request download multimedia resource that playing module sends, the second messageDestination address be local address;Being the first message by the second message modification, the destination address of the first message is trigger for downloadCorresponding remote server address;Send the first message to remote server, and replace described playing module with the side of multithreadingFormula downloads described multimedia resource from described remote server;The described multimedia that the described remote server received is returnedResource consigns to the technological means of described playing module in the way of single-threaded, can replace playing module asking according to playing moduleAsk and download multimedia resource to remote server request, solve in prior art playing module by single-threaded to remote serviceDuring device request resource, downloading rate is slow, it is impossible to meets multimedia file and downloads and play the technical problem of demand, and then achievesCan be locally downloading by multimedia resource by multithreading, meet rate requirement, get multimedia for playing module simultaneouslyThe technique effect of resource.
Optionally, the method also includes:
Obtain described remote server address.
Optionally, the destination address of the second message is that the multimedia resource of described request download is in local URL address.
Optionally, the destination address of the first message is the multimedia resource URL at remote server of described request downloadAddress.
In the method for the embodiment of the present invention, from playing module, obtain, by using, the mesh downloaded to remote server requestAddress URL, and this URL is revised as the technological means of the URL of local address, it is possible to achieve originally should be arrived by playing moduleThe request of remote server is sent to this locality, makes this this locality acquire the URL that remote server is downloaded simultaneously, and then obtains replacementPlayer downloads multimedia resource, the technique effect that downloading rate is higher by multithreading to remote server request.
Optionally, the second message of multimedia resource is downloaded in the request that described reception playing module sends, particularly as follows:
Receive playing module and download the second message of multimedia resource with the request that single-threaded mode sends.
In the method that the embodiment of the present invention provides, owing to being the local download replacing playing module to carry out request, therefore it isJust playing module is by the single-threaded request carried out, and this locality still can replace playing module to ask by the way of multithreadingDownload, improve downloading rate, make multimedia resource the most locally downloading, in order to meet user's request.
Based on same inventive concept, the embodiment of the present invention continues to provide a kind of local agent service unit, it is adaptable to peaceTall and erect player, this device includes:
Acquisition module, is used for obtaining trigger for download;
Sending module, for being sent to playing module by local address;
Receiver module, the second message of multimedia resource, the second message are downloaded in the request sent for receiving playing moduleDestination address be local address;
Modified module, for being the first message by the second message modification, the destination address of the first message is trigger for download pairThe remote server address answered;
Request module, for sending the first message to remote server, and replaces described playing module with the side of multithreadingFormula downloads described multimedia resource from described remote server;
Feedback module, the described multimedia resource that the described remote server for receiving returns is with single-threaded sideFormula consigns to described playing module.
In the device that the embodiment of the present invention provides, have before playing module sends message, obtain trigger for download;By this localityAddress be sent to playing module;Receive the second message of the request download multimedia resource that playing module sends, the second messageDestination address be local address;Being the first message by the second message modification, the destination address of the first message is trigger for downloadCorresponding remote server address;Send the first message to remote server, and replace described playing module with the side of multithreadingFormula downloads described multimedia resource from described remote server;The described multimedia that the described remote server received is returnedResource consigns to the function of described playing module in the way of single-threaded, can replace playing module according to the request of playing module toMultimedia resource is downloaded in remote server request, solves playing module in prior art and is asked to remote server by single-threadedWhen seeking resource, downloading rate is slow, it is impossible to meets multimedia file and downloads and play the technical problem of demand, and then achieves permissibleBy multithreading, multimedia resource is locally downloading, meet rate requirement, get multimedia resource for playing module simultaneouslyTechnique effect.
Optionally, described acquisition module, it is additionally operable to obtain described remote server address.
Optionally, the destination address of the second message is that the multimedia resource of described request download is in local URL address.
Optionally, the destination address of the first message is the multimedia resource URL at remote server of described request downloadAddress.
Optionally, described receiver module, there is the request sent in single-threaded mode for receiving playing module and download manySecond message of media resource.
In the device that the embodiment of the present invention provides, owing to being the local download replacing playing module to carry out request, therefore it isJust playing module is by the single-threaded request carried out, and this locality still can replace playing module to ask by the way of multithreadingDownload, improve downloading rate, make multimedia resource the most locally downloading, in order to meet user's request.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from descriptionObtain it is clear that or understand by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations writeStructure specifically noted in book, claims and accompanying drawing realizes and obtains.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with the reality of the present inventionExecute example together for explaining the present invention, be not intended that limitation of the present invention.In the accompanying drawings:
The flow process of the Fig. 1 a kind of method assisting player downloads multimedia resource for providing in the embodiment of the present invention oneFigure;
The flow process of the Fig. 2 a kind of method assisting player downloads multimedia resource for providing in the embodiment of the present invention twoFigure;
The structural representation of the Fig. 3 a kind of local agent service unit for providing in the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred reality described hereinExecute example be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Embodiment one
The embodiment of the present invention provides a kind of method assisting player downloads multimedia resource, and the method is suitable for being deployed in be broadcastPut on device or be provided with on the equipment of player.As it is shown in figure 1, the method is applicable to Android player, the method includes:
101, obtain trigger for download;
Monitoring player (i.e. playing module) in real time, whether detecting player sends is downloaded many to remote server requestThe information of media resource.
102, local address is sent to playing module;
There is request to download the demand of multimedia resource if listening to player, then local address is sent the past to broadcastingDevice.After player receives local address, request is downloaded the destination address in the second message of multimedia resource by remotely takingThe address being revised as this locality of business device.
103, receive the second message of the request download multimedia resource that playing module sends, the destination address of the second messageFor local address;
Optionally, the destination address of described second message is that the multimedia resource of described request download is on local URL groundLocation.
104, it is the first message by the second message modification, the destination address of the first message is the long-range clothes that trigger for download is correspondingBusiness device address;
Optionally, the destination address of described first message is that the multimedia resource of trigger for download corresponding requests download is remotelyThe URL address of server.
Owing to the destination address in the second message is revised for this locality by the URL (URL) of remote serverIn the URL of local agent service unit, the second message that therefore player sends has been sent to this locality.This locality receives secondAfter message, in addition it is also necessary to get the address of remote server.The mode of the address obtaining remote server can have multiple.Such asSecond message is carried the address of remote server;Or before 104, by the remote server that obtains from the second messageAddress is sent to this locality by other message.
In the embodiment of the present invention using single-threaded for player to remote server request download multimedia resource message asFirst message, the destination address in the first message is remote server, after the destination address in the first message is revised as this localityRequest download multimedia resource message as the second message.
105, send the first message to remote server, and replace described playing module in the way of multithreading from described farJourney server downloads described multimedia resource;
I.e. send the first message to remote server, replace player requests to download multimedia resource.Accordingly, remotely takeBusiness device in the way of multithreading feedback Multimedia resource to this locality.
106, the described multimedia resource that the described remote server received returns is consigned in the way of single-threadedDescribed playing module.
In the method that the embodiment of the present invention provides, use before playing module sends message, obtain trigger for download;By this localityAddress be sent to playing module;Receive the second message of the request download multimedia resource that playing module sends, the second messageDestination address be local address;Being the first message by the second message modification, the destination address of the first message is trigger for downloadCorresponding remote server address;Send the first message to remote server, and replace described playing module with the side of multithreadingFormula downloads described multimedia resource from described remote server;The described multimedia that the described remote server received is returnedResource consigns to the technological means of described playing module in the way of single-threaded, can replace playing module asking according to playing moduleAsk and download multimedia resource to remote server request, solve in prior art playing module by single-threaded to remote serviceDuring device request resource, downloading rate is slow, it is impossible to meets multimedia file and downloads and play the technical problem of demand, and then achievesCan be locally downloading by multimedia resource by multithreading, meet rate requirement, get multimedia for playing module simultaneouslyThe technique effect of resource.
Embodiment two
As a example by the embodiment of the present invention combines foradownloaded video resource, it is provided that a kind of side assisting player downloads multimedia resourceMethod.The method is applicable to Android player, and increase has local agent service unit in this player.As in figure 2 it is shown, the partyMethod includes:
200, local agent service unit listens to player and will send request foradownloaded video resource to remote serverMessage.
201, local address is sent to player by local agent service unit;
202, request is downloaded the destination address in the message of multimedia resource by video resource in remote service by playerThe video resource URL address in this locality is revised as in URL address on device, amended for destination address message is disappeared as secondBreath, and send the second message with single-threaded mode ask download.
Now, the destination address in the second message is local agent service unit, so it practice, player send theTwo message have been as the target of request foradownloaded video resource using local agent service unit, remove local agent service unitThere request video file data.The video resource of also portability request is on the remote server in this second message simultaneouslyURL。
203, local agent service unit receives the second message, therefrom gets video resource on the remote serverURL, is the first message by the second message modification, and the destination address of the first message is the remote server ground that trigger for download is correspondingLocation.
204, local agent service unit sends the first message with multithreading, be equivalent to replace player multithreading toMultimedia resource is downloaded in remote server request.
The i.e. url of local agent service unit acquisition player requests remote server video resource replaces player to carry outLong-range actual video resource request.
205, after remote server receives request, in the way of multithreading, feed back video resource data take to local agentBusiness device.
I.e. remote server returns the data of video resource to local agent service unit.
206, the video resource that the remote server received returns is handed over by local agent service unit in single-threaded modePay player.
The data that remote server returns are consigned to player by local agent service unit, and such player just can be broadcastPut video.
The most above-mentioned 204-205 is emphasis link, can customize a lot of remote server and terminal is broadcast in the two linkPut the privately owned agreement of device to complete special function.This link simply uses dynamic multi streaming at present in embodiments of the present inventionMethod reach the purpose of quick-downloading video data.
The embodiment of the present invention adds local agent service unit in player, by amendment destination address, playerLocal agent service unit is regarded as the server that can be used to ask resource.Player is single-threaded sends the request of download to local generationReason service unit, local agent service unit sends, to remote server, the request of download according to the request of player, initiates multi-threadJourney is downloaded, and the video data of download is supplied to the single-threaded download of player.Due to video resource in this locality, the most notIt is vulnerable to the impact of the problems such as remote request Time Bandwidth, network stabilization, is equivalent to player locally stored in directly broadcastingVideo, therefore can meet video and download demand, reach user and watch the requirement of foradownloaded video.
Embodiment three
Realizing for the ease of the method in above-described embodiment one, two, the embodiment of the present invention continues to provide a kind of local agentService unit, it is adaptable to Android player, this device may be mounted in Android player, it is also possible to plays with regard to an AndroidDevice, or the terminal of Android player is installed.As it is shown on figure 3, this device includes:
Acquisition module 31, is used for obtaining trigger for download;
Sending module 32, for being sent to playing module by local address;
Receiver module 33, for receiving the second message of the request download multimedia resource that playing module sends, second disappearsThe destination address of breath is local address;
Modified module 34, for being the first message by the second message modification, the destination address of the first message is trigger for downloadCorresponding remote server address;
Request module 35, for sending the first message to remote server, and replaces described playing module with multithreadingMode downloads described multimedia resource from described remote server;
Feedback module 36, the described multimedia resource that the described remote server for receiving returns is with single-threadedMode consigns to described playing module.
Optionally, described acquisition module 31, it is additionally operable to obtain described remote server address.
Optionally, the destination address of the second message is that the multimedia resource of described request download is in local URL address.
Optionally, the destination address of the first message is the multimedia resource URL at remote server of described request downloadAddress.
Optionally, described receiver module 33, there is the request sent in single-threaded mode for receiving playing module and downloadSecond message of multimedia resource.
In the device that the embodiment of the present invention provides, owing to being the local download replacing playing module to carry out request, therefore it isJust playing module is by the single-threaded request carried out, and this locality still can replace playing module to ask by the way of multithreadingDownload, improve downloading rate, make multimedia resource the most locally downloading, in order to meet user's request.
In the device that the embodiment of the present invention provides, have before playing module sends message, obtain trigger for download;By this localityAddress be sent to playing module;Receive the second message of the request download multimedia resource that playing module sends, the second messageDestination address be local address;Being the first message by the second message modification, the destination address of the first message is trigger for downloadCorresponding remote server address;Send the first message to remote server, and replace described playing module with the side of multithreadingFormula downloads described multimedia resource from described remote server;The described multimedia that the described remote server received is returnedResource consigns to the function of described playing module in the way of single-threaded, can replace playing module according to the request of playing module toMultimedia resource is downloaded in remote server request, solves playing module in prior art and is asked to remote server by single-threadedWhen seeking resource, downloading rate is slow, it is impossible to meets multimedia file and downloads and play the technical problem of demand, and then achieves permissibleBy multithreading, multimedia resource is locally downloading, meet rate requirement, get multimedia resource for playing module simultaneouslyTechnique effect.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer programProduct.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardwareExecute the form of example.And, the present invention can use at one or more computers wherein including computer usable program codeThe shape of the upper computer program implemented of usable storage medium (including but not limited to disk memory and optical memory etc.)Formula.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present inventionFigure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagramFlow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be providedInstruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produceA raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for realThe device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spyDetermine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring toMake the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram orThe function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meterPerform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer orThe instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram oneThe step of the function specified in individual square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present inventionGod and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereofWithin, then the present invention is also intended to comprise these change and modification.

Claims (10)

CN201610560498.6A2016-07-152016-07-15Assist method and the local agent service unit of player downloads multimedia resourcePendingCN106162216A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610560498.6ACN106162216A (en)2016-07-152016-07-15Assist method and the local agent service unit of player downloads multimedia resource

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610560498.6ACN106162216A (en)2016-07-152016-07-15Assist method and the local agent service unit of player downloads multimedia resource

Publications (1)

Publication NumberPublication Date
CN106162216Atrue CN106162216A (en)2016-11-23

Family

ID=58060494

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610560498.6APendingCN106162216A (en)2016-07-152016-07-15Assist method and the local agent service unit of player downloads multimedia resource

Country Status (1)

CountryLink
CN (1)CN106162216A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106331757A (en)*2016-08-172017-01-11无锡天脉聚源传媒科技有限公司Method and device for controlling playback of audio and video data
CN107135249A (en)*2017-04-062017-09-05腾讯科技(深圳)有限公司Data download method and device
CN109309848A (en)*2018-09-292019-02-05武汉斗鱼网络科技有限公司Barrage distribution method, device, equipment and storage medium based on retry mechanism

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103686198A (en)*2013-12-302014-03-26优视科技有限公司Video data processing method, device and system
US9357277B1 (en)*2014-09-172016-05-31Cox Communications, Inc.Dynamic URL personalization system for enhancing interactive television

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103686198A (en)*2013-12-302014-03-26优视科技有限公司Video data processing method, device and system
US9357277B1 (en)*2014-09-172016-05-31Cox Communications, Inc.Dynamic URL personalization system for enhancing interactive television

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106331757A (en)*2016-08-172017-01-11无锡天脉聚源传媒科技有限公司Method and device for controlling playback of audio and video data
CN107135249A (en)*2017-04-062017-09-05腾讯科技(深圳)有限公司Data download method and device
CN109309848A (en)*2018-09-292019-02-05武汉斗鱼网络科技有限公司Barrage distribution method, device, equipment and storage medium based on retry mechanism

Similar Documents

PublicationPublication DateTitle
CN105430424B (en)A kind of methods, devices and systems of net cast
US20170302990A1 (en)Method, terminal, and system for processing data of video stream
CN107135417B (en)A kind of throwing screen method and system of HLS protocol
US11006164B2 (en)TV and electronic device with external tuner and memory for personal video recording
US9232347B2 (en)Apparatus and method for playing music
CN102036058B (en)Method, server, terminal and system for switching videos in video monitoring system
CN102204219A (en)Method, apparatus and system for switching and playing a video
CN104967902A (en)Video sharing method, apparatus and system
CN106453939B (en)Streaming media access method and device
CN106131700A (en)A kind of sharing files method and device during net cast
CN102006511A (en)Method and device for looking back live program and terminal
CN109413453A (en)Video broadcasting method, device, terminal and storage medium
CN104837057A (en)Video file playing method, device and system
CN107018448A (en)Data processing method and device
CN106162216A (en)Assist method and the local agent service unit of player downloads multimedia resource
CN108141782B (en) Apparatus and method for sending or receiving media resource identification information in a communication system
CN105391563A (en)Information notifying method and apparatus
CN108040270A (en)A kind of method and device for transmitting video
CN105007517A (en)Method and device for generating interactive information of interactive television system
CN113938704B (en)Screen projection method, screen projection end, screen projected end, cloud server and screen projection system
CN103826158B (en)A kind of network direct broadcasting apparatus and method
CN108810575A (en)A kind of method and apparatus sending target video
CN106162234A (en)A kind of method and device sharing TV programme
CN105072497A (en)Method and device for generating interactive TV video signal
CN104053049B (en)A kind of method and device for playing multimedia messages

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20161123

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp