CN113849721A - Buffer processing method and device - Google Patents

Buffer processing method and device Download PDF

Info

Publication number
CN113849721A
CN113849721A CN202111025586.3A CN202111025586A CN113849721A CN 113849721 A CN113849721 A CN 113849721A CN 202111025586 A CN202111025586 A CN 202111025586A CN 113849721 A CN113849721 A CN 113849721A
Authority
CN
China
Prior art keywords
interface
target
buffering
duration
target duration
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
CN202111025586.3A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111025586.3A priority Critical patent/CN113849721A/en
Publication of CN113849721A publication Critical patent/CN113849721A/en
Priority to PCT/CN2022/115869 priority patent/WO2023030325A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a buffer processing method and device, and relates to the field of internet. The buffer processing method comprises the steps of obtaining a target duration required by buffering when a first object is in a buffering process; determining a target interface according to the target duration; displaying the target interface; wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.

Description

Buffer processing method and device
Technical Field
The application relates to the field of internet, in particular to a buffer processing method and device.
Background
With the development of the internet, people can watch videos, listen to music and watch electronic books online (i.e. without downloading in advance) through various terminals anytime and anywhere. However, fluency of these online services (e.g., fluency of video playback, fluency of music playback, etc.) has a great relationship with network conditions. When the network condition is good, the fluency is high, and the situation of pause (for example, a picture played by a video is stopped at a certain frame of image and cannot be played normally) cannot exist in the buffering process; when the network condition is not good, the fluency is low, and a jam condition exists in the buffering process.
At present, under the condition that the card pause occurs in the buffering process, a user can only wait at the card pause interface, and the utilization rate of the card pause time is low.
Disclosure of Invention
The embodiment of the application aims to provide a buffering processing method and device, and the method and device can solve the problem that the utilization rate of the time of the jam is low due to the fact that a user can only wait at a jam interface under the condition that the jam occurs in the buffering.
In a first aspect, an embodiment of the present application provides a buffer processing method, where the buffer processing method includes:
under the condition that the first object is in the buffering process, acquiring a target duration required by buffering;
determining a target interface according to the target duration;
displaying the target interface;
wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
In a second aspect, an embodiment of the present application provides a buffer processing apparatus, where the apparatus includes:
the obtaining module is used for obtaining the target duration required by buffering under the condition that the first object is in the buffering process;
the processing module is used for determining a target interface according to the target duration;
the display module is used for displaying the target interface;
wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and the program or the instruction, when executed by the processor, implements the steps of the buffering method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the buffering processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the buffering method according to the first aspect.
In the embodiment of the application, under the condition that the first object is in the buffering process, the target duration required by buffering can be obtained; then, determining a target interface according to the target duration; displaying the target interface; wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process. Because the target interface different from the first interface of the first object can be displayed when the first object is in the buffering process, the user can watch the target interface while waiting for the buffering of the first object, and the problem of low utilization rate of the time of the jamming caused by that the user can only wait at the jamming interface under the condition that the buffering is jammed is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of a first interface card provided in an embodiment of the present application.
Fig. 2 is a flowchart of a buffering method according to an embodiment of the present application.
Fig. 3 is a schematic diagram illustrating setting of a fluency playing duration according to an embodiment of the present application.
Fig. 4 is a schematic diagram illustrating object priority setting according to an embodiment of the present application.
Fig. 5 is a flowchart of a method for determining a target duration according to an embodiment of the present application.
Fig. 6 is a schematic diagram illustrating displaying first prompt information according to an embodiment of the present application.
Fig. 7 is a schematic diagram illustrating displaying second prompt information according to an embodiment of the present application.
Fig. 8 is a flowchart of another buffering method according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a buffer processing apparatus according to an embodiment of the present application.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one.
The following describes in detail a buffering method and apparatus provided in the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a first interface card provided in an embodiment of the present application.
As described in the above background art, when watching video online, listening to music online, or watching an electronic book online, if the network condition is not good, a jam occurs during the buffering process (as shown in fig. 1). At this time, the user can only wait at the interface indicating playing card pause; and, the worse the network condition, the longer the user needs to wait, and the worse the user experience. Note that the display screen is displayed in a stuck state, instead of the pause buffer. For example, a picture played by a video is stopped at a certain frame of image, and cannot be played normally.
The embodiment of the application provides a buffering processing method, wherein in the buffering process, a user can watch other interfaces; if the network condition is not good and the jamming occurs in the buffering process, an interface different from the jamming interface can be displayed while buffering; the user does not need to wait at the interface indicating playing card pause.
The buffering method provided by the embodiment of the application can be applied to mobile terminals (such as mobile phones and tablet computers) and can also be applied to other terminals (such as computers).
Fig. 2 is a flowchart of a buffering method according to an embodiment of the present application. The buffering method provided by the embodiment of the application can be executed by electronic equipment, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like.
As shown in fig. 2, the buffering method provided in the embodiment of the present application may include the following steps:
in step 210, under the condition that the first object is in the process of buffering, the target duration required by buffering is obtained.
And step 220, determining a target interface according to the target duration.
Step 230, displaying the target interface; wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
In the embodiment of the present application, the first object may be various objects that need buffering, such as a video application, an audio application, or a document, and the first object may be in a buffering process, such as a buffering process of a video in the first object. The first interface may be an interface indicating that the first object is in a buffering process, for example, a video playing interface being buffered, an audio playing interface being buffered, or a document display interface being buffered (it should be noted that the first object in the buffering processing method provided by the present application may run while buffering, for example, a video application may play a video while buffering). Of course, in the embodiment of the present application, the first object may also be another object, such as a document reading application like an electronic book and an application like a browser. Accordingly, the first interface may also be a running interface of the objects, such as a reading interface of a document reading application such as an electronic book and a browsing interface of a browser.
In the embodiment of the present application, the target duration is a duration required for buffering. For example, when the first object is a video application and the first interface is a video playing interface during buffering; the target duration may be a duration of buffering a complete video, or a duration of buffering a portion of a video.
In this embodiment, the target interface may be one interface in the first object, or may be an interface in an object other than the first object; in a case where the target interface is one interface in the first object, the target interface is different from the first interface.
In the embodiment of the present application, the buffering method provided in the embodiment of the present application is described by taking the first object as a video application and the first interface as a video playing interface during buffering as an example. It is to be understood that this is by way of example only and is not intended as a limitation.
For example, the first interface is a video playing interface when buffering, and the target interface is a home interface of a video application or an interface in other applications (e.g., WeChat or electronic book).
According to the buffering processing method provided by the embodiment of the application, under the condition that the first object is in the buffering process, the target duration required by buffering can be obtained; then, determining a target interface according to the target duration; displaying the target interface; wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process. Because the target interface different from the first interface of the first object can be displayed when the first object is in the buffering process, the user can watch the target interface while waiting for the buffering of the first object, and the problem of low utilization rate of the time of the jamming caused by that the user can only wait at the jamming interface under the condition that the buffering is jammed is solved.
It should be noted that, in the buffering method provided in the embodiment of the present application, the execution main body may be a mobile terminal, or a control module in the mobile terminal for executing the buffering method.
It can be understood that the buffering processing method provided by the embodiment of the present application may enable the first object to buffer in the background, that is, the target interface is displayed when the first object is in the buffering process, and the first interface indicating that the first object is buffering is not displayed, so that the user may view other interfaces (target interfaces) when the first object is in the buffering process.
Before obtaining the target duration required for buffering in step 210, the buffering method provided in the embodiment of the present application may further include the following steps:
and detecting whether the first interface is stuck at present.
In step 210, obtaining the target duration required for buffering may include:
and if the first interface is stuck, acquiring the target time length required by buffering.
In this way, the target interface different from the first interface can be displayed under the condition that the first interface of the first object is stuck, and the user does not need to wait continuously at the stuck first interface, so that the user can be prevented from spending a large amount of time on waiting.
In an embodiment of the present application, the determining the target interface according to the target duration in step 220 may include the following steps:
taking a designated interface of the first object as the target interface when the target duration is less than a threshold value, wherein the designated interface is different from the first interface;
and under the condition that the target duration is greater than or equal to the threshold value, determining a second object, and taking a second interface of the second object as the target interface.
The second object may be the same as the first object or may be different from the first object.
It is to be understood that the target duration may be a duration that the user needs to wait, and the specified interface may be another interface (other than the first interface) in the first object, for example, a previous interface of the first interface. When the target duration is short, the user only needs to wait for a short time, and thus the user may not be interested in using other applications. In this case, other interfaces (interfaces other than the first interface) in the first object may be taken as a target interface and displayed to the user for viewing, for example, the last interface of the first interface may be displayed to the user. For example, in a case that the first object is a video application and the first interface is a video playing interface, the target interface may be a previous interface of the video playing interface, such as an interface of a home page of the video application or an interface of a video screening page.
When the target duration is long, i.e., the user needs to wait for a long time, the user may want to use other applications within the target duration. In this case, the other interfaces in the first object may be displayed as the target interface to the user, or the interfaces in the other objects (objects other than the first object) may be displayed as the target interface to the user. For example, the second object may be an e-book application, a news application, a micro-blog or a micro-letter, etc.
For example, in an actual application, the first object is a video application, the first interface is a video playing interface, and the threshold may be 5 minutes. When the target duration is less than 5 minutes, if the target duration is 2 minutes, displaying a home page interface of the video application as a target interface to a user; and when the target duration is greater than or equal to 5 minutes, if the target duration is 8 minutes, displaying an interface of the electronic book application as a target interface to a user.
Therefore, different interfaces can be displayed for the user to watch according to the length of the target duration, different requirements of the user are met, and user experience is improved.
In order to more accurately meet the user requirement, so that the displayed interface is the interface that the user wants to see, the embodiment of the present application may determine the above-mentioned second object in various ways. The second object may be an application running in the background. Optionally, in one embodiment, determining the second object may include:
acquiring an object in a running state;
and determining the second object from the objects in the running state.
It will be appreciated that the object in the run state is typically the object that the user was using during the last period of time. Therefore, the object in the running state should be an object that the user wants to use, and the second object determined from the objects in the running state should also be an object that the user wants to use, and the second interface of the second object should be an interface that the user wants to see.
Therefore, the user requirements can be met, and the interface which the user wants to see is displayed for the user to watch.
Specifically, the second object may be determined according to a priority of an object preset by a user, and the object having the highest priority in the running state (an object different from the first object) is determined as the second object.
For example, the objects in the running state include a music application, an electronic book application, and a WeChat, wherein the music application has the highest priority, the music application is determined as the second object.
Optionally, the second object may also be determined according to the frequency of using various objects by the user, and the object with the highest frequency of use in the running state (different from the first object) is determined as the second object.
For example, the objects in the running state include a music application, an electronic book application, and a WeChat, wherein the WeChat is used most frequently, and the WeChat is determined as the second object.
It should be noted that the second object may be determined from objects in an operating state, or may be determined from objects not in an operating state. For example, in the case where only the first object is in the running state, the second object may be determined from objects that are not in the running state. I.e. the second object may be determined from all objects in the electronic device.
In one embodiment, determining the second object may include:
acquiring objects except the first object as a second object set;
and acquiring the object with the highest priority from the second object set, and determining the object as the second object.
It should be noted that the priority of each object other than the first object may be set by the user in advance.
The object other than the first object may specifically be an object other than the first object in the electronic device. For example, the electronic device includes an electronic book application, a music application, a video application, a WeChat, a microblog, a video application, and a browser, and the first object is a video application; the second object set comprises an e-book application, a music application, a WeChat, a microblog, a video application and a browser, wherein the object with the highest priority is the e-book application; the electronic book application is thus determined as the second object.
In another embodiment, determining the second object may include:
acquiring objects except the first object as a second object set;
and acquiring the object with the highest use frequency from the second object set, and determining the object as the second object.
The frequency of use may be determined based on the number of times each object is used by the user over a period of time.
For example, the electronic device includes an electronic book application, a music application, a video application, a WeChat, a microblog, a video application, and a browser, and the first object is a video application; the second object set comprises an electronic book application, a music application, WeChat, a microblog, a video application and a browser, wherein the object with the highest use frequency is WeChat; thus, the WeChat is determined as the second object.
As described above, the target duration may be a duration for buffering a whole video or a duration for buffering a part of a video. In this embodiment of the present application, in step 210, obtaining the target duration required for buffering may include the following steps:
acquiring the fluency playing time length and the network condition information of the first object;
and determining the target time length required by buffering according to the smooth playing time length and the network condition information.
The fluency playing time length is the time length that the video can be fluently played (no pause), or the time length that the music can be fluently played (no pause); for example, the fluency playback time period may be 10 minutes or 15 minutes, etc. The fluency playing time length can be set by the user, and a default value can also be used.
Fig. 3 is a schematic diagram illustrating setting of a fluency playing duration according to an embodiment of the present application.
Fig. 4 is a schematic diagram illustrating object priority setting according to an embodiment of the present application.
Under the condition that the fluency playing duration is set by the user, the buffering processing method provided by the embodiment of the application can further comprise the following steps:
and reminding the user to set the smooth playing time length and the object priority under the condition that the user enters a first interface of the first object.
For example, in a case where the first object is a video application and the first interface is a video playing page, referring to fig. 3 to 4, setting the fluency playing time and setting the object priority may be performed.
It can be understood that when the smooth playing time (the buffering data amount) is constant, the better the network condition is, the faster the buffering speed is, the shorter the buffering time (the target time) is; the worse the network condition, the slower the buffering speed, and the longer the buffering duration (target duration).
Therefore, the buffering duration (target duration) can be determined according to the set smooth playing duration and the network condition of the user, namely different target durations can be determined according to different network conditions and/or different smooth playing durations. Therefore, the target duration can be determined according to the actual application condition, so that the determined target duration can be suitable for different application conditions.
The network condition information is information that may indicate a network condition, for example, the network condition information may be a network bandwidth or a network speed. The network condition information may be real-time network condition information or an average value of the network condition information over a period of time.
In a case that the network condition information is a network speed, the determining a target duration required for buffering according to the fluency playing duration and the network condition information may include:
determining a buffer data size corresponding to the smooth playing time length;
and determining the target time length required by the buffering based on the buffering data amount and the network speed.
It can be understood that the fluency playing time length corresponds to the buffer data size, and the longer the fluency playing time length is, the larger the buffer data size corresponding to the fluency playing time length is.
The buffering duration may be a duration between a time when the video is paused and a time when the buffering of the amount of buffered data is completed.
Therefore, the buffer data amount can be determined first, and then the target duration is determined according to the buffer data amount and the network speed.
Specifically, the amount of buffered data may be determined by the following equation:
buffer data size (fluency play duration/total play duration) total data size
For example, the buffering amount may be a data amount of a video of a smooth playing time duration, the total playing time duration may be a total time duration of the video, and the total data amount may be a total data amount of the video.
After determining the amount of buffered data, further, the target duration may be determined by the following formula:
target duration-buffered data volume/network speed
For example, in practical applications, when a user plays a video, the fluent playing time is set to be 10 minutes, the total time length of the played video is 100 minutes, the total data volume of the played video is 1000M, and the network speed of the network used by the user at that time is 1M/s.
Then the amount of buffered data is (10/100) × 1000 ═ 100M;
the target duration is 100/1 s 100 s.
Fig. 5 is a flowchart of a method for determining a target duration according to an embodiment of the present application.
As shown in fig. 5, the method for determining the target duration may include:
step 510, determine whether the user sets a smooth play duration.
In step 520, if the user sets the smooth playing duration, the smooth playing duration set by the user is obtained.
In step 530, if the user does not set the smooth playing duration, a default value of the smooth playing duration is obtained.
And 540, determining the buffer data size according to the obtained fluency playing time length.
Step 550, network status information is obtained.
And step 560, determining a target time length according to the buffer data volume and the network condition information.
For example, in practical applications, when a user plays a video, the smooth playing time is not set, the default value of the smooth playing time is 5 minutes, the total time duration of the played video is 100 minutes, the total data volume of the played video is 1000M, and the network speed of the network used by the user at that time is 1M/s.
Then the amount of buffered data is (5/100) × 1000 ═ 50M;
the target duration is 50/1 s 50 s.
Fig. 6 is a schematic diagram illustrating displaying first prompt information according to an embodiment of the present application.
Fig. 7 is a schematic diagram illustrating displaying second prompt information according to an embodiment of the present application.
As shown in fig. 6 to 7, the buffering method provided in the embodiment of the present application, after obtaining the target duration required for buffering in step 110, may further include the following steps:
displaying first prompt information, wherein the first prompt information indicates the target duration;
displaying second prompt information under the condition that the buffer duration reaches the target duration;
wherein the second prompt information indicates whether to return to the first interface of the first object.
The first prompt message and the second prompt message may be displayed in a pop-up window mode.
It can be understood that the first prompt message is used for prompting the user how long the buffering is needed; for example, if the target duration is 3 minutes, the first prompt message may be "the current video buffer is currently playing for a fluent playing duration approximately 3 minutes". When the buffer duration reaches the target duration, the buffer is finished, namely the second prompt message is used for prompting the user whether to return to watch the first interface after the buffer is finished; for example, the second prompt message may be "XXX video stream playing duration is buffered, and whether to return to continue watching" or not.
Therefore, the first prompt message can prompt the user to buffer the time length required by the buffer data volume corresponding to the smooth playing time length before the target interface is displayed, so that the user can return to watch the first interface after knowing how long; the second prompt message can prompt the user whether to return to watch the first interface after the buffering is finished, so that the user is prevented from forgetting to return to watch the first interface after the buffering is finished when watching the target interface.
The buffering method provided by the embodiment of the application, after displaying the second prompt message, may further include the following steps:
displaying the first interface under the condition that the user selects to return to the first interface;
and in the case that the user chooses not to return to the first interface, continuing to display the second interface.
Optionally, the buffer processing method provided in this embodiment of the present application, before displaying the target interface, may further include:
pausing the playing of the first interface.
Therefore, the first interface of the first object can be prevented from being played while being buffered at the background when the user watches the target interface.
It should be noted that, when the first interface of the first object does not have a pause, the buffering processing method provided in the embodiment of the present application can play while buffering.
Fig. 8 is a flowchart of another buffering method according to an embodiment of the present application. As shown in fig. 8, in one embodiment, the buffering processing method includes:
step 810, in the case that the first object is in the process of buffering, detecting whether the first interface is stuck currently.
In step 820, if the first interface is stuck, a target duration required by buffering is obtained.
Step 830, displaying a first prompt message in a pop-up window form, where the first prompt message indicates the target duration.
Step 840, determining a target interface according to the target duration, wherein the target interface is different from the first interface.
And 850, pausing the playing of the first interface and displaying the target interface.
Step 860, displaying a second prompt message in a form of a pop-up window when the buffer duration reaches the target duration, wherein the second prompt message indicates whether to return to the first interface of the first object.
Step 870, displaying the first interface and enabling the first interface to continue playing under the condition that the user selects to return to the first interface.
According to the buffering processing method provided by the embodiment of the application, when a first interface (including a video playing interface, an audio playing interface, an information browsing interface and the like) is jammed in the buffering process, an interface different from the first interface can be displayed, so that the first interface is buffered in the background, and a user is prompted to return to the first interface after the buffering is finished. Therefore, the user experience can be improved, and the user is prevented from wasting time to wait in the stuck interface.
Fig. 9 is a schematic structural diagram of a buffer processing apparatus according to an embodiment of the present application.
An embodiment of the present application further provides a buffer processing apparatus 900, as shown in fig. 9, where the buffer processing apparatus 900 may include:
an obtaining module 910, configured to obtain a target duration required for buffering when the first object is in a buffering process;
the processing module 920 is configured to determine a target interface according to the target duration;
a display module 930 configured to display the target interface;
wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
The buffering processing device provided by the embodiment of the application can acquire the target duration required by buffering when the first object is in the buffering process; then, determining a target interface according to the target duration; displaying the target interface; wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process. Because the target interface different from the first interface of the first object can be displayed when the first object is in the buffering process, the user can watch the target interface while waiting for the buffering of the first object, and the problem of low utilization rate of the time of the jamming caused by that the user can only wait at the jamming interface under the condition that the buffering is jammed is solved.
Optionally, the processing module 920 is specifically configured to:
taking a designated interface of the first object as the target interface when the target duration is less than a threshold value, wherein the designated interface is different from the first interface;
and under the condition that the target duration is greater than or equal to the threshold value, determining a second object, and taking a second interface of the second object as the target interface.
Therefore, different interfaces can be displayed for the user to watch according to the length of the target duration, different requirements of the user are met, and user experience is improved.
Optionally, the second object is an application running in the background.
Therefore, the user requirements can be met, and the interface which the user wants to see is displayed for the user to watch.
Optionally, the obtaining module 910, when obtaining the target duration required by the buffering, is specifically configured to:
acquiring the fluency playing time length and the network condition information of the first object;
after the buffering module obtains the fluency playing duration and the network condition information of the first object, the processing module 920 is configured to:
and determining the target time length required by buffering according to the smooth playing time length and the network condition information.
Therefore, the buffering duration (target duration) can be determined according to the set smooth playing duration and the network condition of the user, namely different target durations can be determined according to different network conditions and/or different smooth playing durations. Therefore, the target duration can be determined according to the actual application condition, so that the determined target duration can be suitable for different application conditions.
Optionally, the network condition information comprises a network speed; the processing module 920 is specifically configured to determine a target time duration required for buffering according to the smooth playing time duration and the network condition information:
determining a buffer data size corresponding to the smooth playing time length;
and determining the target time length required by the buffering based on the buffering data amount and the network speed.
Therefore, the buffer data amount can be determined first, and then the target duration is determined according to the buffer data amount and the network speed.
Optionally, after the obtaining module 910 obtains the target duration required for buffering, the displaying module 930 is further configured to:
displaying first prompt information, wherein the first prompt information indicates the target duration;
displaying second prompt information under the condition that the buffer duration reaches the target duration;
wherein the second prompt information indicates whether to return to the first interface of the first object.
Therefore, the first prompt message can prompt the user to buffer the time length required by the buffer data volume corresponding to the smooth playing time length before the target interface is displayed, so that the user can return to watch the first interface after knowing how long; the second prompt message can prompt the user whether to return to watch the first interface after the buffering is finished, so that the user is prevented from forgetting to return to watch the first interface after the buffering is finished when watching the target interface.
Optionally, the first object is a video application or an audio application, and the first interface is a video playing interface or an audio playing interface.
The buffer processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The buffering process in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
It should be understood that the above-described buffering method can be applied to the buffering device provided in the embodiments of the present application.
An embodiment of the present application further provides an electronic device, where the electronic device includes a processor, a memory, and a program or an instruction stored in the memory and executable on the processor, and the program or the instruction, when executed by the processor, implements the steps of the buffering method described in any of the foregoing embodiments.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio unit 1010, a network module 1020, an audio output unit 1030, an input unit 1040, a sensor 1050, a display unit 1060, a user input unit 1070, an interface unit 1080, a memory 1090, and a processor 1100.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1100 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1100 is configured to, in a case that the first object is in a buffering process, obtain a target duration required for buffering; determining a target interface according to the target duration;
the display unit 1060 is configured to display the target interface;
wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
According to the electronic equipment provided by the embodiment of the application, under the condition that the first object is in the buffering process, the target duration required by buffering can be obtained; then, determining a target interface according to the target duration; displaying the target interface; wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process. Because the target interface different from the first interface of the first object can be displayed when the first object is in the buffering process, the user can watch the target interface while waiting for the buffering of the first object, and the problem of low utilization rate of the time of the jamming caused by that the user can only wait at the jamming interface under the condition that the buffering is jammed is solved.
Optionally, the processor 1100, in the process of determining the target interface according to the target duration, is specifically configured to:
taking a designated interface of the first object as the target interface when the target duration is less than a threshold value, wherein the designated interface is different from the first interface;
and under the condition that the target duration is greater than or equal to the threshold value, determining a second object, and taking a second interface of the second object as the target interface.
Therefore, different interfaces can be displayed for the user to watch according to the length of the target duration, different requirements of the user are met, and user experience is improved.
Optionally, the second object is an application running in the background.
Therefore, the user requirements can be met, and the interface which the user wants to see is displayed for the user to watch.
Optionally, the processor 1100 is specifically configured to, in the process of obtaining the target duration required for buffering:
acquiring the fluency playing time length and the network condition information of the first object;
and determining the target time length required by buffering according to the smooth playing time length and the network condition information.
Therefore, the buffering duration (target duration) can be determined according to the set smooth playing duration and the network condition of the user, namely different target durations can be determined according to different network conditions and/or different smooth playing durations. Therefore, the target duration can be determined according to the actual application condition, so that the determined target duration can be suitable for different application conditions.
Optionally, after the processor 1100 obtains the target duration required for buffering, the display unit 1060 is further configured to:
displaying first prompt information, wherein the first prompt information indicates the target duration;
displaying second prompt information under the condition that the buffer duration reaches the target duration;
wherein the second prompt information indicates whether to return to the first interface of the first object.
Therefore, the first prompt message can prompt the user to buffer the time length required by the buffer data volume corresponding to the smooth playing time length before the target interface is displayed, so that the user can return to watch the first interface after knowing how long; the second prompt message can prompt the user whether to return to watch the first interface after the buffering is finished, so that the user is prevented from forgetting to return to watch the first interface after the buffering is finished when watching the target interface.
It should be understood that in the embodiment of the present application, the input Unit 1040 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1060 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1070 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 1090 may be used to store software programs as well as various data including, but not limited to, applications and operating systems. The processor 1100 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1100.
The embodiments of the present application also provide a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the buffering processing method as described in any of the foregoing embodiments.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing buffer processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
In the embodiments of the present application, the difference between the embodiments is described in detail, and different optimization features between the embodiments can be combined to form a better embodiment as long as the differences are not contradictory, and further description is omitted here in view of brevity of the text.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A buffer processing method, comprising:
under the condition that the first object is in the buffering process, acquiring a target duration required by buffering;
determining a target interface according to the target duration;
displaying the target interface;
wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
2. The buffer processing method according to claim 1, wherein the determining a target interface according to the target duration comprises:
taking a designated interface of the first object as the target interface when the target duration is less than a threshold value, wherein the designated interface is different from the first interface;
and under the condition that the target duration is greater than or equal to the threshold value, determining a second object, and taking a second interface of the second object as the target interface.
3. The buffering processing method according to claim 2, wherein the second object is an application running in the background.
4. The buffer processing method according to any one of claims 1 to 3, wherein the obtaining of the target duration required for buffering includes:
acquiring the fluency playing time length and the network condition information of the first object;
and determining the target time length required by buffering according to the smooth playing time length and the network condition information.
5. The buffer processing method according to claim 1, wherein after the obtaining of the target duration required for buffering, the buffer processing method further comprises:
displaying first prompt information, wherein the first prompt information is used for indicating the target duration;
displaying second prompt information under the condition that the buffer duration reaches the target duration;
wherein the second prompt message is used to indicate whether to return to the first interface of the first object.
6. A buffer processing apparatus, comprising:
the obtaining module is used for obtaining the target duration required by buffering under the condition that the first object is in the buffering process;
the processing module is used for determining a target interface according to the target duration;
the display module is used for displaying the target interface;
wherein the target interface is different from a first interface of the first object, the first interface being used to indicate that the first object is in a buffering process.
7. The buffer processing apparatus according to claim 6, wherein the processing module is specifically configured to:
taking a designated interface of the first object as the target interface when the target duration is less than a threshold value, wherein the designated interface is different from the first interface;
and under the condition that the target duration is greater than or equal to the threshold value, determining a second object, and taking a second interface of the second object as the target interface.
8. The buffer processing apparatus according to claim 7, wherein the second object is an application running in the background.
9. The buffer processing apparatus according to any one of claims 6 to 8, wherein the obtaining module is specifically configured to:
acquiring the fluency playing time length and the network condition information of the first object;
and determining the target time length required by buffering according to the smooth playing time length and the network condition information.
10. The buffer processing apparatus according to claim 6, wherein after the obtaining module obtains the target duration required for the buffer, the display module is further configured to:
displaying first prompt information, wherein the first prompt information is used for indicating the target duration;
displaying second prompt information under the condition that the buffer duration reaches the target duration;
wherein the second prompt message is used to indicate whether to return to the first interface of the first object.
11. An electronic device, characterized in that the electronic device comprises a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the buffering method according to any of claims 1-5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the buffer processing method according to any one of claims 1-5.
CN202111025586.3A 2021-09-02 2021-09-02 Buffer processing method and device Pending CN113849721A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111025586.3A CN113849721A (en) 2021-09-02 2021-09-02 Buffer processing method and device
PCT/CN2022/115869 WO2023030325A1 (en) 2021-09-02 2022-08-30 Buffer processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111025586.3A CN113849721A (en) 2021-09-02 2021-09-02 Buffer processing method and device

Publications (1)

Publication Number Publication Date
CN113849721A true CN113849721A (en) 2021-12-28

Family

ID=78976766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111025586.3A Pending CN113849721A (en) 2021-09-02 2021-09-02 Buffer processing method and device

Country Status (2)

Country Link
CN (1) CN113849721A (en)
WO (1) WO2023030325A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023030325A1 (en) * 2021-09-02 2023-03-09 维沃移动通信有限公司 Buffer processing method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294688A (en) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Web page browsing method and system
CN104133682B (en) * 2014-07-31 2017-07-21 北京金山安全软件有限公司 Information processing method and device
CN104331280A (en) * 2014-10-27 2015-02-04 百度在线网络技术(北京)有限公司 Information display method and device
CN105354062A (en) * 2015-11-06 2016-02-24 深圳市金立通信设备有限公司 Method for displaying loaded page and mobile terminal
CN112527171B (en) * 2020-12-14 2022-06-21 北京聪明核桃教育科技有限公司 Multimedia file playing method, device, equipment and medium
CN113849721A (en) * 2021-09-02 2021-12-28 维沃移动通信有限公司 Buffer processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023030325A1 (en) * 2021-09-02 2023-03-09 维沃移动通信有限公司 Buffer processing method and apparatus

Also Published As

Publication number Publication date
WO2023030325A1 (en) 2023-03-09

