[go: up one dir, main page]

CN101695131A - Method and device for playing online audio/video by mobile terminal - Google Patents

Method and device for playing online audio/video by mobile terminal Download PDF

Info

Publication number
CN101695131A
CN101695131A CN200910179997A CN200910179997A CN101695131A CN 101695131 A CN101695131 A CN 101695131A CN 200910179997 A CN200910179997 A CN 200910179997A CN 200910179997 A CN200910179997 A CN 200910179997A CN 101695131 A CN101695131 A CN 101695131A
Authority
CN
China
Prior art keywords
audio
video data
playing
area
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910179997A
Other languages
Chinese (zh)
Inventor
张宗楚
韦晓飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju 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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN200910179997A priority Critical patent/CN101695131A/en
Publication of CN101695131A publication Critical patent/CN101695131A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a method and a device for playing an online audio/video by a mobile terminal. The method comprises the following steps: firstly, dividing a buffer area of the mobile terminal into two areas; secondly, downloading audio/video data and storing the audio/video data in the two areas; thirdly, playing the audio/video data according to a storing sequence, clearing one area when the audio/video data in the area finishes and continuously downloading audio/video data to the area. The device comprises a dividing unit, a downloading and storing unit, a playing unit and a processing unit. In the invention, by dividing the buffer area into two areas, the audio/video data can be played and continuously download at the same time, and the play of the audio/video data can not be influenced while clearing the buffer area, thereby the efficiency of downloading and the using experience of the user are both improved.

Description

