CN102006368A - Streaming media audio file play method based on mobile terminal memory card cache technology - Google Patents
Streaming media audio file play method based on mobile terminal memory card cache technology Download PDFInfo
- Publication number
- CN102006368A CN102006368A CN2010105726505A CN201010572650A CN102006368A CN 102006368 A CN102006368 A CN 102006368A CN 2010105726505 A CN2010105726505 A CN 2010105726505A CN 201010572650 A CN201010572650 A CN 201010572650A CN 102006368 A CN102006368 A CN 102006368A
- Authority
- CN
- China
- Prior art keywords
- streaming media
- audio file
- record
- media audio
- hurdle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a streaming media audio file play method based on a mobile terminal memory card cache technology, in the method, a predetermined storage region in a memory card externally connected with the mobile terminal is used as a cache region specially used for caching the streaming media audio file, so that one or more integral streaming media audio files can be stored in the cache region, users can repeatedly listen to the audio files only by reading the cached files again without downloading from a streaming media server, time and data communication cost are saved for the users, and the cache occupies no memory capacity of a mobile terminal processor and has no influence on system processing capability of the mobile terminal; simultaneously, a technical means of the mobile terminal external memory card is mature and used widely, technicians of the field can easily set the cache region in the memory card, and maneuverability is very strong.
Description
Technical field
The present invention relates to data processing technique and mobile communication technology field, particularly a kind of Streaming Media audio file player method based on portable terminal memory card caching technology.
Background technology
Along with electronics and development of Communication Technique, the function of mobile terminal device is more and more abundanter, music, take pictures, critical function that multimedia function such as shooting has become present main flow mobile terminal device.Simultaneously, development along with mobile communication technology, 2.5G the comprehensive commercialization of the communication technology, the 3G communication technology also progresses into people's life, the transmission speed of mobile communications network and the QoS of portable terminal also are greatly improved, also constantly increasing at multimedia mobile communication business, for example multimedia message, video calling, palm TV etc., and these multimedia services become the main value-added service of mobile communication carrier gradually.
Follow the continual renovation upgrading of portable terminal, communication operation platform, the digital coding transmission technology is development thereupon also, and stream media technology is exactly a kind of emerging digital coding transmission technology.Streaming Media is so a kind of media transport technology, usually by streaming media server with audio frequency, multi-medium datas such as video are divided into several continuous packets through special compression coding mode, be Streaming Media audio file or streaming media video file, again Streaming Media audio file or streaming media video file are packet-by-packet sent successively by internet or mobile communications network, user terminal receives the decoding and the play operation of carrying out behind the data packet stream of Streaming Media audio file or streaming media video file packet-by-packet, from having realized the online play mode of playing while downloading, changed traditional elder generation and downloaded the multimedia sharing model of afterwards watching, for the user provides the stand-by period few, the multimedia online service that real-time is stronger is experienced.Stream media technology is used in internet and mobile communications network widely, has realized the online broadcast of multi-medium data, and for example the user can be by the online music etc. of listening to of surfing Internet with cell phone.
In stream media technology, the packet of the stream medium data that user terminal must convection media server issues carries out buffer memory, just can carry out normal play operation.For portable terminal, caching process to data all adopts the internal memory of processor to finish usually, yet the processor memory capacity of portable terminal is all very limited usually, especially for MTK(full name MediaTek that a lot of home-made cellphone adopted, MediaTek Inc) system resource that series processors, memory size are valuable especially.If adopt internal memory to finish the buffer memory work of stream medium data, will reduce the memory cost that portable terminal is handled other data undoubtedly, cause system processing power to decline to a great extent.Because the processor memory finite capacity of portable terminal, usually all not enough 1Mbyte, can be used in the not enough especially 500Kbyte in space of metadata cache, and complete audio file all needs to take the memory space of 2 ~ 5 Mbyte usually, therefore spatial cache is not enough to audio file is carried out complete buffer memory, can only clear up data cached mode on one side by one side buffer memory and realize the online broadcast of Streaming Media audio file, if the user will listen to the audio file of playing just now once more, portable terminal must carry out buffer memory from the data of streaming media server download stream media audio file once more again and play, and how many multimedia communication services of portable terminal normally by the chargeing of amount of communication data, and this has increased the user's data communication cost greatly; Moreover, under the situation less at the mobile communications network download bandwidth, that speed of download is slower, also cause the online broadcast that the Streaming Media audio file can't be smooth, greatly reduce the service quality of the online listen for traffic of music and the experience sense of mobile phone users.
Summary of the invention
At above shortcomings in the prior art, the object of the present invention is to provide a kind of Streaming Media audio file player method, solve the existing online playing stream media audio file of portable terminal and have repeated downloads, problem that the data communication expense is high based on portable terminal memory card caching technology.
For achieving the above object, the present invention has adopted following technological means: the Streaming Media audio file player method based on portable terminal memory card caching technology may further comprise the steps:
1) portable terminal presets buffer area in connected memory card, and formulates cache information table;
2) portable terminal obtains the data of Streaming Media audio file from streaming media server, and it buffer memory to the buffer area of memory card, is generated corresponding cache path simultaneously and is recorded in the cache information table;
3) portable terminal reads the data of corresponding Streaming Media audio file and plays according to the cache path that writes down in the cache information table from the buffer area of memory card.
As improvement project, described cache information table is made of the caching record item; Described caching record item comprises hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory record hurdle and preserves the sign hurdle, is respectively applied for chained address, the data total amount value D of recorded stream media audio file
Always, data in buffer value D and preserve sign;
On the basis of improvement project, described step 2) be specially:
2a) portable terminal obtains the chained address of Streaming Media audio file in streaming media server of being asked to the data interaction request of streaming media server transmission Streaming Media audio file after the wait streaming media server response request; The mobile terminal enquiry cache information table if wherein there is not any record of described chained address, is then added a new caching record item, described chained address is recorded in the hurdle, chained address of described new caching record item, then execution in step 2b); If record described chained address in the hurdle, chained address of existing caching record item in the cache information table, then execution in step 2c);
2b) portable terminal obtains the data of the Streaming Media audio file of being asked from streaming media server according to described chained address, with it buffer memory to the buffer area of memory card, generate corresponding cache path simultaneously, and this corresponding cache path is recorded in the cache path hurdle of described new caching record item; Therebetween, portable terminal is resolved the header file of the Streaming Media audio file that obtains, obtains the data total amount value D of the Streaming Media audio file that obtained
Always, be recorded in the data total amount record hurdle of described new caching record item, and Streaming Media audio file data in buffer value D in the buffer area of memory card that detection is obtained is recorded in the buffer memory record hurdle of described new caching record item; Simultaneously, operate whether recorded and stored sign in the preservation sign hurdle of described new caching record item of selection by the user;
2c) the numerical value D of data total amount record hurdle record in the more described existing caching record item of portable terminal
AlwaysNumerical value D with buffer memory record hurdle record; If D
AlwaysD, portable terminal finds corresponding Streaming Media audio file according to the cache path of cache path hurdle record in the described existing caching record item from the buffer area of memory card, and continues to obtain the data of this Streaming Media audio file from streaming media server according to described chained address; If D
Always=D then no longer downloads the data of the Streaming Media audio file of being asked.
On the basis of improvement project, described step 3) is specially:
3a) portable terminal obtains the chained address of the Streaming Media audio file asked according to it from streaming media server, from cache information table, inquire the hurdle, chained address and record the corresponding caching record item of described chained address, cache path according to cache path hurdle record in the corresponding caching record item finds the Streaming Media audio file of being asked from the buffer area of memory card again, and the broadcast threshold value D that relatively presets
0Numerical value D with buffer memory record hurdle record in the corresponding caching record item; If D<D
0, then wait for; If D 〉=D
0, the data that then begin to read described Streaming Media audio file are play, and the data value D that play of record
BroadcastTherebetween, if the user selects to withdraw from play operation, then execution in step 3d);
3b) the data of Streaming Media audio file described in the intact buffer area of mobile terminal playing, the numerical value D of data total amount record hurdle record in the then more corresponding caching record item
AlwaysNumerical value D with buffer memory record hurdle record; If D
Always=D shows that this Streaming Media audio file downloads and finish, and then stops playing, and waits for that the user plays or withdraw from play operation once more, and when the user selects to withdraw from play operation execution in step 3d); If D
AlwaysD, and show that this Streaming Media audio file is downloaded as yet to finish, also need to wait for and continue to download, then suspend and play execution in step 3c);
3c) portable terminal is according to the broadcast threshold value D that presets
0, the data value D that plays
Broadcast, the numerical value D of data total amount record hurdle record in the corresponding caching record item
AlwaysJudge with the numerical value D of buffer memory record hurdle record; If D-D
Broadcast<D
0And D
AlwaysD, then wait for, until D-D
Broadcast〉=D
0Or D
Always=D continues to read and play the data of this Streaming Media audio file again, returns step 3b then); Therebetween, if the user selects to withdraw from play operation, then execution in step 3d);
3d) portable terminal judges whether preserve the sign hurdle in the described corresponding caching record item records the preservation sign; If then continue to be stored in this Streaming Media audio file in the buffer area of memory card; Otherwise, delete this Streaming Media audio file and corresponding caching record item thereof.
Wherein, the described broadcast threshold value D that presets
0Value be 500kbyte≤D
0≤ 2500kbyte; Perhaps, the described broadcast threshold value D that presets
0According to the code check of the Streaming Media audio file of being play and the time threshold T that presets
0Decision, i.e. D
0Code check * the T of=Streaming Media the audio file play
0Described time threshold T
0Value be 6 seconds≤T
0≤ 8 seconds.
Than prior art, the present invention has following beneficial effect:
1, the Streaming Media audio file player method based on portable terminal memory card caching technology of the present invention, a storage area that presets in the memory card that portable terminal is external is as buffer area; Because the memory capacity of memory card is big a lot of for the internal memory of mobile terminal processor, be generally 2 ~ 16Gbyte, thereby one of buffer memory even a plurality of complete Streaming Media audio file effectively, when need repeating to listen to, the user only need read the Streaming Media audio file of buffer memory once more, need not to download from streaming media server once more, saved user's time and data communication expense.
2, need not to take the memory size of mobile terminal processor, do not influence the system processing power of portable terminal;
3, the technological means maturation of the external memory card of portable terminal, be widely used, only need when cache flow media audio file by its cache path of cache information table record, the data that read the Streaming Media audio file in the buffer memory according to corresponding cache path during broadcast get final product, realize having very strong operability to those skilled in the art easily.
4, as improvement project, cache information table is made of the caching record item, the caching record item comprises hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory record hurdle at least and preserves the sign hurdle, is respectively applied for cache path, the data total amount value D of record respective streams media audio file
Always, data in buffer value D and user be from the preservation sign that is provided with, so that portable terminal carries out the function expansion according to these record data.
5, expand as a kind of function of improvement project, portable terminal can be according to whether comprising the data that the caching record item that records this chained address judges whether to continue to download this Streaming Media audio file in the cache information table when streaming media server sends the data interaction request of Streaming Media audio file and get access to chained address in streaming media server of the Streaming Media audio file of being asked; Perhaps, according to the data total amount value D that writes down in the caching record item
AlwaysJudge whether that with the data value D of buffer memory request server carries out breakpoint transmission; Also can operate selection and whether add the preservation sign according to the user; By these means, reduce the amount of communication data of portable terminal and streaming media server as far as possible, for the user saves time and the communication spending.
6, expand as a kind of function of improvement project, when mobile terminal playing Streaming Media audio file, the data of whether having preserved corresponding Streaming Media audio file in elder generation's affirmation buffer area, if the data playback that then preferentially reads in the buffer area is arranged, after data in buffer plays, judge whether again to wait for the data that continue download stream media audio file, thereby guarantee the fluency of broadcast as much as possible; And, when selecting to withdraw from play operation, whether record and preserve sign and judge whether to keep the Streaming Media audio file of playing before this according to preserving the sign hurdle in the caching record item at the family, can allow in the memory card occupation mode of buffer area more flexible.
Description of drawings
Fig. 1 is the FB(flow block) of the inventive method;
Fig. 2 obtains FB(flow block) for the data of Streaming Media audio file in the improvement project of the present invention;
Fig. 3 reads the playing flow block diagram for Streaming Media audio file in the improvement project of the present invention;
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is further described.
Generally adopt limited processor memory as metadata cache at portable terminal in the prior art, can't the whole audio file of buffer memory, there is the situation of repeated downloads in the online playing stream media audio file of network, cause user's data communication cost problem of higher, the present invention proposes a kind of Streaming Media audio file player method based on portable terminal memory card caching technology, the external memory card technology of the present field of mobile terminals maturation of this method utilization, in memory card, preset certain storage area and be exclusively used in the metadata cache of Streaming Media audio file as buffer area, utilize memory card stores characteristics capacious that whole Streaming Media audio file is carried out complete buffer memory, when the user need repeat to listen to the audio file of online downloading and playing before this, portable terminal just can be directly from buffer area reading of data play, download and need not to connect streaming media server once more, thereby reduced the amount of communication data between portable terminal and the streaming media server, for the user saves the data communication spending.Below by embodiment practical application of the present invention and effect are described further.
Embodiment 1:
Be circumscribed with the memory card that memory capacity is 8Gbyte on certain user's the multimedia handset, the identification path of this memory card in cell phone system be " SDmemory: ".This multimedia handset is used method of the present invention, memory card " SDmemory: " identification can generate the file of a called after " Music " under the path in advance, under " Music " file, also generate the sub-folder that a called after " Streaming Media " arranged, and with the memory block of this sub-folder " Streaming Media " buffer area as multimedia handset convection current media audio file, thereby the identification path of this buffer area in cell phone system is " SDmemory: Music Streaming Media ".When this user surfs the Net with multimedia handset, when linking to certain domain name for the online playing back music in the Online Music website of " http://wap.yinyue.com ", the handling process of mobile phone is as follows:
1) mobile phone at first presets buffer area under memory card identification path, i.e. and " SDmemory: Music Streaming Media ", and formulate cache information table, be mainly used in the store path of the Streaming Media audio file of the online broadcast of record;
2) user sends mutual request by the streaming media server of mobile phone to the Online Music website, asks this first song of online broadcast " my Chinese heart "; The chained address that streaming media server response request rear line mobile phone returns Streaming Media audio file " my Chinese heart " is " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ "; Mobile phone obtains the WMA format stream media audio file " my Chinese heart .wma " of this first song again from streaming media server according to this chained address, the audio file data amount is 5Mbyte, and with Streaming Media audio file " my Chinese heart .wma " be cached in memory card " SDmemory: " in the sub-folder " Streaming Media " under " Music " file, the cache path of this Streaming Media audio file of corresponding generation simultaneously for " SDmemory: Music Streaming Media my Chinese heart .wma " be recorded in the cache information table;
3) mobile phone is by playout software during to the playing of buffer memory, then according to the cache path that writes down in the cache information table " SDmemory: Music Streaming Media my Chinese heart .wma ", the data of reading flow media audio file " my Chinese heart .wma " are play from the sub-folder of the buffer area " Streaming Media " of memory card; Concrete broadcast mode just can adopt the online broadcast mode of Streaming Media audio file of the prior art, promptly when obtaining Streaming Media audio file " my Chinese heart .wma " data, from buffer area, read its obtained and data in buffer play.
By above-mentioned handling process, multimedia handset is in online playing stream media audio file " my Chinese heart .wma ", just with complete being cached in the buffer area " SDmemory: Music Streaming Media " of this audio file, when if the user need play this Streaming Media audio file once more, mobile phone by playout software directly according to cache path " SDmemory: Music Streaming Media my Chinese heart .wma " read " my Chinese heart .wma " once more and play and get final product, carry out downloading and playing with regard to not needing once more by link " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ ", thereby reduced the data communication expense for the user; And play the mode of calling with local data fully once more and operate, play the influence that fluency can not be subjected to mobile communications network speed.
Embodiment 2:
Another program of the present invention, step to method described in the embodiment 1 is further improved, still with user among the embodiment 1 adopt be circumscribed with memory card " SDmemory: " the multimedia handset online playing back music of surfing the Net be example, the Streaming Media audio file player method of this improvement project is described; Concrete steps are as follows:
1) mobile phone at first presets buffer area under memory card identification path, i.e. " SDmemory: Music Streaming Media "; Simultaneously, formulate cache information table, described cache information table is made of the caching record item, the caching record item includes hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory record hurdle at least and preserves the sign hurdle, is respectively applied for chained address, the data total amount value D of recorded stream media audio file
Always, data in buffer value D and preserve sign, as shown in table 1;
Table 1
2) mobile phone obtains Streaming Media audio file " my Chinese heart .wma " from streaming media server, it buffer memory to the buffer area of memory card " SDmemory: Music Streaming Media ", is generated corresponding cache path simultaneously and is recorded in the cache information table; The FB(flow block) of this step is specially as shown in Figure 2:
2a) user sends mutual request by the streaming media server of mobile phone to the Online Music website, asks this first song of online broadcast " my Chinese heart "; The chained address that streaming media server response request rear line mobile phone returns Streaming Media audio file " my Chinese heart " is " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ "; Then, the mobile phones enquiring cache information table, if there is not any record of this chained address in cache information table, then show before this and do not preserve the Streaming Media audio file " my Chinese heart .wma " that " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ " downloads from the chained address in the buffer area, therefore add a new caching record item, " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ " is recorded in the hurdle, chained address of described new caching record item with the chained address, then execution in step 2b); If record this chained address in the hurdle, chained address of existing caching record item in the cache information table, show the data that are cached with corresponding Streaming Media audio file " my Chinese heart .wma " in the buffer area of memory card, then execution in step 2c);
2b) mobile phone obtains the data of Streaming Media audio file " my Chinese heart .wma " from streaming media server according to chained address " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ ", with it buffer memory to the buffer area of memory card, generate simultaneously corresponding cache path " SDmemory: Music Streaming Media my Chinese heart .wma ", and this cache path is recorded in the cache path hurdle of described new caching record item; Therebetween, portable terminal is resolved the header file of the Streaming Media audio file that obtains, obtains the data total amount value D of Streaming Media audio file " my Chinese heart .wma "
Always=5Mbyte is recorded in the data total amount record hurdle of described new caching record item, and Streaming Media audio file data in buffer value D in the buffer area of memory card that detection is obtained is recorded in the buffer memory record hurdle of described new caching record item; Simultaneously, operate whether recorded and stored sign in the preservation sign hurdle of described new caching record item of selection by the user; Thus, Streaming Media audio file " my Chinese heart .wma " corresponding cache entry shape is as shown in table 2:
Table 2
2c) mobile phone compares the numerical value D that data total amount record hurdle writes down in the pairing existing caching record item of Streaming Media audio file " my Chinese heart .wma " in the buffer area
AlwaysNumerical value D with buffer memory record hurdle record; If D
AlwaysD, portable terminal finds corresponding Streaming Media audio file according to the cache path of cache path hurdle record in the pairing existing caching record item from the buffer area of memory card, and continues to obtain the data of this Streaming Media audio file " my Chinese heart .wma " from streaming media server according to described chained address; If D
Always=D then no longer downloads the data of this Streaming Media audio file.
3) mobile phone is by playout software during to the playing of buffer memory, then according to the cache path that writes down in the cache information table " SDmemory: Music Streaming Media my Chinese heart .wma ", the data of reading flow media audio file " my Chinese heart .wma " are play from the sub-folder of the buffer area " Streaming Media " of memory card; The FB(flow block) of this step is specially as shown in Figure 3:
3a) mobile phone is according to chained address " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ ", inquiring the hurdle, chained address from cache information table records the corresponding caching record item of this chained address (this caching record item may be new the interpolation, existing before also may being), again according to the cache path of cache path hurdle record in the corresponding caching record item " SDmemory: Music Streaming Media my Chinese heart .wma " from the buffer area of memory card, find the Streaming Media audio file " my Chinese heart .wma " of being asked, and the broadcast threshold value D that relatively presets
0Numerical value D with buffer memory record hurdle record in the corresponding caching record item; If D<D
0, the effective played data that shows Streaming Media audio file in the buffer area " my Chinese heart .wma " does not reach minimum played data amount as yet and (promptly plays threshold value D
0), then wait for and continue data download; If D 〉=D
0, show that effective played data of Streaming Media audio file in the buffer area " my Chinese heart .wma " has reached minimum played data amount, then begin to read its data and play, and write down the data value D that has play
BroadcastTherebetween, if the user selects to withdraw from play operation, then execution in step 3d);
3b) mobile phone plays the data of Streaming Media audio file in the buffer area " my Chinese heart .wma ", have two kinds of situations this moment, a kind of be Streaming Media audio file " my Chinese heart .wma " in the buffer area because of mobile communications network speed does not have to have downloaded too slowly, another kind is that Streaming Media audio file " my Chinese heart .wma " has been downloaded and finished and finished playing; Therefore, the numerical value D of data total amount record hurdle record in the more corresponding caching record item of mobile phone
AlwaysNumerical value D with buffer memory record hurdle record; If D
Always=D shows that this Streaming Media audio file downloads and finish, and then stops playing, and waits for that the user plays or withdraw from play operation once more, and when the user selects to withdraw from play operation execution in step 3d); If D
AlwaysD, and show that this Streaming Media audio file is downloaded as yet to finish, also need to wait for and continue to download, then suspend and play execution in step 3c);
3c) carry out step so far, the data that show Streaming Media audio file in the buffer area " my Chinese heart .wma " are downloaded as yet and are finished, and then mobile phone is according to the broadcast threshold value D that presets
0, the data value D that plays
Broadcast, the numerical value D of data total amount record hurdle record in the corresponding caching record item
AlwaysJudge with the numerical value D of buffer memory record hurdle record; If D-D
Broadcast<D
0And D
AlwaysD, show that data that Streaming Media audio file in the buffer area " my Chinese heart .wma " can continue to play do not reach minimum played data amount as yet and (promptly play threshold value D
0), also download does not finish, and then waits for the data that continue to download this Streaming Media audio file, until D-D
Broadcast〉=D
0Or D
Always=D shows that the data that Streaming Media audio file in the buffer area " my Chinese heart .wma " can continue to play have reached minimum played data amount, has perhaps downloaded to finish, and continues to read and play the data of this Streaming Media audio file again, returns step 3b then); Therebetween, if the user selects to withdraw from play operation, then execution in step 3d);
3d) mobile phone judges whether preserve the sign hurdle in the described corresponding caching record item records the preservation sign; If, then this Streaming Media audio file " my Chinese heart .wma " is continued to be stored in the buffer area of memory card, withdraw from then; Otherwise, delete this Streaming Media audio file and corresponding caching record item thereof, withdraw from again.
By above-mentioned workflow, mobile phone will generate a corresponding caching record item, in order to chained address, the data total amount value D that writes down this new Streaming Media audio file in cache information table when the new Streaming Media audio file of one of every download
Always, data in buffer value D and the preservation sign selecting to write down by the user; If the user has downloaded identical Streaming Media audio file by same chained address before this, and be provided with and preserve sign, then this Streaming Media audio file necessarily is cached in the buffer area of memory card, and its corresponding cache entry also is retained in the cache information table, mobile phone directly just can find this Streaming Media audio file to play from buffer area by the corresponding cache entry when playing, and need not repeated downloads; If the Streaming Media audio file of downloading by same chained address is downloaded as yet and is finished before this, then the numerical value D that data total amount record hurdle writes down in its corresponding cache entry
AlwaysInevitable numerical value D greater than buffer memory record hurdle record, this moment, mobile phone can continue to obtain the data (streaming media server of main flow is generally supported the breakpoint transmission function at present) of this Streaming Media audio file by the mode of breakpoint transmission from streaming media server.Playing end, presetted a minimum played data amount, promptly play threshold value D
0The data volume that has been acquired and has been cached in the buffer area when the Streaming Media audio file of preparing to play meets or exceeds broadcast threshold value D
0The time, promptly begin to read this Streaming Media audio file and get data and play, and the data value D that play of record simultaneously
BroadcastThe data of the Streaming Media audio file in buffer area are read and play and D
AlwaysDuring D, show that this Streaming Media audio file is downloaded as yet to finish, the data volume that mobile phone then waits for downloads in buffer area reaches D
Broadcast-D 〉=D
0Or D
AlwaysJust continue reading of data during=D and play, thereby avoid crossing when slow in mobile communications network speed, factor causes playing the phenomenon of frequent time-out according to speed of download is slower than the data read broadcasting speed, guarantees the fluency of playing as much as possible; When the user withdraws from broadcast, whether record the preservation sign according to preserving the sign hurdle in the Streaming Media audio file corresponding cache entry again, whether corresponding operating deletes this Streaming Media audio file and corresponding caching record item thereof, and the audio file that the user can freely be selected oneself is liked is stored in the buffer area.
The broadcast threshold value D that relates in the said method
0, can in the handling procedure of portable terminal, preestablish.Its concrete numerical value of setting can be a fixed value, for example will play threshold value D
0Be set at the some fixed values among 500byte ~ 2500byte; Also can be according to the code check of the Streaming Media audio file of being play and the time threshold T that presets
0Threshold value D is play in decision
0, i.e. D
0Code check * the T of=Streaming Media the audio file play
0, time threshold T
0Can be set at 6 seconds ~ 8 seconds.Herein to playing threshold value D
0Value be the value that the solution of the present invention is comparatively optimized; Certainly, those skilled in the art fully can be according to its concrete needs, beyond above-mentioned scope to playing threshold value D
0Carry out value.
Explanation is at last, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not breaking away from the aim and the scope of technical solution of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.
Claims (7)
1. based on the Streaming Media audio file player method of portable terminal memory card caching technology, it is characterized in that, may further comprise the steps:
1) portable terminal presets buffer area in connected memory card, and formulates cache information table;
2) portable terminal obtains the data of Streaming Media audio file from streaming media server, and it buffer memory to the buffer area of memory card, is generated corresponding cache path simultaneously and is recorded in the cache information table;
3) portable terminal reads the data of corresponding Streaming Media audio file and plays according to the cache path that writes down in the cache information table from the buffer area of memory card.
2. the Streaming Media audio file player method based on portable terminal memory card caching technology according to claim 1 is characterized in that described cache information table is made of the caching record item; Described caching record item comprises hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory record hurdle and preserves the sign hurdle.
3. the Streaming Media audio file player method based on portable terminal memory card caching technology according to claim 2 is characterized in that described step 2) be specially:
2a) portable terminal obtains the chained address of Streaming Media audio file in streaming media server of being asked to the data interaction request of streaming media server transmission Streaming Media audio file after the wait streaming media server response request; The mobile terminal enquiry cache information table if wherein there is not any record of described chained address, is then added a new caching record item, described chained address is recorded in the hurdle, chained address of described new caching record item, then execution in step 2b); If record described chained address in the hurdle, chained address of existing caching record item in the cache information table, then execution in step 2c);
2b) portable terminal obtains the data of the Streaming Media audio file of being asked from streaming media server according to described chained address, with it buffer memory to the buffer area of memory card, generate corresponding cache path simultaneously, and this corresponding cache path is recorded in the cache path hurdle of described new caching record item; Therebetween, portable terminal is resolved the header file of the Streaming Media audio file that obtains, obtains the data total amount value D of the Streaming Media audio file that obtained
Always, be recorded in the data total amount record hurdle of described new caching record item, and Streaming Media audio file data in buffer value D in the buffer area of memory card that detection is obtained is recorded in the buffer memory record hurdle of described new caching record item; Simultaneously, operate whether recorded and stored sign in the preservation sign hurdle of described new caching record item of selection by the user;
2c) the numerical value D of data total amount record hurdle record in the more described existing caching record item of portable terminal
AlwaysNumerical value D with buffer memory record hurdle record; If D
AlwaysD, portable terminal finds corresponding Streaming Media audio file according to the cache path of cache path hurdle record in the described existing caching record item from the buffer area of memory card, and continues to obtain the data of this Streaming Media audio file from streaming media server according to described chained address; If D
Always=D then no longer downloads the data of the Streaming Media audio file of being asked.
4. according to claim 2 or 3 described Streaming Media audio file player methods, it is characterized in that described step 3) is specially based on portable terminal memory card caching technology:
3a) portable terminal obtains the chained address of the Streaming Media audio file asked according to it from streaming media server, from cache information table, inquire the hurdle, chained address and record the corresponding caching record item of described chained address, cache path according to cache path hurdle record in the corresponding caching record item finds the Streaming Media audio file of being asked from the buffer area of memory card again, and the broadcast threshold value D that relatively presets
0Numerical value D with buffer memory record hurdle record in the corresponding caching record item; If D<D
0, then wait for; If D 〉=D
0, the data that then begin to read described Streaming Media audio file are play, and the data value D that play of record
BroadcastTherebetween, if the user selects to withdraw from play operation, then execution in step 3d);
3b) the data of Streaming Media audio file described in the intact buffer area of mobile terminal playing, the numerical value D of data total amount record hurdle record in the then more corresponding caching record item
AlwaysNumerical value D with buffer memory record hurdle record; If D
Always=D then stop to play, and waits for that the user plays or withdraw from play operation once more, and when the user selects to withdraw from play operation execution in step 3d); If D
AlwaysD, then suspend and play execution in step 3c);
3c) portable terminal is according to the broadcast threshold value D that presets
0, the data value D that plays
Broadcast, the numerical value D of data total amount record hurdle record in the corresponding caching record item
AlwaysJudge with the numerical value D of buffer memory record hurdle record; If D-D
Broadcast<D
0And D
AlwaysD, then wait for, until D-D
Broadcast〉=D
0Or D
Always=D continues to read and play the data of this Streaming Media audio file again, returns step 3b then); Therebetween, if the user selects to withdraw from play operation, then execution in step 3d);
3d) portable terminal judges whether preserve the sign hurdle in the described corresponding caching record item records the preservation sign; If then continue to be stored in this Streaming Media audio file in the buffer area of memory card; Otherwise, delete this Streaming Media audio file and corresponding caching record item thereof.
5. the Streaming Media audio file player method based on portable terminal memory card caching technology according to claim 4 is characterized in that, the described broadcast threshold value D that presets
0Value be 500kbyte≤D
0≤ 2500kbyte.
6. the Streaming Media audio file player method based on portable terminal memory card caching technology according to claim 4 is characterized in that, the described broadcast threshold value D that presets
0According to the code check of the Streaming Media audio file of being play and the time threshold T that presets
0Decision, i.e. D
0Code check * the T of=Streaming Media the audio file play
0
7. the Streaming Media audio file player method based on portable terminal memory card caching technology according to claim 6 is characterized in that described time threshold T
0Value be 6 seconds≤T
0≤ 8 seconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010572650.5A CN102006368B (en) | 2010-12-03 | 2010-12-03 | Streaming media audio file play method based on mobile terminal memory card cache technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010572650.5A CN102006368B (en) | 2010-12-03 | 2010-12-03 | Streaming media audio file play method based on mobile terminal memory card cache technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102006368A true CN102006368A (en) | 2011-04-06 |
CN102006368B CN102006368B (en) | 2013-06-19 |
Family
ID=43813432
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010572650.5A Active CN102006368B (en) | 2010-12-03 | 2010-12-03 | Streaming media audio file play method based on mobile terminal memory card cache technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102006368B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521279A (en) * | 2011-11-25 | 2012-06-27 | Tcl集团股份有限公司 | Playing method, playing system and player of streaming media files |
CN103347212A (en) * | 2013-06-04 | 2013-10-09 | 青岛海信宽带多媒体技术有限公司 | VOD program playing method and VOD program playing device |
CN103794240A (en) * | 2012-11-02 | 2014-05-14 | 腾讯科技(深圳)有限公司 | On-line audio data storage method and device |
CN103873581A (en) * | 2014-03-21 | 2014-06-18 | 天脉聚源(北京)传媒科技有限公司 | Method and device for breakpoint downloading |
CN104954940A (en) * | 2015-06-09 | 2015-09-30 | 广东欧珀移动通信有限公司 | Playing information saving method and system, play terminal and control terminal |
CN104954853A (en) * | 2015-06-09 | 2015-09-30 | 广东欧珀移动通信有限公司 | Playing information saving method and system, play terminal and control terminal |
CN106453477A (en) * | 2016-01-19 | 2017-02-22 | 实富特信息通讯有限公司 | Data segmented transmission and processing method and client |
WO2017049488A1 (en) * | 2015-09-23 | 2017-03-30 | 华为技术有限公司 | Cache management method and apparatus |
CN108282686A (en) * | 2017-01-18 | 2018-07-13 | 广州市动景计算机科技有限公司 | Video pictures processing method, device and electronic equipment |
CN108415667A (en) * | 2018-01-31 | 2018-08-17 | 惠州华阳通用电子有限公司 | A kind of audio file loading method |
CN109634877A (en) * | 2018-12-07 | 2019-04-16 | 广州市百果园信息技术有限公司 | Flow implementation method, device, equipment and the storage medium of operation |
CN109831689A (en) * | 2019-01-28 | 2019-05-31 | 维沃移动通信有限公司 | A kind of data buffering method and mobile terminal |
WO2019200631A1 (en) * | 2018-04-18 | 2019-10-24 | 网宿科技股份有限公司 | Methods for uploading and downloading streaming media resource, distribution system, and streaming media server |
CN111859088A (en) * | 2020-07-23 | 2020-10-30 | 闵雯 | User authority management system and method based on big data |
CN113139081A (en) * | 2021-04-27 | 2021-07-20 | 中山亿联智能科技有限公司 | Method for reporting and reading user online playing information with high efficiency and low delay |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127989A (en) * | 2007-09-11 | 2008-02-20 | 中兴通讯股份有限公司 | A method for supporting hypertext transmission stream media service of mobile phone |
CN101267624A (en) * | 2008-05-09 | 2008-09-17 | 嘉兴闻泰通讯科技有限公司 | Method for storing stream media of TD mobile phone |
-
2010
- 2010-12-03 CN CN201010572650.5A patent/CN102006368B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127989A (en) * | 2007-09-11 | 2008-02-20 | 中兴通讯股份有限公司 | A method for supporting hypertext transmission stream media service of mobile phone |
CN101267624A (en) * | 2008-05-09 | 2008-09-17 | 嘉兴闻泰通讯科技有限公司 | Method for storing stream media of TD mobile phone |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521279A (en) * | 2011-11-25 | 2012-06-27 | Tcl集团股份有限公司 | Playing method, playing system and player of streaming media files |
CN103794240B (en) * | 2012-11-02 | 2017-07-14 | 腾讯科技(深圳)有限公司 | The storage method and device of online voice data |
CN103794240A (en) * | 2012-11-02 | 2014-05-14 | 腾讯科技(深圳)有限公司 | On-line audio data storage method and device |
CN103347212B (en) * | 2013-06-04 | 2016-04-27 | 青岛海信宽带多媒体技术有限公司 | The playing method and device of VOD program |
CN103347212A (en) * | 2013-06-04 | 2013-10-09 | 青岛海信宽带多媒体技术有限公司 | VOD program playing method and VOD program playing device |
CN103873581A (en) * | 2014-03-21 | 2014-06-18 | 天脉聚源(北京)传媒科技有限公司 | Method and device for breakpoint downloading |
CN104954940A (en) * | 2015-06-09 | 2015-09-30 | 广东欧珀移动通信有限公司 | Playing information saving method and system, play terminal and control terminal |
CN104954853A (en) * | 2015-06-09 | 2015-09-30 | 广东欧珀移动通信有限公司 | Playing information saving method and system, play terminal and control terminal |
CN104954940B (en) * | 2015-06-09 | 2018-03-02 | 广东欧珀移动通信有限公司 | A kind of broadcast information store method, system, playback terminal and control terminal |
CN108351873B (en) * | 2015-09-23 | 2021-05-11 | 华为技术有限公司 | Cache management method and device |
WO2017049488A1 (en) * | 2015-09-23 | 2017-03-30 | 华为技术有限公司 | Cache management method and apparatus |
CN108351873A (en) * | 2015-09-23 | 2018-07-31 | 华为技术有限公司 | A kind of buffer memory management method and device |
CN106453477A (en) * | 2016-01-19 | 2017-02-22 | 实富特信息通讯有限公司 | Data segmented transmission and processing method and client |
CN108282686A (en) * | 2017-01-18 | 2018-07-13 | 广州市动景计算机科技有限公司 | Video pictures processing method, device and electronic equipment |
CN108415667A (en) * | 2018-01-31 | 2018-08-17 | 惠州华阳通用电子有限公司 | A kind of audio file loading method |
CN110392071B (en) * | 2018-04-18 | 2021-06-22 | 网宿科技股份有限公司 | Uploading and downloading methods of streaming media resources, distribution system and streaming media server |
WO2019200631A1 (en) * | 2018-04-18 | 2019-10-24 | 网宿科技股份有限公司 | Methods for uploading and downloading streaming media resource, distribution system, and streaming media server |
CN110392071A (en) * | 2018-04-18 | 2019-10-29 | 网宿科技股份有限公司 | Upload, method for down loading, dissemination system and the streaming media server of streaming media resource |
EP3598716A4 (en) * | 2018-04-18 | 2020-07-29 | Wangsu Science & Technology Co., Ltd. | Methods for uploading and downloading streaming media resource, distribution system, and streaming media server |
US11316910B2 (en) | 2018-04-18 | 2022-04-26 | Wangsu Science & Technology Co., Ltd. | Method for uploading and downloading streaming media resources, distribution system and streaming media server |
CN109634877A (en) * | 2018-12-07 | 2019-04-16 | 广州市百果园信息技术有限公司 | Flow implementation method, device, equipment and the storage medium of operation |
CN109634877B (en) * | 2018-12-07 | 2023-07-21 | 广州市百果园信息技术有限公司 | Method, device, equipment and storage medium for realizing stream operation |
CN109831689A (en) * | 2019-01-28 | 2019-05-31 | 维沃移动通信有限公司 | A kind of data buffering method and mobile terminal |
CN109831689B (en) * | 2019-01-28 | 2021-07-13 | 维沃移动通信有限公司 | Data buffering method and mobile terminal |
CN111859088A (en) * | 2020-07-23 | 2020-10-30 | 闵雯 | User authority management system and method based on big data |
CN111859088B (en) * | 2020-07-23 | 2021-12-10 | 积木堂(上海)信息技术有限公司 | User authority management system and method based on big data |
CN113139081A (en) * | 2021-04-27 | 2021-07-20 | 中山亿联智能科技有限公司 | Method for reporting and reading user online playing information with high efficiency and low delay |
CN113139081B (en) * | 2021-04-27 | 2023-10-27 | 中山亿联智能科技有限公司 | Method for reporting online playing information of reading user with high efficiency and low delay |
Also Published As
Publication number | Publication date |
---|---|
CN102006368B (en) | 2013-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102006368B (en) | Streaming media audio file play method based on mobile terminal memory card cache technology | |
CN102694831B (en) | Mobile terminal streaming compensation data method and system, content distributing network | |
US9319345B2 (en) | Methods and systems for rapid data acquisition over the internet | |
US9356985B2 (en) | Streaming video to cellular phones | |
CN102710789A (en) | Interaction method, system and device for data between intelligent terminals | |
CN102055718B (en) | Method, device and system for layering request content in http streaming system | |
CN101646076A (en) | Video transmission method in wireless network | |
CN112839238B (en) | Screen projection playing method and device and storage medium | |
CN103905516B (en) | The method and respective server and terminal of sharing data | |
CN102280132A (en) | Online streaming audio play method based on HTTP (hyper text transfer protocol) | |
KR102222375B1 (en) | Method for file management and an electronic device thereof | |
CN104376859B (en) | The method and online music player of a kind of playlist adjust automatically | |
WO2011116558A1 (en) | Method and terminal for processing short message | |
CN108494702B (en) | Transmission control method and apparatus, storage medium, and electronic apparatus | |
CN103561013B (en) | The data distribution systems of Streaming Media | |
CN104641655A (en) | Terminal cache method, terminal and server | |
CN201004651Y (en) | A portable multi-media storage player | |
US20080058973A1 (en) | Music playback system and music playback machine | |
US9794204B2 (en) | Method and apparatus for forwarding multimedia message | |
JP2010087717A (en) | Animation file transmission server, and method of controlling its operation | |
CN104333765A (en) | Processing method and device of video live streams | |
CN110248248A (en) | Webpage video playing method and system | |
WO2017071524A1 (en) | Multimedia resource publishing method and apparatus | |
KR20130134911A (en) | Method for providing content caching service in adapted streaming service and local caching device thereof | |
CN101902624A (en) | Set top box and user terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200605 Address after: Room 502-1, floor 5, building 2, courtyard 10, KEGU 1st Street, Beijing Economic Development Zone, Daxing District, Beijing 100081 Patentee after: Singularity Xinyuan International Technology Development (Beijing) Co.,Ltd. Address before: The 401121 northern New District of Chongqing municipality Mount Huangshan Road 5 south of Mercury Technology Building 1 floor office No. 3 Patentee before: A-MEDIA COMMUNICATION TECH Co.,Ltd. |
|
TR01 | Transfer of patent right |