WO2023030325A1 - 缓冲处理方法及装置 - Google Patents

缓冲处理方法及装置 Download PDF

Info

Publication number
WO2023030325A1
WO2023030325A1 PCT/CN2022/115869 CN2022115869W WO2023030325A1 WO 2023030325 A1 WO2023030325 A1 WO 2023030325A1 CN 2022115869 W CN2022115869 W CN 2022115869W WO 2023030325 A1 WO2023030325 A1 WO 2023030325A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
target
duration
buffering
buffer
Prior art date
Application number
PCT/CN2022/115869
Other languages
English (en)
French (fr)
Inventor
熊紫欣
蒋辰
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023030325A1 publication Critical patent/WO2023030325A1/zh

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

Definitions

  • the present application relates to the Internet field, in particular to a buffer processing method and device.
  • the user can only wait in the freeze interface, which will lead to a low utilization rate of the freeze period.
  • the purpose of the embodiment of the present application is to provide a buffering processing method and device, which can solve the problem of low utilization rate of the time period caused by the stuck time caused by the user having to wait in the stuck interface when buffering is stuck. question.
  • the embodiment of the present application provides a buffer processing method, the buffer processing method comprising:
  • the target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process.
  • an embodiment of the present application provides a buffer processing device, the device comprising:
  • An acquisition module configured to acquire the target duration required for buffering when the first object is in the buffering process
  • a processing module configured to determine a target interface according to the target duration
  • a display module configured to display the target interface
  • the target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, the program or instruction When executed by the processor, the steps of the buffer processing method according to the first aspect are realized.
  • an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the buffer processing method as described in the first aspect is implemented A step of.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The buffering method described.
  • a computer program product is provided, the computer program is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor, so as to realize the buffer processing as described in the first aspect method.
  • an electronic device configured to execute the buffer processing method as described in the first aspect.
  • the target duration required for buffering can be obtained; then, according to the target duration, the target interface is determined; the target interface is displayed; wherein, the target The interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process. Since the target interface different from the first interface of the first object can be displayed while the first object is in the buffering process, the user can watch the target interface while waiting for the first object to buffer, thereby solving the problem of stuck in the buffering In this case, the user can only wait in the stuck interface, which leads to a low utilization rate of the stuck time.
  • FIG. 1 is a schematic diagram of a first interface freeze provided by an embodiment of the present application.
  • FIG. 2 is a flow chart of a buffer processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of setting the duration of smooth playback provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of object priority setting provided by the embodiment of the present application.
  • FIG. 5 is a flowchart of a method for determining a target duration provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of displaying first prompt information provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of displaying second prompt information provided by an embodiment of the present application.
  • FIG. 8 is a flow chart of another buffer processing method provided by the embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a buffer processing device provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a first interface freeze provided by an embodiment of the present application.
  • the freeze that occurs during the buffering process does not mean that the buffering is suspended, but that the displayed screen freezes. For example, the image of the video playback is stagnant at a certain frame and cannot be played normally.
  • the embodiment of the present application provides a buffering processing method.
  • the user can watch other interfaces; if the network condition is not good and a freeze occurs during the buffering process, an interface different from the stuck interface can be displayed while buffering; So that the user does not need to wait on the interface indicating that the playback is stuck.
  • the buffering processing method provided in the embodiment of the present application can be applied not only to mobile terminals (such as mobile phones and tablet computers), but also to other terminals (such as computers).
  • FIG. 2 is a flow chart of a buffer processing method provided by an embodiment of the present application.
  • the buffer processing method provided in the embodiment of the present application may be executed by electronic devices, such as mobile phones, tablet computers, notebook computers, desktop computers, and the like.
  • the buffer processing method provided in the embodiment of the present application may include the following steps:
  • Step 210 in the case that the first object is in the process of buffering, acquire the target duration required for buffering.
  • Step 220 determine the target interface according to the target duration.
  • Step 230 displaying the target interface; wherein, the target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process.
  • the first object may be various objects that need to be buffered, such as a video application, an audio application, or a document, and the buffering process of the first object may be, for example, that the video in the first object is in the process of buffering.
  • the first interface may be an interface indicating that the first object is in the buffering process, such as a buffering video playback interface, a buffering audio playback interface, or a buffering document display interface, etc. (It should be noted that this application
  • the first object in the provided buffering method can run while buffering, for example, a video application can play a video while buffering).
  • the first object may also be other objects, such as document reading applications such as e-books and applications such as browsers.
  • the first interface may also be the running interface of these objects, such as a reading interface of a document reading application such as an e-book and a browsing interface of a browser.
  • the target duration is the duration required for buffering.
  • the target duration can be the duration of buffering the entire video, or the duration of buffering a certain video part of the duration.
  • the target interface may be an interface in the first object, or an interface in an object other than the first object; In the case of an interface in an object, the target interface is different from the first interface.
  • the buffering processing 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 playback interface during buffering as an example. It is to be understood that this is an example only and not meant to be limiting.
  • the first interface is a video playback interface during buffering
  • the target interface is a home page interface of a video application or an interface in other applications (eg, WeChat or e-book).
  • the target duration required for buffering can be obtained; then, according to the target duration, the target interface is determined; and the target interface is displayed; wherein, The target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process. Since the target interface different from the first interface of the first object can be displayed while the first object is in the buffering process, the user can watch the target interface while waiting for the first object to buffer, thereby solving the problem of stuck in the buffering In this case, the user can only wait in the stuck interface, which leads to a low utilization rate of the stuck time.
  • the buffer processing method provided in the embodiment of the present application may be executed by a mobile terminal, or a control module in the mobile terminal for executing the buffer processing method.
  • the buffer processing method provided in the embodiment of the present application can enable the first object to be buffered in the background, that is, when the first object is in the buffering process, the target interface is displayed instead of the first object indicating that the first object is buffering.
  • An interface so that the user can view other interfaces (target interfaces) when the first object is in the buffering process.
  • the buffering processing method provided in the embodiment of the present application may further include the following steps:
  • obtaining the target duration required for buffering may include:
  • the target duration required for buffering is acquired.
  • determining the target interface according to the target duration described in step 220 may include the following steps:
  • the target duration is less than a threshold
  • a second object is determined, and a second interface of the second object is used as the target interface.
  • the second object may be the same as the first object, or different from the first object.
  • the target duration may be the duration that the user needs to wait
  • the specified interface may be other interfaces in the first object (interfaces other than the first interface), such as the first interface.
  • the previous screen of the screen When the target duration is short, the user only needs to wait for a short time, so the user may not be interested in using other applications.
  • other interfaces in the first object can be used as target interfaces and displayed to the user for viewing, for example, the previous interface of the first interface can be displayed to the user .
  • the target interface may be the previous interface of the video playback interface, such as the interface of the homepage of a video application or a video screening page interface.
  • the target duration is longer, that is, the user needs to wait for a longer time, so the user may want to use other applications within the target duration.
  • other interfaces in the first object may be displayed to the user as target interfaces, or interfaces in other objects (objects other than the first object) may be displayed to the user as target interfaces .
  • the second object may be an e-book application, a news application, Weibo or WeChat, and the like.
  • the first object is a video application
  • the first interface is a video playback interface
  • the threshold may be 5 minutes.
  • the target duration is less than 5 minutes, if the target duration is 2 minutes, the home page interface of the video application is displayed to the user as the target interface; when the target duration is greater than or equal to 5 minutes, if the target duration 8 minutes, the interface of the e-book application is displayed to the user as the target interface.
  • 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.
  • determining the second object may include:
  • the second object is determined from the objects in the running state.
  • the objects in the running state are generally objects that are being used by the user within a recent period of time. Therefore, the object in the running state should be the object that the user wants to use, and then the second object determined from the objects in the running state should also be the object that the user wants to use, and the second object The second interface of should be the interface the user wants to see.
  • the second object may be determined according to the priority of the object preset by the user, and the object with the highest priority in the running state (an object different from the first object) is determined as the second object.
  • the objects in the running state include a music application, an e-book application, and WeChat, and the music application has the highest priority, and the music application is determined as the second object.
  • the second object may also be determined according to the frequency of use of various objects by the user, and the object with the highest frequency of use in the running state (an object different from the first object) is determined as the second object.
  • the objects in the running state include music applications, e-book applications, and WeChat, and WeChat is most frequently used, and WeChat is determined as the second object.
  • the second object may be determined from objects in the running state, or may be determined from objects not in the running state.
  • the second object in the case that only the first object is in the running state, the second object can be determined from the objects that are not in the running state. That is, the second object can be determined from all objects in the electronic device.
  • determining the second object may include:
  • the priorities of the objects except the first object may be preset by the user.
  • the objects other than the first object may specifically be objects in the electronic device other than the first object.
  • the electronic device includes e-book applications, music applications, video applications, WeChat, Weibo, video applications, and browsers, and the first object is a video application; then the second object set includes e-book applications, Among music applications, WeChat, Weibo, video applications and browsers, the highest priority object is the e-book application; therefore, the e-book application is determined as the second object.
  • determining the second object may include:
  • the frequency of use may be determined according to the number of times the user uses each object within a period of time.
  • the electronic device includes e-book applications, music applications, video applications, WeChat, Weibo, video applications, and browsers, and the first object is a video application; then the second object set includes e-book applications, Among music applications, WeChat, Weibo, video applications and browsers, WeChat is the most frequently used object; therefore, WeChat is determined as the second object.
  • the target duration may be the duration for buffering the entire video, or the duration for buffering a part of a certain video.
  • obtaining the target duration required for buffering may include the following steps:
  • the smooth playing duration and the network status information determine the target duration required for buffering.
  • the smooth playback duration is the duration during which the video can be played smoothly (without freezing), or the duration of music can be played smoothly (without freezing); for example, the smooth playback duration can be 10 minutes or 15 minutes, etc.
  • the smooth playing duration may be set by the user, or a default value may be used.
  • FIG. 3 is a schematic diagram of setting the duration of smooth playback provided by the embodiment of the present application.
  • FIG. 4 is a schematic diagram of object priority setting provided by the embodiment of the present application.
  • the buffer processing method provided in the embodiment of the present application may also include:
  • the user When the user enters the first interface of the first object, the user is reminded to set the duration of smooth playback and the priority of the object.
  • the first object is a video application and the first interface is a video playback page
  • the first interface is a video playback page
  • the buffer duration (target duration) can be determined according to the set smooth playback duration and the user's network conditions, that is, different target durations can be determined according to different network conditions and/or different smooth playback durations. Therefore, the target duration can be determined according to actual application conditions, so that the determined target duration can be applied to different application conditions.
  • the network status information is information that may represent a network status, for example, the network status information may be network bandwidth or network speed.
  • the network status information may be real-time network status information, or an average value of network status information within a period of time.
  • the determining the target duration required for buffering according to the smooth playback duration and the network status information may include:
  • the target duration required for buffering is determined.
  • the smooth playback duration corresponds to the buffered data amount, and the longer the smooth playback duration, the larger the buffered data amount corresponding to the smooth playback duration.
  • the buffering duration may be the duration between the time when the video freezes and the time when the buffered data amount is completely buffered.
  • the amount of buffered data can be determined first, and then the target duration can be determined according to the amount of buffered data and the network speed.
  • the amount of buffered data may be determined by the following formula:
  • Buffered data volume (smooth playback duration/total playback duration)*total data volume
  • the buffered amount may be the data amount of a video with a smooth playback duration
  • the total playback duration may be the total duration of the video
  • the total data amount may be the total data amount of the video.
  • the target duration can be determined by the following formula:
  • Target duration buffered data volume/network speed
  • the smooth playback time is set to 10 minutes, and the total duration of the played video is 100 minutes, and the total data volume of the played video is 1000M.
  • the speed is 1M/s.
  • FIG. 5 is a flowchart of a method for determining a target duration provided by an embodiment of the present application.
  • the method for determining the target duration may include:
  • Step 510 judging whether the user has set a smooth playback duration.
  • Step 520 if the user sets the duration of smooth playback, obtain the duration of smooth playback set by the user.
  • Step 530 if the user has not set the duration of smooth playback, obtain the default value of the duration of smooth playback.
  • Step 540 determine the amount of buffered data according to the obtained smooth playing duration.
  • Step 550 acquiring network status information.
  • Step 560 determine the target duration according to the amount of buffered data and network status information.
  • the user does not set a smooth playback time when playing a video
  • the default value of the smooth playback time is 5 minutes
  • the total duration of the played video is 100 minutes
  • the total data volume of the played video is 1000M
  • the speed of the network used by the user at that time was 1M/s.
  • FIG. 6 is a schematic diagram of displaying first prompt information provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of displaying second prompt information provided by an embodiment of the present application.
  • the buffer processing method provided by the embodiment of the present application may further include the following steps after obtaining the target duration required for buffering in step 110:
  • the first prompt information indicating the target duration
  • the second prompt information indicates whether to return to the first interface of the first object.
  • the display form of the first prompt information and the second prompt information may be a pop-up window form.
  • the first prompt information is used to prompt the user how long the buffer still needs to be; for example, if the target duration is 3 minutes, the first prompt information may be "the current video buffering and smooth playback time is about 3 minutes".
  • the second prompt information is used to prompt the user whether to return to watch the first interface after the buffering is complete; for example, the second prompt information can be "XXX video The smooth playback duration has been buffered, do you want to go back and continue watching?"
  • the first prompt information can prompt the user to buffer the buffered data volume corresponding to the smooth playback duration before displaying the target interface, so that the user can return to watch the first interface after knowing how long it takes;
  • the second The prompt information can prompt the user whether to return to watch the first interface after the buffering is completed, so as to prevent the user from forgetting to return to watch the first interface after the buffering is completed when viewing the target interface.
  • the buffer processing method provided in the embodiment of the present application may further include:
  • the first interface of the first object is played while being buffered in the background when the user views the target interface.
  • the buffer processing method provided in the embodiment of the present application can play while buffering.
  • FIG. 8 is a flow chart of another buffer processing method provided by the embodiment of the present application. As shown in Figure 8, in one embodiment, the buffer processing method includes:
  • Step 810 in the case that the first object is being buffered, detect whether the first interface is currently stuck.
  • Step 820 if the first interface freezes, obtain the target duration required for buffering.
  • Step 830 displaying first prompt information in the form of a pop-up window, the first prompt information indicating the target duration.
  • Step 840 Determine a target interface according to the target duration, where the target interface is different from the first interface.
  • Step 850 pause the playing of the first interface, and display the target interface.
  • Step 860 when the buffer duration reaches the target duration, display second prompt information in the form of a pop-up window, the second prompt information indicating whether to return to the first interface of the first object.
  • Step 870 if the user chooses to return to the first interface, display the first interface and make the first interface continue to play.
  • the buffer processing method provided in the embodiment of the present application can display an interface different from the first interface when the first interface (including the video playback interface, audio playback interface, and information browsing interface, etc.) freezes during the buffering process, so that all The above-mentioned first interface is buffered in the background, and the user is prompted to return to the first interface after the buffering is completed. This can improve the user experience and prevent users from wasting time waiting in the stuck interface.
  • the first interface including the video playback interface, audio playback interface, and information browsing interface, etc.
  • FIG. 9 is a schematic structural diagram of a buffer processing device provided by an embodiment of the present application.
  • the embodiment of the present application also provides a buffer processing device 900.
  • the buffer processing device 900 may include:
  • An acquisition module 910 configured to acquire the target duration required for buffering when the first object is in the buffering process
  • a processing module 920 configured to determine a target interface according to the target duration
  • a display module 930 configured to display the target interface
  • the target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process.
  • the buffer processing device provided in the embodiment of the present application can obtain the target duration required for buffering when the first object is in the buffering process; then determine the target interface according to the target duration; display the target interface; wherein, The target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process. Since the target interface different from the first interface of the first object can be displayed while the first object is in the buffering process, the user can watch the target interface while waiting for the first object to buffer, thereby solving the problem of stuck in the buffering In this case, the user can only wait in the stuck interface, which leads to a low utilization rate of the stuck time.
  • processing module 920 is specifically configured to:
  • the target duration is less than a threshold
  • a second object is determined, and a second interface of the second object is used as the target interface.
  • the second object is an application running in the background.
  • the acquiring module 910 when acquiring the target duration required for buffering, is specifically configured to:
  • the processing module 920 is used to:
  • the smooth playing duration and the network status information determine the target duration required for buffering.
  • the buffer duration (target duration) can be determined according to the set smooth playback duration and the user's network conditions, that is, different target durations can be determined according to different network conditions and/or different smooth playback durations. Therefore, the target duration can be determined according to actual application conditions, so that the determined target duration can be applied to different application conditions.
  • the network status information includes network speed; when the processing module 920 determines the target duration required for buffering according to the smooth playback duration and the network status information, it is specifically used to:
  • the target duration required for buffering is determined.
  • the amount of buffered data can be determined first, and then the target duration can be determined according to the amount of buffered data and the network speed.
  • the display module 930 is further configured to:
  • the first prompt information indicating the target duration
  • the second prompt information indicates whether to return to the first interface of the first object.
  • the first prompt information can prompt the user to buffer the buffered data volume corresponding to the smooth playback duration before displaying the target interface, so that the user can return to watch the first interface after knowing how long it takes;
  • the second The prompt information can prompt the user whether to return to watch the first interface after the buffering is completed, so as to prevent the user from forgetting to return to watch the first interface after the buffering is completed when viewing the target interface.
  • the first object is a video application or an audio application
  • the first interface is a video playback interface or an audio playback interface.
  • the buffer processing device in this 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 may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the buffer processing in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the embodiment of the present application also provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, the program or instruction is controlled by the
  • the processor implements the steps of the buffer processing method described in any one of the foregoing embodiments when executing.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 10 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency 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, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1100 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 10 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the processor 1100 is configured to obtain a target duration required for buffering when the first object is in the buffering process; and determine a target interface according to the target duration;
  • the display unit 1060 is configured to display the target interface
  • the target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process.
  • the electronic device provided in the embodiment of the present application can acquire the target duration required for buffering when the first object is in the buffering process; then determine the target interface according to the target duration; display the target interface; wherein, the The target interface is different from the first interface of the first object, and the first interface is used to indicate that the first object is in a buffering process. Since the target interface different from the first interface of the first object can be displayed while the first object is in the buffering process, the user can watch the target interface while waiting for the first object to buffer, thereby solving the problem of stuck in the buffering In this case, the user can only wait in the stuck interface, which leads to a low utilization rate of the stuck time.
  • the processor 1100 is specifically configured to:
  • the target duration is less than a threshold
  • a second object is determined, and a second interface of the second object is used as the target interface.
  • the second object is an application running in the background.
  • the processor 1100 is specifically configured to:
  • the smooth playing duration and the network status information determine the target duration required for buffering.
  • the buffer duration (target duration) can be determined according to the set smooth playback duration and the user's network conditions, that is, different target durations can be determined according to different network conditions and/or different smooth playback durations. Therefore, the target duration can be determined according to actual application conditions, so that the determined target duration can be applied to different application conditions.
  • the display unit 1060 is further configured to:
  • the first prompt information indicating the target duration
  • the second prompt information indicates whether to return to the first interface of the first object.
  • the first prompt information can prompt the user to buffer the buffered data volume corresponding to the smooth playback duration before displaying the target interface, so that the user can return to watch the first interface after knowing how long it takes;
  • the second The prompt information can prompt the user whether to return to watch the first interface after the buffering is completed, so as to prevent the user from forgetting to return to watch the first interface after the buffering is completed when viewing the target interface.
  • the input unit 1040 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • 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 called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 1090 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1100 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, user interface, application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1100 .
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the buffer processing method as described in any of the preceding embodiments is implemented A step of.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above buffer processing method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application also provides a computer program product, the computer program product includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, the program or instruction is executed by the
  • the above-mentioned processor executes, each process of the above-mentioned buffer processing method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides an electronic device, which is configured to execute the processes of the foregoing buffer processing method embodiments, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

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

