CN101399691A - Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof - Google Patents

Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof Download PDF

Info

Publication number
CN101399691A
CN101399691A CNA2008101709931A CN200810170993A CN101399691A CN 101399691 A CN101399691 A CN 101399691A CN A2008101709931 A CNA2008101709931 A CN A2008101709931A CN 200810170993 A CN200810170993 A CN 200810170993A CN 101399691 A CN101399691 A CN 101399691A
Authority
CN
China
Prior art keywords
memory field
multimedia
read
progress
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101709931A
Other languages
Chinese (zh)
Other versions
CN101399691B (en
Inventor
王保红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing new sharp Internet Technology Co., Ltd.
Original Assignee
BEIJING SHANLIAN INTERACTIVE NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING SHANLIAN INTERACTIVE NETWORK TECHNOLOGY Co Ltd filed Critical BEIJING SHANLIAN INTERACTIVE NETWORK TECHNOLOGY Co Ltd
Priority to CN2008101709931A priority Critical patent/CN101399691B/en
Publication of CN101399691A publication Critical patent/CN101399691A/en
Application granted granted Critical
Publication of CN101399691B publication Critical patent/CN101399691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a multimedia online playing device used for a mobile terminal, a method thereof and a mobile terminal; the device comprises a download unit, a first memory area which is used for caching the multimedia fragment downloaded by the mobile terminal, a second memory area which is used for introducing in the multimedia data cached in the first memory and leads the multimedia data to be played, a progress control unit which is used for calculating and controlling the reading/writing pointer moving progress of the second memory area, avoiding the un-read data from being covered by the subsequent write-in and avoiding re-reading the read data, a ring-shaped simulation unit which is used for controlling the reading/writing pointer of the second memory area to jump back to the initial position of the second memory area when the reading/writing pointer of the second memory area points to the ending position of the second memory area, and a playing unit. The device and the method avoid the breakpoint and the memory shifting breakpoint when in waiting for the data downloading, thus ensuring the online seamless playing of the multimedia and improving the usage feeling of the user.

Description

The multimedia on-line playing method of portable terminal and device and portable terminal
Technical field
The present invention relates to the mobile communication technology field, relate in particular to the multimedia on-line playing method and the device of portable terminal, also relate to a kind of portable terminal.
Background technology
Along with developing rapidly of mobile communication technology, portable terminal the application that can support become increasingly abundant, comprising support to the online broadcast of multimedia.
The online broadcast of so-called multimedia is meant that portable terminal plays while downloading the data of audio frequency, video or its combination of appointment in the wireless Internet; Because this online multimedia play-back technology need not in advance complete multimedia file to be downloaded in the portable terminal, so the user needn't wait for downloads and finish, and can experience rich in natural resources in the Internet anywhere or anytime.
The implementation of the online play-back technology of above-mentioned multimedia mainly comprises: portable terminal passes through wireless connect technology, such as GPRS (General Packet Radio Service, GPRS), multi-media segment is downloaded to local mobile terminal, call corresponding multimedia playing program interface then and play; Constantly carry out fragment like this on the backstage and download, constantly play at corresponding routine interface and download the fragment of finishing, realize multimedia online broadcast.
But the online play-back technology of above-mentioned multimedia preceding once finish playing after, need carry out emptying of internal memory and writing of next fragment data, can begin then to play next time, just between twice fragment play, can exist and play breakpoint, thereby bring bad use experience to the user; For the non-intelligent mobile terminal that this situation is less for internal memory, disposal ability is relatively poor relatively, show particularly evidently.
In order to optimize use experience, also there is the part client to take two or polylith internal memory to carry out the online broadcast of multimedia at present, promptly carry out the download of multi-media segment successively by two or polylith internal memory, the multimedia playing program interface is called successively and is play above-mentioned internal memory; Like this, after first fragment data that internal memory write obtains to play, multimedia playing program can directly call second internal memory, and first internal memory carried out voluntarily and emptied and the subsequent download operation, travels through next time calling behind all internal memories in order to multimedia playing program.Though this improvement project can effectively be avoided waiting for the breakpoint that produces owing to downloading between the fragment broadcast, but because multimedia playing program need call different internal memories, this internal memory switches the generation that also can cause playing breakpoint, brings bad use experience to the user equally; Similarly, this togglebreakpoint shows particularly evidently for the relatively poor relatively unintelligent terminal of disposal ability.
Summary of the invention
The online broadcast scheme of multimedia that embodiments of the invention aim to provide a kind of portable terminal to overcome the restriction of internal memory and systematic function, realizes multimedia online seamless play, improves user's use experience.
For achieving the above object, embodiments of the invention provide a kind of multimedia of portable terminal online playing device, comprise: download unit, be used for default size according to first memory field, to server segment by segment request multimedia resource, this multi-media segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this multi-media segment; First memory field is connected with download unit, is used to cushion the multi-media segment that portable terminal is downloaded; Second memory field is connected with this first memory field, is used to import the multi-medium data that cushioned first memory field for broadcast; The progress monitoring unit is connected with this second memory field, and the read/write pointer that is used to calculate and control this second memory field moves progress, avoids the follow-up data that covering was not read that write, and, avoid reading again the data that read; The annular analogue unit is connected with the progress monitoring unit with this second memory field, is used for controlling its rebound second memory field original position when the read/write pointer of this second memory field is pointed to the second memory field final position, and this second memory field is modeled as circulating memory; Broadcast unit is connected with this second memory field, is used for the multi-medium data of this second memory field is play by the Multimedia Program playback interface.
Preferable, the online playing device of the multimedia of portable terminal of the present invention can also comprise and empties the unit, be connected with second memory field and progress monitoring unit, be used for after a multimedia resource file finishes, empty second memory field, and with the zero clearing of read/write progress, so that the calculating of progress and control.
Better, first memory field writes data according to the buffering fragment to second memory field, the capacity of this second memory field can so that the each integral body of buffering fragment of this first memory field is written to second memory field, be convenient to carry out progress monitoring greater than the buffer substrate tablet segment length of this first memory field; Wherein, this buffer substrate tablet segment length can be identical with the default size of first memory field, and perhaps the default size of first memory field can cushion the integral multiple of fragment for this.
Concrete, this progress monitoring unit can comprise: read the progress computing module, be used at each multimedia resource, read aggregate scheduling according to this multimedia resource reproduction time and playback rate calculating; Write the progress computing module, be used for, calculate and write aggregate scheduling at each multimedia resource; Read/write progress comparison module is read the progress computing module with this and the progress computing module of writing is connected, and is used for relatively reading aggregate scheduling and writes aggregate scheduling; Read the progress monitoring module, be connected, be used for when the difference that writes aggregate scheduling and read aggregate scheduling arrives first predetermined threshold value, suspending reading of second memory field with read/write progress comparison module; And, write the progress control module, be connected with read/write progress comparison module, be used for equaling the second memory field capacity with the difference that reads aggregate scheduling writing aggregate scheduling, or when reaching second predetermined threshold value, suspend writing of second memory field with the second memory field Capacity Ratio.
Wherein, the progress computing module of reading can comprise the broadcast timer, is used for according to playing timer duration and playing the timer number of starts and determine the multimedia resource reproduction time.
Embodiments of the invention also provide a kind of portable terminal, comprise the Multimedia Program playback interface, are provided with the online playing device of multimedia of aforesaid portable terminal.
Embodiments of the invention also provide a kind of multimedia on-line playing method of portable terminal, first memory field and second memory field are set in portable terminal, and control its rebound second memory field original position when the read/write pointer of second memory field is pointed to the second memory field final position, this second memory field is modeled as circulating memory; When portable terminal during, carry out following steps to server requests one multimedia resource:
Step S1: according to the default size of first memory field, to the server segment by segment multimedia resource of being asked is buffered in first memory field, described multi-media segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this multi-media segment;
Step S2: the write pointer of controlling second memory field moves progress, when follow-up writing can not cover the data that do not read, the multi-media segment in described first memory field is write second memory field;
Step S3: the read pointer of controlling second memory field moves progress, not reading again under the prerequisite of the data that read, the multi-medium data of second memory field is play by the Multimedia Program playback interface.
Preferable, also comprise step S4: after this multimedia resource file finishes, empty this second memory field, and with the zero clearing of read/write progress.
Better, the step that first memory field and second memory field are set also comprises: the buffer substrate tablet segment length of the capacity of second memory field greater than first memory field is set, so that the each integral body of buffering fragment of this first memory field writes this second memory field, be convenient to carry out progress monitoring; Wherein, this buffer substrate tablet segment length can be identical with the default size of first memory field, and perhaps the default size of first memory field can cushion the integral multiple of fragment for this.
Wherein, this step S2 comprises: identification writes aggregate scheduling and reads the difference of always advancing to read whether equal the second memory field capacity, or reach second predetermined threshold value with the second memory field Capacity Ratio, be then to suspend writing of second memory field, otherwise the buffering fragment in first memory field is write second memory field;
This step S3 comprises: identification writes aggregate scheduling and whether arrives first predetermined threshold value with the difference that reads aggregate scheduling, is then to suspend reading of second memory field, otherwise the multi-medium data of second memory field is play by the Multimedia Program playback interface;
Wherein, reading aggregate scheduling can calculate according to this multimedia resource reproduction time and playback rate.
As shown from the above technical solution, embodiments of the invention are by internal memory that separates special download multi-media segment and the internal memory that carries out the multi-medium data broadcast, and the internal memory that will carry out the multi-medium data broadcast is modeled as circulating memory, has following beneficial effect:
1, when an internal memory carries out the multi-medium data broadcast, another piece internal memory can carry out data simultaneously to be downloaded so that offer the internal memory that carries out the multi-medium data broadcast, has therefore avoided the breakpoint that waits the pending data download to be produced;
2, will carry out the internal memory that multi-medium data plays and be modeled as circulating memory, guarantee the play operation that can circulate to same internal memory, avoid the generation of internal memory togglebreakpoint;
3, play avoiding of breakpoint, guaranteed multimedia online seamless play, improved user's use experience.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious by following.
Description of drawings
Fig. 1 is the block diagram of online playing device one embodiment of the multimedia of portable terminal provided by the present invention;
Fig. 2 is for obtaining the example of multimedia resource data in embodiment illustrated in fig. 1;
Fig. 3 carries out the application schematic diagram that the internal memory circular die fits progress monitoring in embodiment illustrated in fig. 1;
Fig. 4 is the schematic diagram of middle progress monitoring unit one embodiment embodiment illustrated in fig. 1;
Fig. 5 is the flow chart of multimedia on-line playing method one embodiment of portable terminal provided by the present invention.
Embodiment
To describe specific embodiments of the invention in detail below.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the present invention.
Main design of the present invention is to separate the internal memory of special download multi-media segment and carries out the internal memory that multi-medium data is play, and, the internal memory that will carry out the multi-medium data broadcast is modeled as circulating memory, thereby solve the online broadcast breakpoint of multimedia problem, be implemented under the limited situation of internal memory and system, the online seamless play of multimedia improves user's use experience.For helping the reader better to understand the present invention, will introduce the online broadcast scheme of multimedia of portable terminal provided by the present invention below in detail.
At first, the online playing device of the multimedia of portable terminal provided by the invention is described.The online playing device of the multimedia of portable terminal is arranged among the portable terminal, carries out request, download and the play operation of multimedia resource according to the actual needs of mobile phone users.
One embodiment as shown in Figure 1, the online playing device 100 of the multimedia of this portable terminal comprises:
Download unit 110, based on the instruction of mobile phone users input, to the corresponding multimedia resource of server requests, and the multimedia resource data returned of reception server;
Concrete, please in conjunction with Fig. 2, the process of obtaining that has shown download unit 110 realization multimedia resource data: download unit 110 is assembled the HTTP request message according to the instruction of mobile phone users by http protocol assembling/parsing module, sends to server by the SOCKET communication module; This HTTP request message of server parses, and return the multimedia resource data of being asked; These multimedia resource data are received by the SOCKET communication module, and resolve by http protocol assembling/parsing module, send to first memory field 120 by download unit then and carry out buffer memory; Because the acquisition process of these multimedia resource data belongs to prior art, therefore repeat no more;
Because the portable terminal internal memory is limited, particularly the internal memory of non-intelligent mobile terminal is very little, so download unit 110 need be according to the default size of first memory field 120, to server segment by segment request multimedia resource; Optionally, this multi-media segment can be identical with the default size of first memory field 120, that is to say, after first memory field 120 empties, just carries out the request of next multi-media segment; Perhaps, the default size of first memory field 120 can be the integral multiple of this multi-media segment, when vacating the space of a multi-media segment size, just carries out the request of next multi-media segment; For fear of frequent server application, preferred version is that multi-media segment can be identical with the default size of first memory field.
Further, the online playing device 100 of the multimedia of this portable terminal also comprises:
First memory field 120 is connected with download unit 110, is used to cushion the multi-media segment that portable terminal is downloaded;
Second memory field 130 is connected with this first memory field 120, is used to import the multi-medium data that cushioned first memory field for broadcast;
Obviously, first memory field 120 and second memory field 130 are equivalent to the existing data of carrying out are simultaneously downloaded and carried out function with an internal memory of multimedia and separate, carry out the buffer memory of multi-medium data specially by first memory field 120, second memory field 130 then is used to support multimedia data playback; Like this, when first memory field 120 after second memory field 130 has write part or all of data, just can continue to ask the download of follow-up multi-media segment, meanwhile, second memory field has been downloaded multimedia data playback, just play and download synchronously and carry out, thus the broadcast breakpoint of effectively having avoided second memory field 130 to produce owing to the download of waiting for follow-up multi-media segment;
It may be noted that, because the portable terminal particularly internal memory of non-intelligent mobile terminal is limited, therefore often can not provide bulk memory to download specially or play, first memory field 120 provided by the present invention and second memory field 130 can adopt that shared drive is multiplexing to be obtained.
Further again, the online playing device 100 of the multimedia of this portable terminal also comprises:
Progress monitoring unit 140, be connected with this second memory field 130, the read/write pointer that is used to calculate and control this second memory field moves progress, avoid the follow-up data that covering was not read that write, and, avoid reading again the data that read, realize the management of data writing progress and playing progress rate;
And,
Annular analogue unit 150, be connected with progress monitoring unit 140 with this second memory field 130, be used for when the read/write pointer of this second memory field 130 is pointed to the second memory field final position, controlling its rebound second memory field original position, this second memory field is modeled as circulating memory, guarantee the play operation that can circulate to same internal memory, avoided the generation of internal memory togglebreakpoint;
Above-mentionedly carry out application that the internal memory circular die fits progress monitoring as shown in Figure 3.
Why will carry out the circular analogue of internal memory, be that what particularly non-intelligent mobile terminal provided all is block internal memory, can't guarantee that refreshing continuously of data writes owing to existing portable terminal; By the introducing of annular analogue unit 150, by the pressure jump back operation of read/write pointer, be modeled as the ring-type internal memory on the function with existing in the bulk, write and play with the data that guarantee to continue, the generation of breakpoint when avoiding internal memory to finish carrying out internal memory to switch;
Further, the above-mentioned progress monitoring unit 140 and the introducing of annular analogue unit 150 are complementary: because the read/write pointer of internal memory all is equivalent to circulatory motion, the possibility that this has just caused data writing progress and playing progress rate to cover each other; If write too fastly, write pointer can surpass the progress of read pointer, promptly follow-up writes the data that covering was not read, and perhaps, if read too fastly, read pointer can surpass the progress of write pointer, and the promptly follow-up content of reading will be the data that read; For fear of the problem that above-mentioned circulating memory caused, need progress monitoring unit 140 to come the control of implementation progress, carry out the read-write protection of circulating memory; Simultaneously, the simulation of circulating memory also needs to judge according to progress monitoring unit 140.
Specifically, progress monitoring unit 140 1 embodiment comprise as shown in Figure 4:
Read progress computing module 141, be used for, read aggregate scheduling according to this multimedia resource reproduction time and playback rate calculating at each multimedia resource;
That is to say, read progress computing module 141 and calculate its total Load Game for each multimedia resource, such as being the multimedia resource of 5M for a total size, if ask the fragment of 200K at every turn, what read so that progress computing module 141 write down is playing progress rate with respect to 5M, such as playing 2.8M, be convenient to overall control like this;
Write progress computing module 142, be used for writing aggregate scheduling at each multimedia resource calculating; The realization that can add up by the situation that writes of concrete account form to first memory field 120;
Progress computing module 141 is similar with reading, and writes that progress computing module 142 calculated, and also is the writing progress with respect to the whole multimedia resource;
Read/write progress comparison module 143 and is read progress computing module 141 and writes progress computing module 142 to be connected, and is used for relatively reading aggregate scheduling and writes aggregate scheduling;
Read progress monitoring module 144, be connected, be used for when writing aggregate scheduling and read the difference arrival predetermined threshold value of aggregate scheduling, suspending reading of second memory field 130 with read/write progress comparison module 143;
It will be understood by those skilled in the art that write aggregate scheduling must be faster than reading aggregate scheduling, otherwise can cause to sense data repeat read, read progress monitoring module 144 and just be used to control this and read aggregate scheduling.General, this first predetermined threshold value can be provided with according to actual needs by the producer of the online playing device 100 of multimedia, can be set to suspend reading of second memory field 130 when aggregate scheduling equals to write aggregate scheduling when reading, certainly, for the sake of security, also can be set to just suspend reading of second memory field 130 when aggregate scheduling and this difference reach first predetermined threshold value less than writing when reading aggregate scheduling, with a capacity is that second memory field 130 of 200K is an example, can be provided with when reading aggregate scheduling when writing aggregate scheduling and be 10K, just suspend reading of second memory field 130, this moment, first predetermined threshold value was 10K.
Write progress control module 145, be connected with read/write progress comparison module 143, be used for writing aggregate scheduling and reading the difference of always advancing to read and equal second memory field, 130 capacity, or when reaching second predetermined threshold value, suspend writing of second memory field 130 with second memory field, 130 Capacity Ratio;
Those skilled in the art are appreciated that equally, to fast mistake read aggregate scheduling though write aggregate scheduling, for circulating memory, if it is too fast to write aggregate scheduling, when it has arrived the circulating memory population size with the difference that reads aggregate scheduling, will cause the not covering of reading of data; For fear of this problem, write the control that progress control module 145 is used to write aggregate scheduling.General, this second predetermined threshold value can be provided with according to actual needs by the producer of the online playing device 100 of multimedia, can be set to when the difference that writes aggregate scheduling and read aggregate scheduling equals the capacity of second memory field 130, and time-out writes; But in actual applications, the data of first memory field 120 often are not that form with byte-by-byte writes second memory field 130, but one of a buffering fragment cushions writing of fragment, in this case, for the sake of security, also can be set to just suspend writing of second memory field 130 when this difference and second memory field, 130 Capacity Ratio reach second predetermined threshold value, this second predetermined threshold value often is equal to or greater than the buffering clip size that writes this second memory field 130.With a capacity is that second memory field 130 of 200K is an example, if the buffering clip size that writes is 50K at every turn, so when writing aggregate scheduling and equal 150K with the difference that reads aggregate scheduling or arrive certain value less than 150K, will suspend and write, otherwise the follow-up data that write might part cover the data that do not read.
Wherein, read progress computing module 141 and can comprise broadcast timer (not shown), be used for determining the multimedia resource reproduction time with the broadcast timer number of starts, thereby read aggregate scheduling, realize timing broadcast management based on playing timer calculating according to playing timer duration.
Corresponding to progress monitoring provided by the invention unit 140, annular analogue unit 150 realizes that according to the progress monitoring of progress monitoring unit 140 the circular die plan is specially: length and read/write progress according to second memory field 130 determine whether that second memory field 130 is full, being whether read/write pointer points to the second memory field final position, is then to force read/write pointer rebound internal memory original position.
Further, the online playing device 100 of the multimedia of this portable terminal also comprises:
Broadcast unit 160 is connected with second memory field 130, is used for the multi-medium data of second memory field 130 is play by the Multimedia Program playback interface; In a single day such first memory field 120 writes the data of respective segments to second memory field 130, just goes for and asks next fragment desired data, and circulation finishes up to playing.
As can be seen, the online playing device 100 of the multimedia of the above-mentioned portable terminal that provides is by the simulation circulating memory and carry out the playing progress rate management, can realize portable terminal especially non-intelligent mobile terminal under the limited situation of internal memory and system, based on the online seamless play of the multimedia of wireless Internet, improve user's use experience, filled up the market vacancy.
For the foregoing description,,, not necessarily point to initial position though the read/write pointer of second memory field 130 can be pointed to same position at the beginning of this multimedia resource file download though all carry out progress monitoring separately for each multimedia resource file; That is to say that back one multimedia resource file covers multimedia resource file formerly often while downloading.This also just means, when carrying out the progress monitoring of multimedia resource file, need to consider last multimedia file play finish after, in second memory field 130 position of read/write pointer.
As an improved plan, the online playing device 100 of the multimedia of portable terminal provided by the present invention can further comprise and empties unit 170, be connected with second memory field 130 and progress monitoring unit 140, be used for after a multimedia resource file finishes, empty second memory field, and with the zero clearing of read/write progress, just read/write pointer will be pointed to the original position of second memory field 130 again, be convenient to carry out the judgement of progress monitoring and pointer pressure rebound.
In the online playing device 100 of the multimedia of the above-mentioned portable terminal that provides, do not limit first memory field 120 and carry out the mode that data write to second memory field 130, promptly first memory field 120 can allow to write that fashionable to be unit at any time with the byte write second memory field 130 with the multi-medium data of buffering in second memory field 130, when the corresponding space of vacating is enough to support next time multi-media segment request, continue to carry out download request next time by download unit 110.
In these cases, carry out the writing progress control of second memory field 130, must keep writing monitoring, technical difficult realization, generally the non-intelligent mobile terminal satisfied required thus overhead of also being good at what first memory field 120 continued.
Therefore, as another improvement project, first memory field 120 can with the buffering fragment the mode segment by segment write multi-medium data to second memory field 130, wherein, the capacity of second memory field 130 can be greater than the buffer substrate tablet segment length of first memory field 120, so that the each integral body of buffering fragment of first memory field 120 writes second memory field 130; Wherein, the buffer substrate tablet segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this buffering fragment.
For instance, capacity when first memory field 120 is 30K, the capacity of second memory field 130 is 100K, when the buffer substrate tablet segment length also is 30K, if second memory field 130 allows to write, first memory field 120 is data of one-time write 30K so, at this moment, these first memory field, 120 corresponding emptying, then download unit 110 can continue to the next multi-media segment of server application.
In this case, write progress computing module 142 in the progress monitoring unit 140 and can carry out writing progress easily and calculate, concrete scheme is: the indegree of writing that at every turn writes the buffer substrate tablet segment length of second memory field 130 and first memory field 120 according to first memory field 120 calculates and writes aggregate scheduling.
Accordingly, the present invention also provides a kind of portable terminal, and it is provided with the Multimedia Program playback interface, also is provided with the online playing device of multimedia of above-mentioned portable terminal, and the user can be by the online seamless content of multimedia of watching of such portable terminal.
Below the multimedia on-line playing method of portable terminal provided by the invention is described, one embodiment as shown in Figure 5.
In order to guarantee the realization of above-mentioned multimedia on-line playing method, at first first memory field and second memory field need be set in portable terminal, wherein first memory field is used for the multi-media segment that buffer memory is downloaded, and when second memory field allows to write byte-by-byte or segment by segment multi-medium data is write second memory field, and ask once more when allowing next multi-media segment in the space, with the breakpoint of avoiding causing because wait for fragment to download in the multimedia resource playing process; Wherein, this multi-media segment can be identical with the default size of first memory field, after first memory field empties, just carries out the request of next fragment multimedia resource; Perhaps, the default size of first memory field can be the integral multiple of this multi-media segment, when vacating the space of a multi-media segment size, just carries out the request of next fragment multimedia resource; For fear of frequent server application, preferred version is that the multimedia resource fragment is identical with the default size of first memory field;
Preferable, if first memory field is that unit writes multi-medium data to second memory field with the buffering fragment, the above-mentioned step that first memory field and second memory field are set also comprises: the buffer substrate tablet segment length that the capacity of this second memory field writes to second memory field greater than first memory field is set, so that the each integral body of buffering fragment of this first memory field writes this second memory field; Wherein, this buffer substrate tablet segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this buffering fragment;
It may be noted that above-mentioned said multi-media segment is different with the buffering fragment, the former is meant the multimedia resource fragment of at every turn asking to server, is cushioned by first memory field; The latter then is the data unit that the first memory field buffered data writes second memory field at every turn; The two can equate, that is to say that each first memory field when second memory field writes a buffering fragment, will correspondingly vacate certain space, allows to carry out multi-media segment request next time; The two also can be unequal, such as consider portable terminal particularly non-intelligent mobile terminal the memory size that can support limited, might be difficult to more a lot greatly in second memory field than first memory field, then for fear of the interference of read/write, first memory field can be to the data segmentation again that writes second memory field, every buffering fragment comprises less byte with respect to multi-media segment, like this, repeatedly writes the server application that could allow behind second memory field next time possibly;
Secondly, to carry out the annular simulation to second memory field, when pointing to the second memory field final position, the read/write pointer that concrete processing mode is included in second memory field controls its rebound second memory field original position, carry out continuously so that read/write can remain in the same internal memory, avoided because internal memory switches the breakpoint that produces;
Like this, when portable terminal during, carry out following steps to server requests one multimedia resource:
Step S1: the default size according to first memory field is buffered to the multimedia resource of being asked in first memory field to the server segment by segment;
Step S2: the write pointer of controlling second memory field moves progress, when follow-up writing can not cover the data that do not read, the multi-medium data in first memory field is write second memory field;
Concrete, realize that the write pointer of second memory field moves progress monitoring, must keep the monitoring and the calculating of progress that the second memory field read/write pointer is moved;
Wherein, the write pointer of second memory field moves progress and can calculate by monitoring first memory field, also can be in first memory field write under the situation of second memory field by the buffering fragment, the indegree of writing that at every turn writes the buffer substrate tablet segment length of second memory field and first memory field according to first memory field calculates and writes aggregate scheduling;
The read pointer of second memory field moves progress and can calculate according to this multimedia resource reproduction time and playback rate, for a multimedia resource, can be called as and read aggregate scheduling.
Because writing progress is too fast, may cause the follow-up data that covering was not read that write, therefore to carry out corresponding write protection, this write protection just is based on and actual write aggregate scheduling and read that aggregate scheduling carries out, comprise: identification writes aggregate scheduling and reads the difference of always advancing to read whether equal the second memory field capacity, or reach second predetermined threshold value with the described second memory field Capacity Ratio, be then to suspend writing of second memory field, otherwise the buffering fragment in described first memory field is write second memory field;
In simple terms, before writing data, all to judge whether exactly to allow to write,, write up to allowing if do not allow just to enter wait state to second memory field.
Step S3: the read pointer of controlling second memory field moves progress, not reading again under the prerequisite of the data that read, the multi-medium data of described second memory field is play by the Multimedia Program playback interface.
Because reading speed is too fast, may cause to reading of data repeat read, therefore to carry out corresponding protection equally, this protection is based on equally and actual write aggregate scheduling and read that aggregate scheduling carries out, comprise: identification writes aggregate scheduling and whether arrives first predetermined threshold value with the difference that reads aggregate scheduling, be then to suspend reading of second memory field, otherwise the multi-medium data of described second memory field is play by the Multimedia Program playback interface;
In simple terms, find that exactly download progress can't satisfy playing progress rate, wait for, put in place up to data download and proceed again to play in order to guarantee to play to suspend safely to play.
By above-mentioned steps SA1~SA3 as can be seen, separate and the circulating memory simulation by memory function, avoid the generation of the online broadcast breakpoint of multimedia, realized the particularly online seamless play of multimedia of non-intelligent mobile terminal of portable terminal, improved user's use experience.
Further, though all carry out progress monitoring separately,, not necessarily point to initial position though the read/write pointer of second memory field can be pointed to same position at the beginning of this multimedia resource file download for each multimedia resource file; That is to say that back one multimedia resource file covers multimedia resource file formerly often while downloading.This just means that also when carrying out the progress monitoring of multimedia resource file, after needs considered that last multimedia file is play end, in second memory field position of read/write pointer.
Therefore preferable, also comprise step S4: after this multimedia resource file finishes, empty second memory field, and with the zero clearing of read/write progress, make the read/write pointer of second memory field all point to the original position of second memory field, the judgement of being convenient to carry out process control and forcing rebound.
Though described the present invention with reference to several exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the present invention can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (10)

1. the online playing device of the multimedia of a portable terminal is characterized in that, comprising:
Download unit, be used for default size according to first memory field, to server segment by segment request multimedia resource, described multi-media segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this multi-media segment;
First memory field is connected with described download unit, is used to cushion the multi-media segment that portable terminal is downloaded;
Second memory field is connected with described first memory field, is used to import the multi-medium data that cushioned first memory field for broadcast;
The progress monitoring unit is connected with described second memory field, and the read/write pointer that is used to calculate and control described second memory field moves progress, avoids the follow-up data that covering was not read that write, and, avoid reading again the data that read;
The annular analogue unit is connected with the progress monitoring unit with described second memory field, is used for controlling when the read/write pointer of described second memory field is pointed to the second memory field final position its rebound second memory field original position;
Broadcast unit is connected with described second memory field, is used for the multi-medium data of described second memory field is play by the Multimedia Program playback interface.
2. the online playing device of the multimedia of portable terminal according to claim 1, it is characterized in that, also comprise and empty the unit, be connected with described second memory field and progress monitoring unit, be used for after a multimedia resource file finishes, empty described second memory field, and with the zero clearing of read/write progress.
3. the online playing device of the multimedia of portable terminal according to claim 1, it is characterized in that, the capacity of described second memory field is greater than the buffer substrate tablet segment length of described first memory field, so that the each integral body of buffering fragment of described first memory field writes described second memory field; Wherein, described buffer substrate tablet segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this buffering fragment.
4. according to the online playing device of multimedia of the arbitrary described portable terminal of claim 1-3, it is characterized in that described progress monitoring unit comprises:
Read the progress computing module, be used for, read aggregate scheduling according to this multimedia resource reproduction time and playback rate calculating at each multimedia resource;
Write the progress computing module, be used for, calculate and write aggregate scheduling at each multimedia resource;
Read/write progress comparison module is read the progress computing module and the described progress computing module of writing is connected with described, is used for more describedly reading aggregate scheduling and writing aggregate scheduling;
Read the progress monitoring module, be connected, be used for when the difference that writes aggregate scheduling and read aggregate scheduling arrives first predetermined threshold value, suspending reading of second memory field with described read/write progress comparison module;
And
Write the progress control module, be connected with described read/write progress comparison module, be used for writing aggregate scheduling and reading the difference of always advancing to read and equal the described second memory field capacity, or when reaching second predetermined threshold value, suspend writing of second memory field with the described second memory field Capacity Ratio.
5. the online playing device of the multimedia of portable terminal according to claim 4, it is characterized in that, the described progress computing module of reading comprises the broadcast timer, is used for according to playing timer duration and playing the timer number of starts and determine the multimedia resource reproduction time.
6. a portable terminal comprises the Multimedia Program playback interface, it is characterized in that, is provided with the online playing device of multimedia as the arbitrary described portable terminal of claim 1-5.
7. the multimedia on-line playing method of a portable terminal, it is characterized in that, first memory field and second memory field are set, and the read/write pointer of described second memory field is controlled its rebound second memory field original position when pointing to the second memory field final position in described portable terminal; When portable terminal during, carry out following steps to server requests one multimedia resource:
Step S1: according to the default size of first memory field, to the server segment by segment multimedia resource of being asked is buffered in first memory field, described multi-media segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this multi-media segment;
Step S2: the write pointer of controlling second memory field moves progress, when follow-up writing can not cover the data that do not read, the multi-medium data in described first memory field is write described second memory field;
Step S3: the read pointer of controlling second memory field moves progress, not reading again under the prerequisite of the data that read, the multi-medium data of described second memory field is play by the Multimedia Program playback interface.
8. the multimedia on-line playing method of portable terminal according to claim 7 is characterized in that, also comprises step S4: after this multimedia resource file finishes, empty described second memory field, and with the zero clearing of read/write progress.
9. according to the multimedia on-line playing method of the described described portable terminal of claim 7, it is characterized in that, the described step that first memory field and second memory field are set also comprises: the buffer substrate tablet segment length of the capacity of described second memory field greater than described first memory field is set, so that the each integral body of buffering fragment of described first memory field writes described second memory field; Wherein, described buffer substrate tablet segment length is identical with the default size of first memory field, and perhaps the default size of first memory field is the integral multiple of this buffering fragment.
10. according to the multimedia on-line playing method of the arbitrary described portable terminal of claim 7-9, it is characterized in that, described step S2 comprises: identification writes aggregate scheduling and reads the difference of always advancing to read whether equal the described second memory field capacity, or reach second predetermined threshold value with the described second memory field Capacity Ratio, be then to suspend writing of second memory field, otherwise the buffering fragment in described first memory field is write described second memory field;
Described step S3 comprises: identification writes aggregate scheduling and whether arrives first predetermined threshold value with the difference that reads aggregate scheduling, is then to suspend reading of second memory field, otherwise the multi-medium data of described second memory field is play by the Multimedia Program playback interface;
Wherein, reading aggregate scheduling calculates according to this multimedia resource reproduction time and playback rate.
CN2008101709931A 2008-10-21 2008-10-21 Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof Active CN101399691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101709931A CN101399691B (en) 2008-10-21 2008-10-21 Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101709931A CN101399691B (en) 2008-10-21 2008-10-21 Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof

Publications (2)

Publication Number Publication Date
CN101399691A true CN101399691A (en) 2009-04-01
CN101399691B CN101399691B (en) 2011-09-07

Family

ID=40517971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101709931A Active CN101399691B (en) 2008-10-21 2008-10-21 Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof

Country Status (1)

Country Link
CN (1) CN101399691B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708207A (en) * 2012-05-23 2012-10-03 深圳市龙视传媒有限公司 Method and device for receiving processing data and video server
CN103365782A (en) * 2012-03-30 2013-10-23 上海申通地铁集团有限公司 Memory management method
CN103716706A (en) * 2013-12-06 2014-04-09 乐视致新电子科技(天津)有限公司 Method and device for synchronizing playing rate of progress and display rate of progress of multimedia file
CN103974013A (en) * 2013-01-24 2014-08-06 杭州海康威视数字技术股份有限公司 Method for playing back video recording and video recording device
CN104301797A (en) * 2014-10-14 2015-01-21 百度在线网络技术(北京)有限公司 Method and device for controlling playing resources in mobile terminal browser
CN104811789A (en) * 2014-01-24 2015-07-29 宇龙计算机通信科技(深圳)有限公司 Method and device for managing multimedia files
CN105338022A (en) * 2014-07-07 2016-02-17 深圳市云帆世纪科技有限公司 P2P (peer-to-peer) based data transmission method and P2P based data transmission system
CN109429076A (en) * 2017-08-31 2019-03-05 杭州海康威视系统技术有限公司 The broadcasting Caton processing method and device of multi-medium data
CN109889656A (en) * 2018-12-29 2019-06-14 深圳豪客互联网有限公司 A kind of method for reading data, device, equipment and storage medium
CN111327941A (en) * 2020-03-10 2020-06-23 腾讯科技(深圳)有限公司 Offline video playing method, device, equipment and medium
CN111966498A (en) * 2020-08-27 2020-11-20 南京电研电力自动化股份有限公司 Power distribution room Internet of things gateway data rapid processing method and system and storage medium
CN113848454A (en) * 2021-09-09 2021-12-28 海光信息技术股份有限公司 Chip testing method and chip testing machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1370009A (en) * 2001-02-13 2002-09-18 上海大正(集团)有限公司 System and method for video broadcast on demand over unidirectional cable TV network
CN101127989A (en) * 2007-09-11 2008-02-20 中兴通讯股份有限公司 A method for supporting hypertext transmission stream media service of mobile phone

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365782A (en) * 2012-03-30 2013-10-23 上海申通地铁集团有限公司 Memory management method
CN102708207B (en) * 2012-05-23 2015-06-03 深圳市同洲电子股份有限公司 Method and device for receiving processing data and video server
CN102708207A (en) * 2012-05-23 2012-10-03 深圳市龙视传媒有限公司 Method and device for receiving processing data and video server
CN103974013A (en) * 2013-01-24 2014-08-06 杭州海康威视数字技术股份有限公司 Method for playing back video recording and video recording device
CN103716706A (en) * 2013-12-06 2014-04-09 乐视致新电子科技(天津)有限公司 Method and device for synchronizing playing rate of progress and display rate of progress of multimedia file
CN104811789A (en) * 2014-01-24 2015-07-29 宇龙计算机通信科技(深圳)有限公司 Method and device for managing multimedia files
CN104811789B (en) * 2014-01-24 2019-03-22 宇龙计算机通信科技(深圳)有限公司 The management method and device of multimedia file
CN105338022B (en) * 2014-07-07 2019-04-23 深圳市云帆世纪科技有限公司 Data transmission method and system based on P2P
CN105338022A (en) * 2014-07-07 2016-02-17 深圳市云帆世纪科技有限公司 P2P (peer-to-peer) based data transmission method and P2P based data transmission system
CN104301797A (en) * 2014-10-14 2015-01-21 百度在线网络技术(北京)有限公司 Method and device for controlling playing resources in mobile terminal browser
CN109429076A (en) * 2017-08-31 2019-03-05 杭州海康威视系统技术有限公司 The broadcasting Caton processing method and device of multi-medium data
CN109889656A (en) * 2018-12-29 2019-06-14 深圳豪客互联网有限公司 A kind of method for reading data, device, equipment and storage medium
CN109889656B (en) * 2018-12-29 2021-04-20 深圳Tcl新技术有限公司 Data reading method, device, equipment and storage medium
CN111327941A (en) * 2020-03-10 2020-06-23 腾讯科技(深圳)有限公司 Offline video playing method, device, equipment and medium
CN111327941B (en) * 2020-03-10 2022-07-08 腾讯科技(深圳)有限公司 Offline video playing method, device, equipment and medium
CN111966498A (en) * 2020-08-27 2020-11-20 南京电研电力自动化股份有限公司 Power distribution room Internet of things gateway data rapid processing method and system and storage medium
CN111966498B (en) * 2020-08-27 2023-08-25 南京电研电力自动化股份有限公司 Rapid processing method, system and storage medium for gateway data of Internet of things in power distribution room
CN113848454A (en) * 2021-09-09 2021-12-28 海光信息技术股份有限公司 Chip testing method and chip testing machine

Also Published As

Publication number Publication date
CN101399691B (en) 2011-09-07

Similar Documents

Publication Publication Date Title
CN101399691B (en) Multimedia on-line playing method, device for mobile terminal and mobile terminal thereof
US8615630B2 (en) Systems and methods for managing data storage
US9973806B2 (en) Method and an electronic device for playback of video
CN101127989A (en) A method for supporting hypertext transmission stream media service of mobile phone
CN103596059A (en) Intelligent-television media player and playing progress adjusting method thereof, and intelligent television
CN103533437A (en) Method and device for switching channels of smart television
KR20070020727A (en) Apparatus and method of using pseudo streaming download with partially progressive download in terminal
CN102137279A (en) Method for realizing disconnection continuous playing of on-line video of portable electronic equipment
CA2908718C (en) System and method for streaming a media file from a server to a client device
CN112839238B (en) Screen projection playing method and device and storage medium
CN101540826A (en) Multi-media device for TV set and TV set
US9055272B2 (en) Moving image reproduction apparatus, information processing apparatus, and moving image reproduction method
CN1972441A (en) Method of stream media storage and service
CN108055554A (en) Video broadcasting method, TV, server and computer readable storage medium
KR20090001707A (en) System and method for playing multimedia contents, device for playing multimedia contents and program recording medium
CN105025343A (en) Caching method and device of TS video
US20080058973A1 (en) Music playback system and music playback machine
CN100405340C (en) Flow data processing device
CN103945260A (en) Streaming media on-demand editing system and on-demand method
JPH09130749A (en) Decoding system for dynamic image data
JP2003209823A (en) Stream transmission/reception system, and stream transmission/reception method
CN112437352A (en) Video merging and playing method and device
CN104703024A (en) A video playing method and terminal apparatus
US9240189B2 (en) Real-time scheduling method with reduced input/output latency and improved tolerance for variable processing time
CN101668180A (en) Method and device for controlling program playback of mobile streaming media

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: 20181011

Address after: 100044 02, 10 floor, Tengda building, 168 West Gate Street, Haidian District, Beijing.

Patentee after: Beijing new sharp Internet Technology Co., Ltd.

Address before: 100176 C207 room 14, Zhonghe street, Beijing economic and Technological Development Zone, Beijing

Patentee before: Beijing Shanlian Interactive Network Technology Co., Ltd.