Method and device for playing online audio and video by mobile terminal
Technical Field
The invention relates to the field of mobile terminal application, in particular to a method and a device for playing online audio and video by a mobile terminal.
Background
At present, with the continuous development of mobile communication technology, mobile terminals have been deeply inserted into the lives of people, mobile communication has also become the most widely used communication mode, and value-added services relying on mobile communication have also been developed. The mobile terminal referred to herein is a small handheld mobile communication device having a wireless communication function, such as a mobile phone or a pda (personal Digital assistant).
Taking a mobile phone as an example, common mobile phone value-added services are classified into short messages, voice, WAP (Wireless Application Protocol), and the like, wherein the WAP service can best meet various Application requirements of users, and is therefore popular with users. The user can enjoy various multimedia resource downloading services including novels, pictures, music and the like by accessing the website of the service provider. When the multimedia video is played online, data needs to be downloaded to the mobile phone end cache first, and after the mobile phone cache is full of data, the cache needs to be emptied, so that the data can be downloaded continuously.
In the prior art, the mobile phone cache is regarded as a whole area by the system to download data and play. The technical scheme has the defects that if the cache size is not integral multiple of the playing speed, the video playing is not consistent, and the problems of frame skipping and the like are caused. For example, the buffer size is 60K, the playback speed is 8K/sec, and the buffer remaining data is 4K after 7 seconds of playback. Since the cache is still occupied by the data at this time, the mobile phone end cannot continue downloading the data from the server, and then the processing mode of the system is no matter that the remaining 4K data is discarded or the remaining 4K data (less than 1 second) is played, the problem of inconsistent video playing is caused, and the use experience of the user is influenced. Meanwhile, during the period of playing the cache data, data downloading is not continued, which wastes downloading time, and if the transmission speed of the network data is reduced at this time, the playing effect is further affected.
Disclosure of Invention
The invention aims to provide a method and a device for playing online audio and video by a mobile terminal, which can continuously download and play data during the period of playing cache data and clearing a buffer zone.
In order to achieve the above object, the present invention provides a method for playing an online audio/video by a mobile terminal, comprising:
step 1: dividing a buffer area of a mobile terminal into two areas;
step 2: downloading audio and video data and storing the audio and video data in the area;
and step 3: and playing the audio and video data according to the stored sequence, emptying one area when the audio and video data in the area is played, and continuously downloading the audio and video data to the area.
Preferably, the method further comprises the step of detecting whether the playing condition is met or not in a timing manner in the process of downloading the audio and video data, and if so, playing the audio and video data; if not, audio and video data are continuously downloaded.
As a preferred aspect of the foregoing technical solution, the playing conditions are: the amount of the downloaded audio and video data minus the amount of the played audio and video data is greater than a predetermined value.
The invention also provides a device for playing the online audio and video by the mobile terminal, which comprises the following components:
a dividing unit for dividing a buffer of the mobile terminal into two areas;
the downloading and storing unit is used for downloading the audio and video data and storing the audio and video data in the area;
the playing unit is used for playing the audio and video data according to the sequence stored by the downloading and storing unit;
and the processing unit is used for emptying one area when the audio and video data in the area is played completely, and informing the downloading and storing unit to continue downloading the audio and video data and store the audio and video data in the area.
Preferably, the device further comprises a timing detection unit for detecting whether the playing condition is met in a timing manner in the process of downloading the audio/video data.
As a preferred aspect of the foregoing technical solution, the playing conditions are: the amount of the downloaded audio and video data minus the amount of the played audio and video data is greater than a predetermined value.
According to the invention, the buffer area is divided into two areas, so that the audio and video data can be continuously downloaded while being played, and the playing of the audio and video data cannot be influenced while the buffer area is emptied, thereby improving the downloading efficiency and improving the use experience of a user. The present invention will be described in detail with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic flowchart of a first preferred embodiment of a method for playing an online audio/video by a mobile terminal according to the present invention;
fig. 2 is a schematic diagram of a first preferred embodiment of a device for playing an online audio/video by a mobile terminal according to the present invention.
Detailed Description
A first preferred embodiment of the method for playing an online audio/video by a mobile terminal provided by the present invention is shown in fig. 1, when a user selects to start playing an online audio/video:
step 1: dividing a buffer area of a mobile terminal into an area A and an area B;
step 2: downloading audio and video data, continuously storing the downloaded audio and video data to an area A, and storing the downloaded audio and video data to an area B after the area A is fully stored;
and step 3: and reading and playing the audio and video data according to the stored sequence, namely reading and playing the audio and video data from the area A, when the audio and video data in the area A are played completely, continuously reading and playing the audio and video data from the area B, and simultaneously emptying the area A and continuously downloading the audio and video data to the emptied area A. And when the audio and video data in the area B are played, continuously reading and playing the audio and video data from the area A, simultaneously emptying the area B, and continuously downloading the audio and video data to the emptied area B. By circulating the above steps, the audio and video can still keep playing continuously while the area is emptied.
The second preferred embodiment of the method for playing the online audio/video by the mobile terminal is improved on the basis of the first preferred embodiment, a step of timing detection is added in the process of downloading the audio/video data in the step 2 and the step 3, whether the playing condition is met is detected in timing, and if so, the audio/video data is played while the audio/video data is continuously downloaded; if not, audio and video data are continuously downloaded.
Wherein, the playing conditions are as follows: the amount of the downloaded audio and video data minus the amount of the played audio and video data is greater than a predetermined value.
The improvement has the advantage of ensuring that the user can watch the fluency of the online played audio and video.
A first preferred embodiment of a device for playing an online audio/video by a mobile terminal according to the present invention is shown in fig. 2, and includes: a dividing unit 101, a downloading and storing unit 102, a playing unit 103 and a processing unit 104; wherein,
the dividing unit 101 is configured to divide a buffer of the mobile terminal into two areas;
the downloading and storing unit 102 is used for downloading the audio and video data played online from the server according to the selection of the user and storing the audio and video data into the area;
the playing unit 103 is used for reading and playing the audio and video data according to the sequence stored by the downloading and storing unit;
the processing unit 104 is configured to empty a region when the audio/video data of the region is completely played, and call the downloading and storing unit 102 to continue downloading the audio/video data to the region.
The first preferred embodiment of the device for playing the online audio and video by the mobile terminal is improved on the basis of the first preferred embodiment, and the device further comprises a timing detection unit, a playing unit and a control unit, wherein the timing detection unit is used for regularly detecting whether a playing condition is met or not in the process of downloading audio and video data, and if the playing condition is met, the playing unit 103 plays the audio and video data while continuously downloading the audio and video data; and if the playing condition is not met, continuously downloading the audio and video data.
The playing conditions are as follows: the amount of the downloaded audio and video data minus the amount of the played audio and video data is greater than a predetermined value.
The practice of the invention is illustrated in more detail by the following specific examples:
in this embodiment, the buffer size of the mobile terminal is 60K, and is divided into an area a and an area B, and the sizes of the area a and the area B are 30K, respectively. When the network data transmission speed is normal, downloading audio and video data from a server and sequentially storing the audio and video data into an area A and an area B, setting a data detection value to be 10K, and performing detection at regular time, wherein the detection is performed once every 200ms, when the data amount stored in a buffer area is greater than the detection value, the downloaded audio and video data are played by a playing unit according to the stored sequence, when the data amount stored in the buffer area is less than the detection value, the playing of video is automatically stopped, a user can be informed of the fact that data buffering is needed to be performed, namely, downloading is continued through a picture, and when the data in the buffer area is known to be greater than the detection value, playing is continued. If the video playing speed is 8K/s, after playing for 3 seconds, the data in the area A is played completely, and the remaining 6K data and the data in the area B are played continuously together. At this point, area a is cleared and data continues to be downloaded. After 7 seconds of playback, the remaining data in region B is 4K. While new data already exists in area a because the remaining 4K of data can be played back with the data in area a continuing. The circulation can avoid the problem of discontinuous video playing.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; it is intended that the following claims be interpreted as including all such alterations, modifications, and equivalents as fall within the true spirit and scope of the invention.

Claims (6)

1. A method for playing online audio and video by a mobile terminal is characterized by comprising the following steps:
step 1: dividing a buffer area of a mobile terminal into two areas;
step 2: downloading audio and video data and storing the audio and video data in the area;
and step 3: and playing the audio and video data according to the stored sequence, emptying one area when the audio and video data in the area is played, and continuously downloading the audio and video data to the area.
2. The method for playing the online audio/video by the mobile terminal according to claim 1, further comprising the step of regularly detecting whether the playing condition is met in the process of downloading the audio/video data, if so, playing the audio/video data; if not, audio and video data are continuously downloaded.
3. The method for playing the online audio/video by the mobile terminal according to claim 2, wherein the playing conditions are as follows: the amount of the downloaded audio and video data minus the amount of the played audio and video data is greater than a predetermined value.
4. A device for playing online audio and video by a mobile terminal is characterized by comprising:
a dividing unit for dividing a buffer of the mobile terminal into two areas;
the downloading and storing unit is used for downloading the audio and video data and storing the audio and video data in the area;
the playing unit is used for playing the audio and video data according to the sequence stored by the downloading and storing unit;
and the processing unit is used for emptying one area when the audio and video data in the area is played completely, and informing the downloading and storing unit to continue downloading the audio and video data and store the audio and video data in the area.
5. The device for playing the online audio/video by the mobile terminal according to claim 4, further comprising a timing detection unit for timing detection whether the playing condition is satisfied in the process of downloading the audio/video data.
6. The device for playing the online audio/video by the mobile terminal according to claim 4, wherein the playing conditions are as follows: the amount of the downloaded audio and video data minus the amount of the played audio and video data is greater than a predetermined value.
CN200910179997A 2009-10-16 2009-10-16 Method and device for playing online audio/video by mobile terminal Pending CN101695131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910179997A CN101695131A (en) 2009-10-16 2009-10-16 Method and device for playing online audio/video by mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910179997A CN101695131A (en) 2009-10-16 2009-10-16 Method and device for playing online audio/video by mobile terminal

Publications (1)

Publication Number Publication Date
CN101695131A true CN101695131A (en) 2010-04-14

Family

ID=42094064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910179997A Pending CN101695131A (en) 2009-10-16 2009-10-16 Method and device for playing online audio/video by mobile terminal

Country Status (1)

Country Link
CN (1) CN101695131A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137279A (en) * 2011-03-18 2011-07-27 福州瑞芯微电子有限公司 Method for realizing disconnection continuous playing of on-line video of portable electronic equipment
CN102802075A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Online play buffering system and method
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN103517154A (en) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 Method for preloading video files and system thereof
CN104683861A (en) * 2013-11-27 2015-06-03 北京大唐高鸿软件技术有限公司 Method for playing media stream based on UDP cache in local area network
CN105453581A (en) * 2013-04-30 2016-03-30 杜比实验室特许公司 System and method of outputting multi-lingual audio and associated audio from a single container
CN105681874A (en) * 2015-06-02 2016-06-15 深圳Tcl数字技术有限公司 Network video online playing method and device
CN106569913A (en) * 2016-10-27 2017-04-19 广东欧珀移动通信有限公司 Method and device for terminal backup data
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment
CN113508601A (en) * 2019-01-22 2021-10-15 交互数字Ce专利控股公司 Client and method for managing a streaming session of multimedia content at a client

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137279A (en) * 2011-03-18 2011-07-27 福州瑞芯微电子有限公司 Method for realizing disconnection continuous playing of on-line video of portable electronic equipment
CN103517154A (en) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 Method for preloading video files and system thereof
CN102843605A (en) * 2012-08-22 2012-12-26 Tcl集团股份有限公司 Video play method and device thereof
CN102802075A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Online play buffering system and method
CN102802075B (en) * 2012-08-24 2015-05-20 乐视致新电子科技(天津)有限公司 Online play buffering system and method
CN105453581A (en) * 2013-04-30 2016-03-30 杜比实验室特许公司 System and method of outputting multi-lingual audio and associated audio from a single container
CN105453581B (en) * 2013-04-30 2020-02-07 杜比实验室特许公司 System and method for outputting multi-language audio and associated audio from a single container
CN104683861A (en) * 2013-11-27 2015-06-03 北京大唐高鸿软件技术有限公司 Method for playing media stream based on UDP cache in local area network
CN105681874A (en) * 2015-06-02 2016-06-15 深圳Tcl数字技术有限公司 Network video online playing method and device
CN106569913A (en) * 2016-10-27 2017-04-19 广东欧珀移动通信有限公司 Method and device for terminal backup data
CN106569913B (en) * 2016-10-27 2019-05-10 Oppo广东移动通信有限公司 Method and device for terminal to backup data
CN113508601A (en) * 2019-01-22 2021-10-15 交互数字Ce专利控股公司 Client and method for managing a streaming session of multimedia content at a client
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment

Similar Documents

Publication Publication Date Title
CN101695131A (en) Method and device for playing online audio/video by mobile terminal
KR101496875B1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN105100876B (en) A kind of playback method and device of Streaming Media
CN101198022B (en) Method for inserting video information during streaming media playback or buffering
CN101340572B (en) Broadcast system and broadcast reception method and apparatus thereof
CN102006368B (en) Streaming media audio file play method based on mobile terminal memory card cache technology
EP1576781A1 (en) Method and system for multimedia messaging service
US20180352398A1 (en) Method, Device And User Equipment For Pushing Service Information
CN105808714B (en) Method and device for acquiring network file resources and electronic equipment
CN105979345A (en) Video data processing method and device
CN108632667B (en) A kind of coding/decoding method and terminal of multimedia file
CN107333147B (en) Video buffer control method, terminal and storage device
CN104464743B (en) Method for playing background music in voice chat room and mobile terminal
US20150268808A1 (en) Method, Device and System for Multi-Speed Playing
US20080076414A1 (en) Mobile device advertising
CN102571872A (en) Device and method for pushing video advertisement to mobile phone
EP1753213B1 (en) Display of multimedia data during download of data
CN106850629B (en) Method for processing streaming media data and mobile terminal
CN101345882B (en) Playing device and method for inter-cutting audio files
CN111202980A (en) Information transmission method, streaming media cloud platform and computer-readable storage medium
CN107484040A (en) A kind of method for realizing network acceleration
CN105141644B (en) A kind of method for down loading and terminal of files in stream media
CN106535007A (en) Video play method, device and equipment
US11997369B2 (en) Method of processing an error during the rendering of a digital content
KR20120128707A (en) Data transmission method and device based on slide detection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100414