提供了一种缓冲处理方法及装置,涉及互联网领域。缓冲处理方法包括在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长(S210);根据目标时长,确定目标界面(S220);显示目标界面;其中,目标界面与第一对象的第一界面不同,第一界面用于指示第一对象处于缓冲过程中(S230)。

Description

缓冲处理方法及装置
交叉引用
本发明要求在2021年09月02日提交中国专利局、申请号为202111025586.3、发明名称为“缓冲处理方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。
技术领域
本申请涉及互联网领域,具体涉及一种缓冲处理方法及装置。
背景技术
随着互联网的发展,人们随时随地都可以通过各种终端在线观看视频、在线听音乐和在线看电子书等(即无需预先下载)。然而,这些在线进行的业务的流畅度(例如,视频播放的流畅度、音乐播放的流畅度等)和网络状况有很大关系。当网络状况好时,流畅度高,缓冲的过程中不会存在卡顿(例如,视频播放的画面停滞在某一帧图像,无法正常播放)的情况;当网络状况不好时,流畅度则较低,缓冲的过程中会存在卡顿的情况。
目前,在缓冲的过程中出现卡顿的情况下,用户只能在卡顿的界面等待,这样会导致对卡顿这段时间的利用率较低。
发明内容
本申请实施例的目的是提供一种缓冲处理方法及装置,能够解决在缓冲出现卡顿的情况下,用户只能在卡顿的界面等待导致的对卡顿这段时间的利用率较低的问题。
第一方面,本申请实施例提供了一种缓冲处理方法,所述缓冲处理方法包括:
在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长;
根据所述目标时长,确定目标界面;
显示所述目标界面;
其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
第二方面,本申请实施例提供了一种缓冲处理装置,所述装置包括:
获取模块,用于在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长;
处理模块,用于根据所述目标时长,确定目标界面;
显示模块,用于显示所述目标界面;
其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的缓冲处理方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的缓冲处理方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的缓冲处理方法。
第六方面,提供了一种计算机程序产品,所述计算机程序被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行,以实现如第一方面所述的缓冲处理方法。
第七方面,提供了一种电子设备,所述电子设备被配置成用于执行如第一方面所述的缓冲处理方法。
在本申请实施例中,在第一对象处于缓冲过程中的情况下,可以获取缓冲所需的目标时长;然后根据所述目标时长,确定目标界面;显示所述目标界面; 其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。由于在第一对象处于缓冲过程中可以显示与第一对象的第一界面不同的目标界面,如此,用户在等待第一对象缓冲的同时可以观看目标界面,进而解决了在缓冲出现卡顿的情况下,用户只能在卡顿的界面等待导致的对卡顿这段时间的利用率较低的问题。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本申请实施例提供的第一界面卡顿的示意图。
图2为本申请实施例提供的一种缓冲处理方法的流程图。
图3为本申请实施例提供的进行流畅播放时长设置的示意图。
图4为本申请实施例提供的进行对象优先级设置的示意图。
图5为本申请实施例提供的确定目标时长的方法的流程图。
图6为本申请实施例提供的显示第一提示信息的示意图。
图7为本申请实施例提供的显示第二提示信息的示意图。
图8为本申请实施例提供的另一种缓冲处理方法的流程图。
图9为本申请实施例提供的缓冲处理装置的结构示意图。
图10为本申请实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那 些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的缓冲处理方法及装置进行详细地说明。
图1为本申请实施例提供的第一界面卡顿的示意图。
如上述背景技术中所述,在线观看视频、在线听音乐或在线看电子书时,若网络状况不好,缓冲的过程中会出现卡顿的情况(如图1所示)。此时,用户只能在指示播放卡顿的界面等待;并且,网络状况越差,用户需等待的时间越长,用户体验越差。需说明的是,缓冲的过程中出现的卡顿并非表示暂停缓冲,而是表示显示的画面卡顿。例如,视频播放的画面停滞在某一帧图像,无法正常播放。
本申请实施例提供一种缓冲处理方法,在缓冲过程中,用户可以观看其他界面;若网络状况不好,缓冲过程中出现卡顿,则可以在缓冲的同时显示与卡顿界面不同的界面;使用户不需在指示播放卡顿的界面等待。
本申请实施例提供的缓冲处理方法即可以应用于移动终端(例如,手机和平板电脑)中,还可以应用于其他终端中(例如,电脑)。
图2为本申请实施例提供的一种缓冲处理方法的流程图。本申请实施例提供的缓冲处理方法可以由电子设备执行,例如手机、平板电脑、笔记本电脑、台式电脑等。
如图2所示,本申请实施例提供的缓冲处理方法可以包括以下步骤:
步骤210,在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长。
步骤220,根据所述目标时长,确定目标界面。
步骤230,显示所述目标界面;其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
在本申请实施例中,所述第一对象可以为各种需要缓冲的对象,例如视频应用、音频应用或文档等,所述第一对象处于缓冲过程中可以例如是第一对象 中的视频处于缓冲过程中。所述第一界面可以为指示所述第一对象处于缓冲过程中的界面,例如正在缓冲的视频播放界面、正在缓冲的音频播放界面或正在缓冲的文档显示界面等(需说明的是,本申请提供的缓冲处理方法中的第一对象可以边缓冲边运行,例如视频应用可以边缓冲边播放视频)。当然,在本申请实施例中,所述第一对象还可以为其他对象,如电子书等文档阅读应用和浏览器等应用。相应地,所述第一界面还可以为这些对象的运行界面,如电子书等文档阅读应用的阅读界面和浏览器的浏览界面等界面。
在本申请实施例中,所述目标时长为缓冲所需的时长。例如,在所述第一对象为视频应用,所述第一界面为缓冲时的视频播放界面的情况下;所述目标时长既可以是缓冲完整个视频的时长,也可以是缓冲完某个视频的一部分的时长。
在本申请实施例中,所述目标界面可以是所述第一对象中的一个界面,也可以是所述第一对象之外的其他对象中的界面;在所述目标界面是所述第一对象中的一个界面的情况下,所述目标界面与所述第一界面不同。
本申请实施例中以所述第一对象为视频应用,所述第一界面为缓冲时的视频播放界面为例对本申请实施例提供的缓冲处理方法进行说明。需了解的是,这仅是示例,而不意为限制。
例如,所述第一界面为缓冲时的视频播放界面,所述目标界面为视频应用的首页界面或者为其他应用(例如,微信或电子书)中的界面。
本申请实施例提供的缓冲处理方法,在第一对象处于缓冲过程中的情况下,可以获取缓冲所需的目标时长;然后根据所述目标时长,确定目标界面;显示所述目标界面;其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。由于在第一对象处于缓冲过程中可以显示与第一对象的第一界面不同的目标界面,如此,用户在等待第一对象缓冲的同时可以观看目标界面,进而解决了在缓冲出现卡顿的情况下,用户只能在卡顿的界面等待导致的对卡顿这段时间的利用率较低的问题。
需要说明的是,本申请实施例提供的缓冲处理方法,执行主体可以为移动 终端,或者移动终端中的用于执行所述缓冲处理方法的控制模块。
可以理解的是,本申请实施例提供的缓冲处理方法可以使第一对象在后台进行缓冲,即在第一对象处于缓冲过程中时,显示目标界面,而不显示指示第一对象正在缓冲的第一界面,如此即可使用户可以在第一对象处于缓冲过程时,观看其他界面(目标界面)。
在步骤210,获取缓冲所需的目标时长之前,本申请实施例提供的缓冲处理方法还可以包括以下步骤:
检测当前所述第一界面是否卡顿。
步骤210中,获取缓冲所需的目标时长可以包括:
若所述第一界面卡顿,则获取缓冲所需的目标时长。
如此,则可以在所述第一对象的第一界面卡顿的情况下,显示与所述第一界面不同的目标界面,不需用户在卡顿的第一界面持续等待,因此可以避免用户花费大量时间在等待中。
在本申请的一个实施例中,步骤220中所述根据所述目标时长,确定目标界面可以包括以下步骤:
在所述目标时长小于阈值的情况下,将所述第一对象的指定界面作为所述目标界面,所述指定界面与所述第一界面不同;
在所述目标时长大于或等于所述阈值的情况下,确定第二对象,并将所述第二对象的第二界面作为所述目标界面。
所述第二对象可以与所述第一对象相同,也可以与所述第一对象不同。
可以理解的是,所述目标时长可以为用户需等待的时长,所述指定界面可以为第一对象中的其他界面(除所述第一界面之外的界面),例如可以为所述第一界面的上一个界面。当所述目标时长较短时,用户仅需要等待较短的时间,因此用户可能没有兴趣使用其他应用。在此情况下,可以将第一对象中的其他界面(除所述第一界面之外的界面)作为目标界面并显示给用户观看,例如可以将所述第一界面的上一个界面显示给用户。例如,在所述第一对象为视频应用,所述第一界面为视频播放界面的情况下,所述目标界面可以是视频播放界 面的上一个界面,如视频应用的首页的界面或视频筛选页面的界面。
当所述目标时长较长时,即用户需要等待较长的时间,因此用户可能想利在所述目标时长内使用其他应用。在此情况下,既可以将所述第一对象中的其他界面作为目标界面显示给用户,也可以将其他对象(除所述第一对象之外的对象)中的界面作为目标界面显示给用户。例如,所述第二对象可以是电子书应用、新闻应用、微博或微信等。
例如,在实际应用中,所述第一对象为视频应用,所述第一界面为视频播放界面,所述阈值可以为5分钟。在所述目标时长小于5分钟时,如所述目标时长为2分钟,则将视频应用的首页界面作为目标界面显示给用户;在所述目标时长大于或等于5分钟时,如所述目标时长为8分钟,则将电子书应用的界面作为目标界面显示给用户。
如此,则可以根据所述目标时长的长短,显示不同的界面给用户观看,满足用户不同的需求,提升用户体验。
为了更加精确的满足用户需求,使得显示的界面是用户想要看到的界面,本申请实施例可以通过各种不同的方式来确定上文中提及的第二对象。所述第二对象可以为在后台处于运行状态的应用。可选地,在一个实施例中,确定第二对象可以包括:
获取处于运行状态的对象;
从处于运行状态的对象中,确定出所述第二对象。
可以理解的是,所述处于运行状态的对象一般是用户在最近一段时间内正在使用的对象。因此,所述处于运行状态的对象应该是用户想要使用的对象,进而从所述处于运行状态的对象中确定的所述第二对象也应该是用户想要使用的对象,所述第二对象的第二界面应该是用户想要看到的界面。
如此,则可以满足用户需求,将用户想要看到的界面显示给用户观看。
具体地,所述第二对象可以根据用户预先设置的对象的优先级来确定,将所述处于运行状态中优先级最高的对象(与第一对象不同的对象)确定为第二对象。
例如,处于运行状态的对象包括音乐应用、电子书应用和微信,其中音乐应用的优先级最高,则将音乐应用确定为第二对象。
可选地,所述第二对象还可以根据用户使用各种对象的频率来确定,将所述处于运行状态中使用频率最高的对象(与第一对象不同的对象)确定为第二对象。
例如,处于运行状态的对象包括音乐应用、电子书应用和微信,其中微信的使用频率最高,则将微信确定为第二对象。
需说明的是,所述第二对象可以从处于运行状态的对象中确定,也可以从不处于运行状态的对象中确定。例如,在仅有第一对象处于运行状态的情况下,可以从不处于运行状态的对象中确定第二对象。即可以从电子设备中的所有对象中确定第二对象。
在一个实施例中,确定第二对象可以包括:
获取除第一对象之外的对象,作为第二对象集;
从所述第二对象集中获取优先级最高的对象,确定为第二对象。
需说明的是,所述除第一对象之外的各个对象的优先级可以由用户预先设置。
所述除第一对象之外的对象具体可以为电子设备中除第一对象之外的对象。例如,所述电子设备中包括电子书应用、音乐应用、视频应用、微信、微博、视频应用和浏览器,所述第一对象为视频应用;则所述第二对象集中包括电子书应用、音乐应用、微信、微博、视频应用和浏览器,其中优先级最高对象的是电子书应用;因此将电子书应用确定为第二对象。
在另一个实施例中,确定第二对象可以包括:
获取除第一对象之外的对象,作为第二对象集;
从所述第二对象集中获取使用频率最高的对象,确定为第二对象。
所述使用频率可以根据一段时间内用户使用各个对象的次数来确定。
例如,所述电子设备中包括电子书应用、音乐应用、视频应用、微信、微博、视频应用和浏览器,所述第一对象为视频应用;则所述第二对象集中包括 电子书应用、音乐应用、微信、微博、视频应用和浏览器,其中使用频率最高的对象是微信;因此将微信确定为第二对象。
如上所述,所述目标时长可以是缓冲完整个视频的时长,也可以是缓冲完某个视频的一部分的时长。在本申请实施例中,步骤210中,获取缓冲所需的目标时长可以包括以下步骤:
获取所述第一对象的流畅播放时长和网络状况信息;
根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长。
所述流畅播放时长为视频可以流畅播放(不存在卡顿)的时长,或音乐可以流畅播放(不存在卡顿)的时长;例如,所述流畅播放时长可以为10分钟或15分钟等。所述流畅播放时长可以由用户自行设置,也可以使用默认值。
图3为本申请实施例提供的进行流畅播放时长设置的示意图。
图4为本申请实施例提供的进行对象优先级设置的示意图。
在所述流畅播放时长由用户自行设置的情况下,本申请实施例提供的缓冲处理方法还可以包括:
在用户进入第一对象的第一界面的情况下,提醒用户进行流畅播放时长设置和对象优先级设置。
例如,在所述第一对象为视频应用,所述第一界面为视频播放页面的情况下,进行流畅播放时长设置和对象优先级设置可以参照图3-4。
可以理解的是,当流畅播放时长(缓冲数据量)一定时,网络状况越好,缓冲速度越快,缓冲时长(目标时长)越短;网络状况越差,缓冲速度越慢,缓冲时长(目标时长)越长。
如此,可以根据所述设置的流畅播放时长和用户的网络状况确定出缓冲时长(目标时长),即根据不同的网络状况和/或不同的流畅播放时长可以确定出不同的目标时长。因此,可以依据实际的应用情况确定目标时长,使得确定的目标时长可以适用于不同的应用情况。
所述网络状况信息为可以表示网络状况的信息,例如,所述网络状况信息可以为网络带宽或网络速度。所述网络状况信息可以是实时的网络状况信息, 也可以是一段时间内网络状况信息的平均值。
在所述网络状况信息为网络速度的情况下,所述根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长可以包括:
确定与所述流畅播放时长对应的缓冲数据量;
基于所述缓冲数据量和所述网络速度,确定缓冲所需的目标时长。
可以理解的是,所述流畅播放时长与所述缓冲数据量对应,所述流畅播放时长越长,与所述流畅播放时长对应的缓冲数据量越大。
所述缓冲时长可以是视频卡顿的时间至所述缓冲数据量缓冲完毕的时间之间的时长。
如此,则可以先确定出缓冲数据量,然后根据缓冲数据量和网络速度确定出目标时长。
具体地,所述缓冲数据量可以通过以下公式确定:
缓冲数据量=(流畅播放时长/总播放时长)*总数据量;
例如,所述缓冲数量可以是流畅播放时长的视频的数据量,所述总播放时长可以是所述视频的总时长,所述总数据量可以是所述视频的总数据量。
在确定出缓冲数据量后,进一步地,所述目标时长可通过以下公式确定:
目标时长=缓冲数据量/网络速度;
例如,假设在实际应用中,用户在播放视频时,设置流畅播放时间为10分钟,而播放的视频的总时长为100分钟,播放的视频的总数据量为1000M,用户当时使用的网络的网速是1M/s。
则缓冲数据量=(10/100)*1000=100M;
目标时长=100/1=100s。
图5为本申请实施例提供的确定目标时长的方法的流程图。
如图5所示,确定所述目标时长的方法可以包括:
步骤510,判断用户是否设置流畅播放时长。
步骤520,若用户设置了流畅播放时长,则获取用户设置的流畅播放时长。
步骤530,若用户没有设置流畅播放时长,则获取流畅播放时长的默认值。
步骤540,根据获取的所述流畅播放时长确定缓冲数据量。
步骤550,获取网络状况信息。
步骤560,根据缓冲数据量和网络状况信息确定目标时长。
例如,假设在实际应用中,用户在播放视频时,没有设置流畅播放时间,而流畅播放时间的默认值为5分钟,播放的视频的总时长为100分钟,播放的视频的总数据量为1000M,用户当时使用的网络的网速是1M/s。
则缓冲数据量=(5/100)*1000=50M;
目标时长=50/1=50s。
图6为本申请实施例提供的显示第一提示信息的示意图。
图7为本申请实施例提供的显示第二提示信息的示意图。
如图6-7所示,本申请实施例提供的缓冲处理方法,在步骤110中获取缓冲所需的目标时长之后,还可以包括以下步骤:
显示第一提示信息,所述第一提示信息指示所述目标时长;
在缓冲时长达到所述目标时长的情况下,显示第二提示信息;
其中,所述第二提示信息指示是否返回所述第一对象的所述第一界面。
所述第一提示信息和所述第二提示信息的显示形式可以是弹窗形式。
可以理解的是,所述第一提示信息用于提示用户还需缓冲多长时间;例如,若所述目标时长为3分钟,所述第一提示信息可以是“当前视频缓冲流畅播放时长大概需3分钟”。所述缓冲时长达到所述目标时长则表示缓冲完毕,即所述第二提示信息用于提示用户缓冲完毕,是否返回观看所述第一界面;例如,所述第二提示信息可以是“XXX视频流畅播放时长已缓冲完毕,是否返回继续观看”。
如此,所述第一提示信息则可以在显示目标界面之前提示用户缓冲完所述流畅播放时长对应的缓冲数据量所需的时长,让用户知道多久后可以返回观看第一界面;所述第二提示信息则可以在缓冲完毕之后提示用户是否返回观看第一界面,避免用户在观看目标界面时忘记在缓冲完毕后返回观看第一界面。
本申请实施例提供的缓冲处理方法,在显示第二提示信息之后,还可以包 括以下步骤:
在用户选择返回第一界面的情况下,显示第一界面;
在用户选择不返回第一界面的情况下,继续显示第二界面。
可选地,本申请实施例提供的缓冲处理方法,在显示目标界面之前还可以包括:
暂停所述第一界面的播放。
如此,则可以避免用户在观看目标界面时,第一对象的第一界面在后台边缓冲边播放。
需说明的是,在第一对象的第一界面没有卡顿时,本申请实施例提供的缓冲处理方法可以边缓冲边播放。
图8为本申请实施例提供的另一种缓冲处理方法的流程图。如图8所示,在一个实施例中,所述缓冲处理方法包括:
步骤810,在第一对象处于缓冲过程中的情况下,检测当前所述第一界面是否卡顿。
步骤820,若所述第一界面卡顿,则获取缓冲所需的目标时长。
步骤830,以弹窗的形式显示第一提示信息,所述第一提示信息指示所述目标时长。
步骤840,根据所述目标时长,确定目标界面,所述目标界面与所述第一界面不同。
步骤850,暂停所述第一界面的播放,并显示所述目标界面。
步骤860,在缓冲时长达到所述目标时长的情况下,以弹窗的形式显示第二提示信息,所述第二提示信息指示是否返回所述第一对象的所述第一界面。
步骤870,在用户选择返回所述第一界面的情况下,显示所述第一界面,并使所述第一界面继续播放。
本申请实施例提供的缓冲处理方法,可以在第一界面(包括视频播放界面、音频播放界面和信息浏览界面等)在缓冲的过程中出现卡顿时,显示与第一界面不同的界面,使所述第一界面在后台缓冲,在缓冲完毕后提示用户返回第一 界面。如此则可以提高用户体验,避免用户浪费时间在卡顿的界面中等待。
图9为本申请实施例提供的缓冲处理装置的结构示意图。
本申请实施例还提供了一种缓冲处理装置900,如图9所示,所述缓冲处理装置900可以包括:
获取模块910,用于在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长;
处理模块920,用于根据所述目标时长,确定目标界面;
显示模块930,用于显示所述目标界面;
其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
本申请实施例提供的缓冲处理装置,在第一对象处于缓冲过程中的情况下,可以获取缓冲所需的目标时长;然后根据所述目标时长,确定目标界面;显示所述目标界面;其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。由于在第一对象处于缓冲过程中可以显示与第一对象的第一界面不同的目标界面,如此,用户在等待第一对象缓冲的同时可以观看目标界面,进而解决了在缓冲出现卡顿的情况下,用户只能在卡顿的界面等待导致的对卡顿这段时间的利用率较低的问题。
可选地,所述处理模块920具体用于:
在所述目标时长小于阈值的情况下,将所述第一对象的指定界面作为所述目标界面,所述指定界面与所述第一界面不同;
在所述目标时长大于或等于所述阈值的情况下,确定第二对象,并将所述第二对象的第二界面作为所述目标界面。
如此,则可以根据所述目标时长的长短,显示不同的界面给用户观看,满足用户不同的需求,提升用户体验。
可选地,所述第二对象为在后台处于运行状态的应用。
如此,则可以满足用户需求,将用户想要看到的界面显示给用户观看。
可选地,所述获取模块910,在获取缓冲所需的目标时长时,具体用于:
获取所述第一对象的流畅播放时长和网络状况信息;
所述处理模块920在缓冲模块获取所述第一对象的流畅播放时长和网络状况信息之后,用于:
根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长。
如此,可以根据所述设置的流畅播放时长和用户的网络状况确定出缓冲时长(目标时长),即根据不同的网络状况和/或不同的流畅播放时长可以确定出不同的目标时长。因此,可以依据实际的应用情况确定目标时长,使得确定的目标时长可以适用于不同的应用情况。
可选地,所述网络状况信息包括网络速度;所述处理模块920在根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长时,具体用于:
确定与所述流畅播放时长对应的缓冲数据量;
基于所述缓冲数据量和所述网络速度,确定缓冲所需的目标时长。
如此,则可以先确定出缓冲数据量,然后根据缓冲数据量和网络速度确定出目标时长。
可选地,在所述获取模块910获取缓冲所需的目标时长之后,所述显示模块930还用于:
显示第一提示信息,所述第一提示信息指示所述目标时长;
在缓冲时长达到所述目标时长的情况下,显示第二提示信息;
其中,所述第二提示信息指示是否返回所述第一对象的所述第一界面。
如此,所述第一提示信息则可以在显示目标界面之前提示用户缓冲完所述流畅播放时长对应的缓冲数据量所需的时长,让用户知道多久后可以返回观看第一界面;所述第二提示信息则可以在缓冲完毕之后提示用户是否返回观看第一界面,避免用户在观看目标界面时忘记在缓冲完毕后返回观看第一界面。
可选地,所述第一对象为视频应用或音频应用,所述第一界面为视频播放界面或音频播放界面。
本申请实施例中的缓冲处理装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示 例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的缓冲处理可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
需了解的是,上文描述的缓冲处理方法可应用于本申请实施例提供的缓冲处理装置。
本申请实施例还提供了一种电子设备,所述电子设备包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如前文任一实施例中所述的缓冲处理方法的步骤。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图10为本申请实施例提供的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1010、网络模块1020、音频输出单元1030、输入单元1040、传感器1050、显示单元1060、用户输入单元1070、接口单元1080、存储器1090、以及处理器1100等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1100逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,所述处理器1100,用于在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长;并根据所述目标时长,确定目标界面;
所述显示单元1060,用于显示所述目标界面;
其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
本申请实施例提供的电子设备,在第一对象处于缓冲过程中的情况下,可以获取缓冲所需的目标时长;然后根据所述目标时长,确定目标界面;显示所述目标界面;其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。由于在第一对象处于缓冲过程中可以显示与第一对象的第一界面不同的目标界面,如此,用户在等待第一对象缓冲的同时可以观看目标界面,进而解决了在缓冲出现卡顿的情况下,用户只能在卡顿的界面等待导致的对卡顿这段时间的利用率较低的问题。
可选地,所述处理器1100在根据所述目标时长,确定目标界面的过程中,具体用于:
在所述目标时长小于阈值的情况下,将所述第一对象的指定界面作为所述目标界面,所述指定界面与所述第一界面不同;
在所述目标时长大于或等于所述阈值的情况下,确定第二对象,并将所述第二对象的第二界面作为所述目标界面。
如此,则可以根据所述目标时长的长短,显示不同的界面给用户观看,满足用户不同的需求,提升用户体验。
可选地,所述第二对象为在后台处于运行状态的应用。
如此,则可以满足用户需求,将用户想要看到的界面显示给用户观看。
可选地,所述处理器1100在获取缓冲所需的目标时长的过程中,具体用于:
获取所述第一对象的流畅播放时长和网络状况信息;
根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长。
如此,可以根据所述设置的流畅播放时长和用户的网络状况确定出缓冲时长(目标时长),即根据不同的网络状况和/或不同的流畅播放时长可以确定出不同的目标时长。因此,可以依据实际的应用情况确定目标时长,使得确定的目标时长可以适用于不同的应用情况。
可选地,在所述处理器1100获取缓冲所需的目标时长之后,所述显示单元1060还用于:
显示第一提示信息,所述第一提示信息指示所述目标时长;
在缓冲时长达到所述目标时长的情况下,显示第二提示信息;
其中,所述第二提示信息指示是否返回所述第一对象的所述第一界面。
如此,所述第一提示信息则可以在显示目标界面之前提示用户缓冲完所述流畅播放时长对应的缓冲数据量所需的时长,让用户知道多久后可以返回观看第一界面;所述第二提示信息则可以在缓冲完毕之后提示用户是否返回观看第一界面,避免用户在观看目标界面时忘记在缓冲完毕后返回观看第一界面。
应理解的是,本申请实施例中,输入单元1040可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1060可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元1070包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1090可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1100可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1100中。
本申请实施例还提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如前文任一实施例中所述的缓冲处理方法的步骤。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory, ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述缓冲处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时,实现上述缓冲处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例另提供了一种电子设备,电子设备被配置成用于执行上述缓冲处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请上文实施例中重点描述的是各个实施例之间的不同,各个实施例之间不同的优化特征只要不矛盾,均可以组合形成更优的实施例,考虑到行文简洁,在此则不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种缓冲处理方法,包括:
    在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长;
    根据所述目标时长,确定目标界面;
    显示所述目标界面;
    其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
  2. 根据权利要求1所述的缓冲处理方法,其中,所述根据所述目标时长,确定目标界面包括:
    在所述目标时长小于阈值的情况下,将所述第一对象的指定界面作为所述目标界面,所述指定界面与所述第一界面不同;
    在所述目标时长大于或等于所述阈值的情况下,确定第二对象,并将所述第二对象的第二界面作为所述目标界面。
  3. 根据权利要求2所述的缓冲处理方法,其中,所述第二对象为在后台处于运行状态的应用。
  4. 根据权利要求1-3任一项所述的缓冲处理方法,其中,所述获取缓冲所需的目标时长包括:
    获取所述第一对象的流畅播放时长和网络状况信息;
    根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长。
  5. 根据权利要求1所述的缓冲处理方法,其中,在所述获取缓冲所需的目标时长之后,所述缓冲处理方法还包括:
    显示第一提示信息,所述第一提示信息用于指示所述目标时长;
    在缓冲时长达到所述目标时长的情况下,显示第二提示信息;
    其中,所述第二提示信息用于指示是否返回所述第一对象的所述第一界面。
  6. 一种缓冲处理装置,包括:
    获取模块,用于在第一对象处于缓冲过程中的情况下,获取缓冲所需的目标时长;
    处理模块,用于根据所述目标时长,确定目标界面;
    显示模块,用于显示所述目标界面;
    其中,所述目标界面与所述第一对象的第一界面不同,所述第一界面用于指示所述第一对象处于缓冲过程中。
  7. 根据权利要求6所述的缓冲处理装置,其中,所述处理模块具体用于:
    在所述目标时长小于阈值的情况下,将所述第一对象的指定界面作为所述目标界面,所述指定界面与所述第一界面不同;
    在所述目标时长大于或等于所述阈值的情况下,确定第二对象,并将所述第二对象的第二界面作为所述目标界面。
  8. 根据权利要求7所述的缓冲处理装置,其中,所述第二对象为在后台处于运行状态的应用。
  9. 根据权利要求6-8任一项所述的缓冲处理装置,其中,所述获取模块具体用于:
    获取所述第一对象的流畅播放时长和网络状况信息;
    根据所述流畅播放时长和所述网络状况信息,确定缓冲所需的目标时长。
  10. 根据权利要求6所述的缓冲处理装置,其中,在所述获取模块获取缓冲所需的目标时长之后,所述显示模块还用于:
    显示第一提示信息,所述第一提示信息用于指示所述目标时长;
    在缓冲时长达到所述目标时长的情况下,显示第二提示信息;
    其中,所述第二提示信息用于指示是否返回所述第一对象的所述第一界面。
  11. 一种电子设备,所述电子设备包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的缓冲处理方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的缓冲处理方法的步骤。
  13. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5任一项所述的缓冲处理方法的步骤。
  14. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-5任一项所述的缓冲处理方法的步骤。
  15. 一种电子设备,所述电子设备被配置为用于执行如权利要求1-5任一项所述的缓冲处理方法的步骤。
PCT/CN2022/115869 2021-09-02 2022-08-30 缓冲处理方法及装置 WO2023030325A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111025586.3A CN113849721A (zh) 2021-09-02 2021-09-02 缓冲处理方法及装置
CN202111025586.3 2021-09-02

Publications (1)

Publication Number Publication Date
WO2023030325A1 true WO2023030325A1 (zh) 2023-03-09

Family

ID=78976766

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/115869 WO2023030325A1 (zh) 2021-09-02 2022-08-30 缓冲处理方法及装置

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849721A (zh) * 2021-09-02 2021-12-28 维沃移动通信有限公司 缓冲处理方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294688A (zh) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 网页浏览方法及系统
CN104331280A (zh) * 2014-10-27 2015-02-04 百度在线网络技术(北京)有限公司 一种信息显示方法及装置
CN105354062A (zh) * 2015-11-06 2016-02-24 深圳市金立通信设备有限公司 一种加载页面的显示方法及移动终端
US20170208115A1 (en) * 2014-07-31 2017-07-20 Beijing Kingsoft Internet Security Software Co Ltd Information processing method and apparatus
CN112527171A (zh) * 2020-12-14 2021-03-19 北京聪明核桃教育科技有限公司 多媒体文件播放方法、装置、设备及介质
CN113849721A (zh) * 2021-09-02 2021-12-28 维沃移动通信有限公司 缓冲处理方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294688A (zh) * 2012-02-24 2013-09-11 宇龙计算机通信科技(深圳)有限公司 网页浏览方法及系统
US20170208115A1 (en) * 2014-07-31 2017-07-20 Beijing Kingsoft Internet Security Software Co Ltd Information processing method and apparatus
CN104331280A (zh) * 2014-10-27 2015-02-04 百度在线网络技术(北京)有限公司 一种信息显示方法及装置
CN105354062A (zh) * 2015-11-06 2016-02-24 深圳市金立通信设备有限公司 一种加载页面的显示方法及移动终端
CN112527171A (zh) * 2020-12-14 2021-03-19 北京聪明核桃教育科技有限公司 多媒体文件播放方法、装置、设备及介质
CN113849721A (zh) * 2021-09-02 2021-12-28 维沃移动通信有限公司 缓冲处理方法及装置

Also Published As

Publication number Publication date
CN113849721A (zh) 2021-12-28

Similar Documents

Publication Publication Date Title
US20220413661A1 (en) List flow implementation method, electronic device, and storage medium
WO2017076289A1 (zh) 视频播放方法及装置
WO2018201746A1 (zh) 预加载视频的方法、设备、视频播放器、电子设备
AU2021348459B2 (en) Method and apparatus for user guide, device and storage medium
US10650182B2 (en) Method and apparatus for displaying multimedia content in browser
US20150089262A1 (en) Heuristics based on backoff for power modes
WO2017218038A1 (en) Server-based conversion of autoplay content to click-to-play content
EP4351149A1 (en) Display control method and apparatus, and device and storage medium
TW201633790A (zh) 視頻內容播放方法、裝置及終端設備
CN111258484A (zh) 一种视频播放方法、装置、电子设备及存储介质
CN111163348A (zh) 基于视频播放的搜索方法和装置
WO2023005828A1 (zh) 消息显示方法、装置和电子设备
WO2023030325A1 (zh) 缓冲处理方法及装置
CN111258736A (zh) 信息处理方法、装置和电子设备
WO2016112791A1 (zh) 移动终端应用程序页面的展现方法和装置
CN110740373A (zh) 一种音/视频文件的缓冲方法及相关装置
US20140297836A1 (en) Tracking usage metrics for a mobile application
WO2022068721A1 (zh) 截屏方法、装置及电子设备
CN113938551B (zh) 缓存方法、装置、电子设备和存储介质
CN112312225A (zh) 信息展示方法、装置和电子设备
WO2017067159A1 (zh) 对ugc进行反馈以及展示反馈信息的方法和终端
WO2024027648A1 (zh) 信息的显示方法、装置、电子设备和存储介质
WO2023030234A1 (zh) 视频处理方法及装置
WO2023125553A1 (zh) 插帧方法、装置及电子设备
WO2023030116A1 (zh) 显示方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22863460

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE