CN102006368B - 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
- CN102006368B CN102006368B CN201010572650.5A CN201010572650A CN102006368B CN 102006368 B CN102006368 B CN 102006368B CN 201010572650 A CN201010572650 A CN 201010572650A CN 102006368 B CN102006368 B CN 102006368B
- Authority
- CN
- China
- Prior art keywords
- streaming media
- audio file
- media audio
- hurdle
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (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 play method of movement-based terminal memory card cache technology.
Background technology
Along with the development of electronics and the communication technology, the function of mobile terminal device is more and more abundanter, music, take pictures, critical function that the multimedia function such as shooting has become current 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 mobile terminal also are greatly improved, for multimedia mobile communication business, also constantly increasing, such as multimedia message, video calling, palm TV etc., and these multimedia services become the main value-added service of mobile communication carrier gradually.
Follow the continuous renewal upgrading of mobile terminal, communication operation platform, the data encoding transmission technology is development thereupon also, and stream media technology is exactly a kind of emerging data encoding transmission technology.Streaming Media is so a kind of media transport technology, usually by streaming media server by audio frequency, the 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 carries out decoding and play operation packet-by-packet after receiving the data packet stream of streaming media audio file or streaming media video file, from the online play mode that has realized that download limit, limit is play, changed traditional multimedia sharing model of watching afterwards of first downloading, for the user provides the stand-by period few, the multimedia online service that real-time is stronger is experienced.Stream media technology is applied widely in internet and mobile communications network, has realized the online broadcasting of multi-medium data, such as the user, can listen to online music etc. by 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 mobile terminal, caching process to data all adopts the internal memory of processor to complete usually, yet the processor memory capacity of mobile terminal is usually all very limited, the special MTK(full name MediaTek adopted for a lot of home-made cellphones, MediaTek Inc) series processors, memory size is the system resource of preciousness especially.If adopt internal memory to complete the buffer memory work of stream medium data, will reduce the memory cost that mobile terminal is processed other data undoubtedly, cause system processing power to decline to a great extent.Processor memory finite capacity due to mobile terminal, usually not enough 1Mbyte all, the space that can be used in data buffer storage is not enough 500Kbyte especially, and a 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 to complete buffer memory, can only clear up data cached mode on one side by one side buffer memory and realize that streaming media audio file plays online, if the user will listen to the audio file of just now playing again, mobile terminal must carry out the buffer memory broadcasting from the data of streaming media server download streaming media audio file again again, and the multimedia communication service of mobile terminal is normally carried out charging by the number of amount of communication data, this has increased user's data communication expense greatly, moreover, in the situation that the mobile communications network download bandwidth is less, speed of download is slower, also cause the online broadcasting that 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
For above shortcomings in prior art, the object of the present invention is to provide a kind of streaming media audio file play method of movement-based terminal memory card cache technology, solve the existing online playing stream media audio file of mobile terminal and have repeated downloads, problem that the data communication expense is high.
For achieving the above object, the present invention has adopted following technological means: the streaming media audio file play method of movement-based terminal memory card cache technology comprises the following steps:
1) mobile terminal presets buffer area in connected memory card, and formulates cache information table;
2) mobile 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 to corresponding cache path simultaneously and is recorded in cache information table;
3) mobile terminal, according to the cache path recorded in cache information table, reads the data of corresponding streaming media audio file and is play from the buffer area of memory card.
As improvement project, described cache information table consists of the caching record item; Comprise described caching record item hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory records hurdle and preserves the sign hurdle, are respectively used to record chained address, the data total amount value D of streaming media audio file
always, buffer memory data value D and preserve sign;
On the basis of improvement project, described step 2) be specially:
2a) mobile terminal sends the data interaction request of streaming media audio file to streaming media server, after wait streaming media server response request, obtains the chained address of asked streaming media audio file in streaming media server; The mobile terminal enquiry cache information table, if wherein there is not any record of described chained address, add a new caching record item, described chained address is recorded in the hurdle, chained address of described new caching record item, then performs step 2b); If record described chained address in the hurdle, chained address of existing caching record item in cache information table, perform step 2c);
2b) mobile terminal obtains the data of asked streaming media audio file from streaming media server according to described chained address, by 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, mobile terminal is resolved the header file of the streaming media audio file that obtains, obtains the data total amount value D of obtained streaming media audio file
always, the data total amount that is recorded in described new caching record item records in hurdle, and detects during buffer memory that the streaming media audio file data value D of buffer memory in the buffer area of memory card obtain is recorded in described new caching record item records hurdle; Whether simultaneously, by the user, operate selection records and preserves sign in the preservation sign hurdle of described new caching record item;
2c) in the more described existing caching record item of mobile terminal, the data total amount records the numerical value D that hurdle records
alwaysrecord with buffer memory the numerical value D that hurdle records; If D
alwaysd, mobile terminal finds corresponding streaming media audio file according to the cache path of cache path hurdle record in 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 no longer downloads the data of the streaming media audio file of asking.
On the basis of improvement project, described step 3) is specially:
3a) mobile terminal obtains the chained address of the streaming media audio file of asking from streaming media server according to it, inquire the corresponding caching record item that the hurdle, chained address records described chained address from cache information table, find asked streaming media audio file according to the cache path of cache path hurdle record in corresponding caching record item from the buffer area of memory card again, and the broadcasting threshold value D relatively presetted
0record with buffer memory in corresponding caching record item the numerical value D that hurdle records; If D<D
0, wait for; If D>=D
0, the data that start to read described streaming media audio file are play, and the data value D that play of record
broadcast; If the user selects to exit play operation, perform step 3d therebetween);
3b) the data of streaming media audio file described in the complete buffer area of mobile terminal playing, in more corresponding caching record item, the data total amount records the numerical value D that hurdle records
alwaysrecord with buffer memory the numerical value D that hurdle records; If D
always=D, show that this streaming media audio file downloads and finish, and stops playing, and waits for that the user plays or exit play operation again, and when the user selects to exit play operation execution step 3d); If D
alwaysd, and show that this streaming media audio file not yet downloads completely, also need wait for to continue to download, suspend and play, execution step 3c);
3c) mobile terminal is according to the broadcasting threshold value D presetted
0, the data value D that plays
broadcast, the data total amount records the numerical value D of hurdle record in corresponding caching record item
alwaysthe numerical value D that records the hurdle record with buffer memory is judged; If D-D
broadcast<D
0and D
alwaysd, wait for, until D-D
broadcast>=D
0or D
always=D, then continue to read and play the data of this streaming media audio file, then return to step 3b); If the user selects to exit play operation, perform step 3d therebetween);
3d) mobile terminal judges in described corresponding caching record item whether preserve the sign hurdle records the preservation sign; If continue to be stored in the buffer area of memory card by this streaming media audio file; Otherwise, delete this streaming media audio file and corresponding caching record item thereof.
Wherein, the described broadcasting threshold value D presetted
0value be 500kbyte≤D
0≤ 2500kbyte; Perhaps, the described broadcasting threshold value D presetted
0according to the code check of play streaming media audio file and the time threshold T presetted
0determine, i.e. D
0code check * the T of=the streaming media audio file play
0; Described 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 play method of movement-based terminal memory card cache technology of the present invention, the storage area that mobile terminal is presetted in external memory card is as buffer area; Because the memory capacity of memory card is much larger for the internal memory of mobile terminal processor, be generally 2 ~ 16Gbyte, thereby even a plurality of complete streaming media audio file of buffer memory effectively, when need repeating to listen to, the user only need again read the streaming media audio file of buffer memory, without again downloading from streaming media server, saved user's time and data communication expense.
2,, without the memory size that takies mobile terminal processor, do not affect the system processing power of mobile terminal;
3, the technological means maturation of the external memory card of mobile terminal, be widely used, only need when the buffer memory streaming media audio file, pass through its cache path of cache information table record, the data that read the streaming media audio file in buffer memory according to corresponding cache path during broadcasting get final product, easily realize to those skilled in the art, there is very strong operability.
4, as improvement project, cache information table consists of the caching record item, at least comprise the caching record item hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory records hurdle and preserves the sign hurdle, are respectively used to record cache path, the data total amount value D of corresponding streaming media audio file
always, the data value D of buffer memory and user be from the preservation sign arranged, so that mobile terminal carries out Function Extension according to these record data.
5, as a kind of Function Extension of improvement project, mobile terminal, can be according to the data that whether comprise the caching record item that records this chained address in cache information table and judge whether to continue to download this streaming media audio file when streaming media server sends the data interaction request of streaming media audio file and get the chained address of asked streaming media audio file in streaming media server; Perhaps, according to the data total amount value D recorded 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 according to the user and whether add the preservation sign; By these means, reduce as far as possible the amount of communication data of mobile terminal and streaming media server, for the user saves time and the communication spending.
6, as a kind of Function Extension of improvement project, when the mobile terminal playing streaming media audio file, first confirm the data of in buffer area, whether having preserved corresponding streaming media audio file, preferentially read the data playback in buffer area if having, after the data playback of buffer memory is complete, judge whether again to wait for the data that continue to download streaming media audio file, thereby guarantee as much as possible the fluency of playing; And, while at family, selecting to exit play operation, according to preserving the sign hurdle in the caching record item, whether record and preserve sign and judge whether to retain the streaming media audio file of playing before this, can allow in memory card the occupation mode of buffer area more flexible.
The accompanying drawing explanation
The FB(flow block) that Fig. 1 is the inventive method;
The data acquisition FB(flow block) that Fig. 2 is streaming media audio file in improvement project of the present invention;
Fig. 3 be in improvement project of the present invention streaming media audio file read the playing flow block diagram;
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is further described.
For mobile terminal in prior art, generally adopt limited processor memory as data buffer storage, 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, the higher problem of data communication expense that causes the user, the present invention proposes a kind of streaming media audio file play method of movement-based terminal memory card cache technology, the external memory card technology of the current field of mobile terminals maturation of the method utilization, preset certain storage area and be exclusively used in the data buffer storage of streaming media audio file as buffer area in memory card, utilize memory card stores characteristics capacious to carry out complete buffer memory to whole streaming media audio file, when the user need to repeat to listen to the audio file that download online is play before this, mobile terminal just can be directly from buffer area reading out data play, and downloaded without again connecting streaming media server, thereby reduced the amount of communication data between mobile terminal and 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 multimedia handset, the identification path of this memory card in cell phone system is " SDmemory: ".This multimedia handset is applied method of the present invention, memory card " SDmemory: " identification can generate the file of a called after " Music " under path in advance, also generate the sub-folder that a called after " Streaming Media " arranged under " Music " file, and using the memory block of this sub-folder " Streaming Media " as multimedia handset the buffer area to streaming 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, link to certain domain name when the Online Music website of " http://wap.yinyue.com " playing music online, the handling process of mobile phone is as follows:
1) at first mobile phone presets buffer area under memory card identification path, i.e. " SDmemory: Music Streaming Media ", and formulate cache information table is mainly used in recording the store path of the streaming media audio file of online broadcasting;
2) user's mutual request of streaming media server transmission to the Online Music website by mobile phone, the online broadcasting of request " my Chinese heart " this song; The chained address that streaming media server response request rear line mobile phone returns to 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 song again from streaming media server according to this chained address, the audio file data amount is 5Mbyte, and by streaming media audio file " my Chinese heart .wma " be cached in memory card " SDmemory: " in sub-folder " Streaming Media " under " Music " file, simultaneously the cache path of corresponding this streaming media audio file of generation for " SDmemory: Music Streaming Media my Chinese heart .wma " be recorded in cache information table;
3) mobile phone is by playout software during to being play of buffer memory, according to the cache path recorded in cache information table " my Chinese heart .wma of SDmemory: Music Streaming Media ", read the data of streaming media audio file " my Chinese heart .wma " and 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, when obtaining streaming media audio file " my Chinese heart .wma " data, from buffer area, reads it and has obtained and the data of buffer memory are play.
By above-mentioned handling process, multimedia handset is in online playing stream media audio file " my Chinese heart .wma ", complete being cached in buffer area " SDmemory: Music Streaming Media " by this audio file just, when if the user need to play this streaming media audio file again, mobile phone by playout software directly according to cache path " SDmemory: Music Streaming Media my Chinese heart .wma " again read " my Chinese heart .wma " and play and get final product, again by link " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ ", carry out downloading and playing with regard to not needing, thereby for the user has reduced the data communication expense, and again play the mode of calling with local data fully and operated, play fluency and can not be subject to the impact of mobile communications network speed.
Embodiment 2:
Another program of the present invention, step to method described in embodiment 1 is further improved, the user in embodiment 1 of still take adopt be circumscribed with memory card " SDmemory: " the multimedia handset online online to play music be example, the streaming media audio file play method of this improvement project is described; Concrete steps are as follows:
1) at first mobile phone presets buffer area under memory card identification path, i.e. " SDmemory: Music Streaming Media "; Simultaneously, formulate cache information table, described cache information table consists of the caching record item, the caching record item at least includes that hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory records hurdle and preserves the sign hurdle, is respectively used to record chained address, the data total amount value D of streaming media audio file
always, buffer memory data 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 to corresponding cache path simultaneously and is recorded in cache information table; The FB(flow block) of this step as shown in Figure 2, is specially:
2a) user's mutual request of streaming media server transmission to the Online Music website by mobile phone, the online broadcasting of request " my Chinese heart " this song, the chained address that streaming media server response request rear line mobile phone returns to 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, show not preserve from chained address in buffer area before this streaming media audio file " my Chinese heart .wma " that " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ " downloads, therefore add a new caching record item, chained address " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ " is recorded in the hurdle, chained address of described new caching record item, then perform step 2b), if record this chained address in the hurdle, chained address of existing caching record item in cache information table, show to be cached with in the buffer area of memory card the data of corresponding streaming media audio file " my Chinese heart .wma ", perform 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/ ", by 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, mobile 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, the data total amount that is recorded in described new caching record item records in hurdle, and detects during buffer memory that the streaming media audio file data value D of buffer memory in the buffer area of memory card obtain is recorded in described new caching record item records hurdle; Whether simultaneously, by the user, operate selection records and preserves sign in the preservation sign hurdle of described new caching record item; Thus, the caching record item shape that streaming media audio file " my Chinese heart .wma " is corresponding is as shown in table 2:
Table 2
2c) mobile phone relatively in buffer area in the corresponding existing caching record item of streaming media audio file " my Chinese heart .wma " the data total amount record the numerical value D of hurdle record
alwaysrecord with buffer memory the numerical value D that hurdle records; If D
alwaysd, mobile terminal finds corresponding streaming media audio file according to the cache path of cache path hurdle record in corresponding 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 no longer downloads the data of this streaming media audio file.
3) mobile phone is by playout software during to being play of buffer memory, according to the cache path recorded in cache information table " my Chinese heart .wma of SDmemory: Music Streaming Media ", read the data of streaming media audio file " my Chinese heart .wma " and play from the sub-folder of the buffer area " Streaming Media " of memory card; The FB(flow block) of this step as shown in Figure 3, is specially:
3a) mobile phone is according to chained address " my Chinese heart .wma of http://wap.yinyue.com/songs/streaming/ ", (this caching record item may be new the interpolation to inquire the corresponding caching record item that the hurdle, chained address records this chained address from cache information table, existing before may being also), again according to the cache path of cache path hurdle record in corresponding caching record item " SDmemory: Music Streaming Media my Chinese heart .wma " find asked streaming media audio file " my Chinese heart .wma " from the buffer area of memory card, and the broadcasting threshold value D relatively presetted
0record with buffer memory in corresponding caching record item the numerical value D that hurdle records, if D<D
0, the effective played data that shows streaming media audio file in buffer area " my Chinese heart .wma " not yet reaches minimum played data amount and (plays threshold value D
0), wait for and continue downloading data, if D>=D
0, show that effective played data of streaming media audio file in buffer area " my Chinese heart .wma " has reached minimum played data amount, start to read its data and play, and record the data value D play
broadcast, if the user selects to exit play operation, perform step 3d therebetween),
3b) mobile phone plays the data of streaming media audio file in buffer area " my Chinese heart .wma ", two kinds of situations now may be arranged, a kind of is that streaming media audio file " my Chinese heart .wma " in buffer area has not been downloaded very much slowly because of mobile communications network speed, and another kind is that streaming media audio file " my Chinese heart .wma " has been downloaded and finished playing; Therefore, in the more corresponding caching record item of mobile phone, the data total amount records the numerical value D that hurdle records
alwaysrecord with buffer memory the numerical value D that hurdle records; If D
always=D, show that this streaming media audio file downloads and finish, and stops playing, and waits for that the user plays or exit play operation again, and when the user selects to exit play operation execution step 3d); If D
alwaysd, and show that this streaming media audio file not yet downloads completely, also need wait for to continue to download, suspend and play, execution step 3c);
3c) carry out so far step, the data that show streaming media audio file in buffer area " my Chinese heart .wma " are not yet downloaded complete, and mobile phone is according to the broadcasting threshold value D presetted
0, the data value D that plays
broadcast, the data total amount records the numerical value D of hurdle record in corresponding caching record item
alwaysthe numerical value D that records the hurdle record with buffer memory is judged; If D-D
broadcast<D
0and D
alwaysd, show that data that streaming media audio file in buffer area " my Chinese heart .wma " can continue to play not yet reach minimum played data amount and (play threshold value D
0), do not download completely yet, wait for to continue download the data of this streaming media audio file, until D-D
broadcast>=D
0or D
always=D, show that the data that streaming media audio file in buffer area " my Chinese heart .wma " can continue to play have reached minimum played data amount, or downloaded completely, then continues to read and play the data of this streaming media audio file, then returns to step 3b); If the user selects to exit play operation, perform step 3d therebetween);
3d) mobile phone judges in described corresponding caching record item whether preserve the sign hurdle records the preservation sign; If, this streaming media audio file " my Chinese heart .wma " is continued to be stored in the buffer area of memory card, then exit; Otherwise, delete this streaming media audio file and corresponding caching record item thereof, then exit.
By above-mentioned workflow, during the mobile phone streaming media audio file new one of every download, will in cache information table, generate a corresponding caching record item, in order to chained address, the data total amount value D that records this new streaming media audio file
always, buffer memory data value D and selected the preservation sign of record 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, this streaming media audio file necessarily is cached in the buffer area of memory card, and its corresponding caching record item also is retained in cache information table, mobile phone directly just can find this streaming media audio file to be play by corresponding caching record item while playing from buffer area, and without repeated downloads; If it is complete that the streaming media audio file of downloading by same chained address is before this not yet downloaded, in its corresponding caching record item, the data total amount records the numerical value D that hurdle records
alwaysmust be greater than the numerical value D that buffer memory records the hurdle record, now 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, play threshold value D
0; The data volume that has been acquired and has been cached in buffer area when the streaming media audio file of preparing to play meets or exceeds broadcasting threshold value D
0the time, start to read this streaming media audio file and obtain data and play, and the data value D that record has been play simultaneously
broadcast; The data of the streaming media audio file in buffer area are read and play and D
alwaysduring D, showing that this streaming media audio file not yet downloads completely, the data volume that mobile phone waits for downloads in buffer area reaches D
broadcast-D>=D
0or D
alwaysjust continue reading out data during=D and play, thereby avoid crossing when slow in mobile communications network speed, the factor data speed of download is slower than that data read broadcasting speed and the phenomenon that causes playing frequent time-out guarantees the fluency of playing as much as possible; When the user exits broadcasting, whether preserve the sign hurdle in corresponding caching record item records and preserves sign according to streaming media audio file again, whether corresponding operating deletes this streaming media audio file and corresponding caching record item thereof, allows the user can freely select the audio file that oneself is liked to be stored in buffer area.
The broadcasting threshold value D related in said method
0, can in the handling procedure of mobile terminal, preset.Its concrete numerical value of setting can be a fixed value, for example will play threshold value D
0be set as the some fixed values in 500byte ~ 2500byte; Also can be according to the code check of play streaming media audio file and the time threshold T presetted
0determine to play threshold value D
0, i.e. D
0code check * the T of=the streaming media audio file play
0, time threshold T
0can be set as 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, the needs that those skilled in the art fully can be concrete according to it, beyond the above-mentioned scope to playing threshold value D
0carry out value.
Finally explanation is, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not breaking away from aim and the scope of technical solution of the present invention, it all should be encompassed in the middle of claim scope of the present invention.
Claims (5)
1. the streaming media audio file play method of movement-based terminal memory card cache technology, is characterized in that, comprises the following steps:
1) mobile terminal presets buffer area under the identification path of connected memory card, and formulates cache information table; Described cache information table consists of the caching record item; Comprise described caching record item hurdle, chained address, cache path hurdle, data total amount record hurdle, buffer memory records hurdle and preserves the sign hurdle;
2) mobile 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 to corresponding cache path simultaneously and is recorded in cache information table; This step is specially:
2a) mobile terminal sends the data interaction request of streaming media audio file to streaming media server, after wait streaming media server response request, obtains the chained address of asked streaming media audio file in streaming media server; The mobile terminal enquiry cache information table, if wherein there is not any record of described chained address, add a new caching record item, described chained address is recorded in the hurdle, chained address of described new caching record item, then performs step 2b); If record described chained address in the hurdle, chained address of existing caching record item in cache information table, perform step 2c);
2b) mobile terminal obtains the data of asked streaming media audio file from streaming media server according to described chained address, by 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, mobile terminal is resolved the header file of the streaming media audio file that obtains, obtains the data total amount value D of obtained streaming media audio file
always, the data total amount that is recorded in described new caching record item records in hurdle, and detects during buffer memory that the streaming media audio file data value D of buffer memory in the buffer area of memory card obtain is recorded in described new caching record item records hurdle; Whether simultaneously, by the user, operate selection records and preserves sign in the preservation sign hurdle of described new caching record item;
2c) in the more described existing caching record item of mobile terminal, the data total amount records the numerical value D that hurdle records
alwaysrecord with buffer memory the numerical value D that hurdle records; If D
alwaysd, mobile terminal finds corresponding streaming media audio file according to the cache path of cache path hurdle record in 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 no longer downloads the data of the streaming media audio file of asking;
3) mobile terminal, according to the cache path recorded in cache information table, reads the data of corresponding streaming media audio file and is play from the buffer area of memory card.
2. the streaming media audio file play method of movement-based terminal memory card cache technology according to claim 1, is characterized in that, described step 3) is specially:
3a) mobile terminal obtains the chained address of the streaming media audio file of asking from streaming media server according to it, inquire the corresponding caching record item that the hurdle, chained address records described chained address from cache information table, find asked streaming media audio file according to the cache path of cache path hurdle record in corresponding caching record item from the buffer area of memory card again, and the broadcasting threshold value D relatively presetted
0record with buffer memory in corresponding caching record item the numerical value D that hurdle records; If D<D
0, wait for; If D>=D
0, the data that start to read described streaming media audio file are play, and the data value D that play of record
broadcast; If the user selects to exit play operation, perform step 3d therebetween);
3b) the data of streaming media audio file described in the complete buffer area of mobile terminal playing, in more corresponding caching record item, the data total amount records the numerical value D that hurdle records
alwaysrecord with buffer memory the numerical value D that hurdle records; If D
always=D, stop playing, and waits for that the user plays or exit play operation again, and perform step 3d when the user selects to exit play operation); If D
alwaysd, suspend and play, execution step 3c);
3c) mobile terminal is according to the broadcasting threshold value D presetted
0, the data value D that plays
broadcast, the data total amount records the numerical value D of hurdle record in corresponding caching record item
alwaysthe numerical value D that records the hurdle record with buffer memory is judged; If D-D
broadcast<D
0and D
alwaysd, wait for, until D-D
broadcast>=D
0or D
always=D, then continue to read and play the data of this streaming media audio file, then return to step 3b); If the user selects to exit play operation, perform step 3d therebetween);
3d) mobile terminal judges in described corresponding caching record item whether preserve the sign hurdle records the preservation sign; If continue to be stored in the buffer area of memory card by this streaming media audio file; Otherwise, delete this streaming media audio file and corresponding caching record item thereof.
3. the streaming media audio file play method of movement-based terminal memory card cache technology according to claim 2, is characterized in that, the described broadcasting threshold value D presetted
0value be 500kbyte≤D
0≤ 2500kbyte.
4. the streaming media audio file play method of movement-based terminal memory card cache technology according to claim 2, is characterized in that, the described broadcasting threshold value D presetted
0according to the code check of play streaming media audio file and the time threshold T presetted
0determine, i.e. D
0code check * the T of=the streaming media audio file play
0.
5. the streaming media audio file play method of movement-based terminal memory card cache technology according to claim 4, 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 CN102006368A (en) | 2011-04-06 |
CN102006368B true 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) |
Families Citing this family (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 |
CN103794240B (en) * | 2012-11-02 | 2017-07-14 | 腾讯科技(深圳)有限公司 | The storage method and device of online voice data |
CN103347212B (en) * | 2013-06-04 | 2016-04-27 | 青岛海信宽带多媒体技术有限公司 | The playing method and device of VOD program |
CN103873581A (en) * | 2014-03-21 | 2014-06-18 | 天脉聚源(北京)传媒科技有限公司 | Method and device for breakpoint downloading |
CN104954940B (en) * | 2015-06-09 | 2018-03-02 | 广东欧珀移动通信有限公司 | A kind of broadcast information store method, system, playback terminal and control terminal |
CN104954853B (en) * | 2015-06-09 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of broadcast information store method, system, playback terminal and control terminal |
WO2017049488A1 (en) * | 2015-09-23 | 2017-03-30 | 华为技术有限公司 | Cache management method and apparatus |
KR101727272B1 (en) * | 2016-01-19 | 2017-04-17 | 쉬프트정보통신 주식회사 | Method for divisionally transmitting and processing data between client and server in JavaScript language based asynchronous communication environment |
CN108282686B (en) * | 2017-01-18 | 2020-11-20 | 阿里巴巴(中国)有限公司 | Video picture processing method and device and electronic equipment |
CN108415667B (en) * | 2018-01-31 | 2021-06-25 | 惠州华阳通用电子有限公司 | 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 |
CN109634877B (en) * | 2018-12-07 | 2023-07-21 | 广州市百果园信息技术有限公司 | Method, device, equipment and storage medium for realizing stream operation |
CN109831689B (en) * | 2019-01-28 | 2021-07-13 | 维沃移动通信有限公司 | Data buffering method and mobile terminal |
CN113642037A (en) * | 2020-07-23 | 2021-11-12 | 闵雯 | User authority management system based on big data |
CN113139081B (en) * | 2021-04-27 | 2023-10-27 | 中山亿联智能科技有限公司 | Method for reporting online playing information of reading user 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 |
Also Published As
Publication number | Publication date |
---|---|
CN102006368A (en) | 2011-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102006368B (en) | Streaming media audio file play method based on mobile terminal memory card cache technology | |
US8660038B1 (en) | Previewing voicemails using mobile devices | |
CN102694831B (en) | Mobile terminal streaming compensation data method and system, content distributing network | |
CN102571726A (en) | Multimedia data sharing method, system and state judgment server | |
CN104040992A (en) | Media streaming in mobile networks with improved efficiency | |
CN102710789A (en) | Interaction method, system and device for data between intelligent terminals | |
JP2006510310A (en) | Method and system for multimedia message processing service | |
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 | |
CN104639985B (en) | Control method for playing multimedia and system | |
JP2008022070A (en) | Content distribution system, content distribution server, content reproduction terminal, program, content distribution method | |
CN108494702B (en) | Transmission control method and apparatus, storage medium, and electronic apparatus | |
CN103561013B (en) | The data distribution systems of Streaming Media | |
WO2011116558A1 (en) | Method and terminal for processing short message | |
CN1708045B (en) | Portable multimedia storing and playing terminal equipment | |
CN103338263A (en) | Method and system for sharing audio and video files based on players | |
CN104641655A (en) | Terminal cache method, terminal and server | |
US20080058973A1 (en) | Music playback system and music playback machine | |
US9794204B2 (en) | Method and apparatus for forwarding multimedia message | |
CN104333765A (en) | Processing method and device of video live streams | |
JP2010087717A (en) | Animation file transmission server, and method of controlling its operation | |
CN101141639B (en) | Method and device for identifying stream media video frame boundary |
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 | ||
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. |