Similar Documents

Publication Publication Date Title
US20220413661A1 (en) List flow implementation method, electronic device, and storage medium
US10026104B2 (en) Method and system for automatically pausing advertisements based on user attention
CN114003326B (en) Message processing method, device, equipment and storage medium
EP4351149A1 (en) Display control method and apparatus, and device and storage medium
CN113094135B (en) Page display control method, device, equipment and storage medium
US20240171801A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2023061230A1 (en) Content display method and apparatus, device, and storage medium
CN111163348A (en) Searching method and device based on video playing
CN111177610A (en) Material display method and device, electronic equipment and storage medium
CN113727170A (en) Video interaction method, device, equipment and medium
CN112312225B (en) Information display method and device, electronic equipment and readable medium
CN111596995B (en) Display method and device and electronic equipment
CN113938551B (en) Caching method and device, electronic equipment and storage medium
CN110740373A (en) audio/video file buffering method and related device
WO2023030325A1 (en) Buffer processing method and apparatus
CN109542297B (en) Method and device for providing operation guide information and electronic equipment
CN112181252A (en) Screen capturing method and device and electronic equipment
CN112383825A (en) Video recommendation method and device, electronic equipment and medium
WO2023030234A1 (en) Video processing method and apparatus
WO2023030116A1 (en) Display method and apparatus
CN115550723A (en) Multimedia information display method and device and electronic equipment
CN114327714A (en) Application program control method, device, equipment and medium
CN113704517A (en) Multimedia file playing method and device
US20240184434A1 (en) Display method and apparatus
CN112463090B (en) Resolution adjustment method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination