Video processing method and device, electronic equipment and storage medium
By blocking the video playback controls in the first display page and configuring them to a hidden state, the problem of card screen or flashing black when switching to display pages in the video playback scene is solved, and the stability and smoothness of video playback are achieved.
Patent Information
- Application Number
- CN202311159936.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-08
- Publication Date
- 2025-03-11
AI Technical Summary
In the video playback scene, when switching to display the page, the video screen is prone to card screen or flash black.
In response to a switching instruction from the first display page to the second display page, the first video playback control carried in the first display page is blocked, and after switching to display the second display page, the first video playback control is configured in a hidden state.
It avoids the overlap between video playback controls, solves the problem of card screen or flashing black during video playback, and improves the stability of video playback.
Smart Images

Figure CN119603510A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of video processing technology, and in particular to a video processing method, device, electronic device, and storage medium. Background Art
[0002] In the video playback scenario, different option tabs are usually used to switch to play videos on different display pages, and the video playback control SurfaceView is selected on the display page to play the video. However, when the option tab is actually used to switch the display page, it is found that after using the SurfaceView control to play videos on the display pages of different option tabs, the video screen on the display page of the previous option tab will be stuck in the video screen of the current display page, causing the screen to be stuck or flashing black during video playback. Summary of the invention
[0003] The present disclosure provides a video processing method, device, electronic device and storage medium to solve the problem of video screen freezing or black flashing when switching display pages.
[0004] In a first aspect, an embodiment of the present disclosure provides a video processing method, the method comprising:
[0005] In response to a switching instruction from a first display page to a second display page, a first video playback control carried in the first display page is shielded, the video playback control being a surface view object;
[0006] Displaying the second display page, wherein the second display page carries a second video playback control for playing the second video;
[0007] After switching to display the second display page, the first video playback control that is blocked in the first display page is configured to be in a hidden state.
[0008] In a second aspect, an embodiment of the present disclosure further provides a video processing method, the device comprising:
[0009] A shielding module, configured to shield a first video playback control carried in the first display page in response to a switching instruction from the first display page to the second display page, wherein the video playback control is a view object of a surface layer;
[0010] A display module, used for displaying the second display page, wherein the second display page carries a second video playback control for playing the second video;
[0011] The hiding module is used to configure the first video playback control that is blocked in the first display page to a hidden state after switching to display the second display page.
[0012] In a third aspect, an electronic device is also provided in an embodiment of the present disclosure, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the video processing method described in any one of the above embodiments.
[0016] In a fourth aspect, a computer-readable medium is also provided in an embodiment of the present disclosure, wherein the computer-readable medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video processing method described in any one of the above embodiments when executed.
[0017] In the disclosed embodiment, when the switch from the first display page to the second display page is triggered, the first video playback control carried in the first display page will be blocked. In this way, when the switch to the second display page is completed and displayed, the first video playback control that has not been destroyed in the first display page will not overlap with the second video playback control in the second display page, and the video screen played on the two video playback controls will not have a stuck screen problem. In addition, after switching to display the second display page, the blocked first video playback control in the first display page will be configured to be hidden, which can solve the problem of black flashing when the video screen playback is updated in the second display page, which is caused by the first video playback control in the first display page being only blocked but visible in the first display page.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1It is a schematic diagram of a video processing method provided by an embodiment of the present disclosure;
[0021] Figure 2 It is a schematic diagram of page flow for switching between different option labels Tab to play videos in different display pages applicable to the embodiment of the present disclosure;
[0022] Figure 3 is a schematic diagram of the structure of a video processing device provided by an embodiment of the present disclosure;
[0023] Figure 4 It is a structural schematic diagram of an electronic device for implementing a video processing method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0026] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0028] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0030] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0031] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0032] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0033] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0034] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0035] Figure 1 A flow chart of a video processing method provided in an embodiment of the present disclosure is applicable to the situation where different option tags Tab are used to switch to play videos in different display pages in a video playback scene. The method can be executed by a video processing device, which can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, such as a computer, laptop, smart phone, or tablet computer.
[0036] like Figure 1 As shown, the video processing method of the embodiment of the present disclosure may include the following process:
[0037] S110. In response to a switching instruction from a first display page to a second display page, a first video playback control carried in the first display page is blocked, where the video playback control is a surface view object.
[0038] See also Figure 2 In the scenario of playing videos in a video application, option tags are set at the top and bottom of the video application interface. By switching between different option tags, you can switch to the display page corresponding to different option tags for video playback. Each option tag can be implemented using fragments. In order to increase the switching speed between different option tags, it can be configured that when switching from one fragment to another, the previous fragment is not in a destroyed state. It can be understood that the fragments corresponding to each option tag Tab are in a survival state, and these fragments are in the same application component Activity.
[0039] The video playback control is a surface view object, such as SurfaceView. SurfaceView can be an inherited class of view, which is a class that can display images, that is, it can draw images on the screen and display them. The video playback control has a built-in surface layer for drawing, and the format and size of the surface layer can be controlled and adjusted. Since SurfaceView has the advantages of less memory usage, higher performance and lower power consumption than TextureView, it is often used to play videos in display pages. However, if the SurfaceView control is used to play videos in display pages corresponding to different option labels Tab, there will be a stuck screen problem when switching the display page corresponding to the option label Tab, that is, the video screen in the display page corresponding to the previous option label Tab will be stuck in the current screen, and there will be an obvious stuck screen problem.
[0040] For this purpose, see Figure 2 , taking option label 1 corresponding to the first display page and option label 2 corresponding to the second display page as an example, when clicking on different option labels, a switching instruction from the first display page 210 to the second display page 230 can be triggered. When the switching instruction from the first display page 210 to the second display page 230 is received, it will not directly switch from the first display page 210 to the second display page 230 for display, but first use an obstruction to block the first video playback control 220 carried in the original first display page 210. At this time, the first video playback control 220 is blocked by the obstruction in the lower layer of the obstruction.
[0041] See also Figure 2During the period when the first video playback control 220 is blocked, the first video playback control 220 is not destroyed and still exists, but is blocked and cannot be displayed. When the blocking object used to block the first video playback control 220 is reduced or moved, the first video playback control is displayed.
[0042] By adopting the above method, since the first video playback control carried in the first display page is blocked, when the second display page is switched and displayed, the first video playback control that has not been destroyed in the first display page will not overlap with the second video playback control in the second display page, and the video images played on the two video playback controls will not have a stuck screen problem.
[0043] Optionally, the first video playback control carried in the first display page is blocked, including: covering and blocking the first video playback control carried in the first display page with a preset image on an upper layer of the first video playback control carried in the first display page, and blocking the first video playback control carried in the first display page with the preset image.
[0044] As an optional but non-limiting implementation, shielding the first video playback control carried in the first display page includes the following steps:
[0045] The target video cover is displayed in the first display page, and the target video cover is configured to cover the first video playback control carried in the first display page.
[0046] See also Figure 2 When a switch instruction to switch from the first display page 210 to the second display page 230 is received but the display page switching has not started, the target video cover can be obtained, and the upper layer of the first video playback control 220 carried in the first display page 210 is covered and blocked, and the first video playback control 220 carried in the first display page 210 is blocked by the target video cover. When the second display page 230 is displayed, the first video playback control 220 in the first display page 210 that has not been destroyed will not overlap with the second video playback control 240 in the second display page 230.
[0047] Optionally, in order to minimize the problem of sudden screen changes when switching from the first display page 210 to the second display page 230, the target video cover used to shield the first video playback control carried in the first display page can be a static frame of the first video played by the first video playback control in the first display page. Optionally, the target video cover displayed in the first display page is located in an adjacent upper layer of the first video playback control carried in the first display page.
[0048] S120: Display a second display page, where the second display page carries a second video playback control for playing a second video.
[0049] See also Figure 2 When switching from the first display page 210 to the second display page 230, the first video playback control carried in the first display page 210 is blocked, and the second video playback control 240 carried in the second display page 230 will not overlap with the first video playback control 220 that has not been destroyed in the first display page 210. Since there will be no overlap, it is best to avoid overlapping of the video images played on the two video playback controls and reduce the problem of stuck images as much as possible.
[0050] Before switching to the second display page for display, the first video playback control in the first display page is not directly hidden. This is because if it is directly hidden, the first video playback control in the first display page and the second video playback control in the second display page can avoid overlapping and solve the problem of stuck screen, but there will still be a black flash problem when switching display pages corresponding to different option labels. By blocking the first video playback control in the first display page, not only the stuck screen problem can be solved, but also the black flash problem when switching display pages corresponding to different option labels can be solved.
[0051] As an optional but non-limiting implementation, displaying the second display page includes the following steps:
[0052] A second video playback control is loaded in the second display page, and the second video playback control is used to play and display the second video in the second display page.
[0053] See also Figure 2 The second display page 230 is provided with a second video playback control 240, and the second video playback control 240 is used to obtain the second video resource that needs to be played in the second display page, and the second video resource is used to render the video screen to obtain the corresponding second video to be displayed in the second display page.
[0054] As an optional but non-limiting implementation, using a second video playback control to play and display the second video in the second display page includes the following steps:
[0055] The second video resource corresponding to the second display page is loaded into the second video playback control, and based on the loaded second video resource, the second video playback control is called to draw and display the second video in the second display page.
[0056] See also Figure 2, the second video resource to be played most recently on the second display page 230 is sequentially loaded into the second video playback control in the resource order. The second video playback control is called to draw and display the loaded second video resource, and the drawn video screen is sequentially displayed in the second video playback control to form the second video played in the second display page.
[0057] S130: After switching to display the second display page, configure the first video playback control that is blocked in the first display page to be in a hidden state.
[0058] After switching to display the second display page, the first video playback control in the first display page is only blocked but not destroyed, and when the blocking object blocking the first video playback control is reduced or moved, the first video playback control in the first display page is displayed. In this way, when the second display page is displayed, the flashing black problem caused by the first video playback control still occurs.
[0059] To this end, after switching to display the second display page, the first video playback control that is blocked in the first display page will also be configured to be hidden. At this time, even if the obstruction blocking the first video playback control is reduced or moved, the first video playback control in the first display page will no longer be displayed, thereby solving the problem of flashing black caused by the first video playback control.
[0060] As an optional but non-limiting implementation, configuring the blocked first video playback control in the first display page to be in a hidden state includes the following steps:
[0061] When the next vertical synchronization signal starting from switching to display the second display page arrives, the first video playback control blocked in the first display page is configured to be in a hidden state.
[0062] As an optional but non-limiting implementation, when the first video playback control carried in the first display page is blocked, the following steps are also included:
[0063] A target delay operation of the first video playback control is configured, where the target delay operation is used to hide the first video playback control when a next vertical synchronization signal starting from switching to display the second display page arrives.
[0064] Accordingly, after switching to display the second display page, configuring the first video playback control that is blocked in the first display page to be in a hidden state includes the following steps:
[0065] When the next vertical synchronization signal starting from switching to display the second display page arrives, a target delay operation is performed to hide the first video playback control.
[0066] The first display page and the second display page are refreshed at a fixed frequency when displaying images. This refresh rate is the frequency of the vertical synchronization signal VSync. When a vertical synchronization signal VSync cycle arrives, the video image played on the first display page or the second display page can be refreshed. To this end, when the next vertical synchronization signal arrives after switching to display the second display page, the first video playback control that is blocked in the first display page can be configured to be hidden.
[0067] As an optional but non-limiting implementation, the video processing method of the embodiment of the present disclosure further includes the following steps A1-A2:
[0068] Step A1: In response to a switch return instruction from the second display page to the first display page, a first video playback control carried in the first display page is configured to be in a visible state.
[0069] Step A2: using a first video playback control to play and display the first video in a first display page.
[0070] See also Figure 2 , taking option label 1 corresponding to the first display page and option label 2 corresponding to the second display page as an example, when clicking on different option labels, an instruction to switch back from the second display page 230 to the first display page 210 can be triggered. After receiving the instruction to switch back from the second display page to the first display page, the first video playback control carried in the first display page will be adjusted from a hidden state to a visible state. Since the first video playback control in the first display page is blocked when switching from the first display page to the second display page, it is necessary to adjust the blocking object blocking the first video playback control to no longer block the first video playback control, and the first video playback control can be displayed in the first display page. Furthermore, the first video playback control in the first display page can be used to play and display the first video in the first display page.
[0071] As an optional but non-limiting implementation, configuring the first video playback control carried in the first display page to be in a visible state includes the following steps C1-C3:
[0072] Step C1: Detect whether the first video playback control in the first display page is in a hidden state.
[0073] Step C2: If yes, configure the first video playback control carried in the first display page to no longer be hidden, and hide the target video cover in the first display page that is used to shield the first playback control, so that the first video playback control is visible.
[0074] Step C3: If not, hide the target video cover in the first display page that is used to shield the first playback control, so that the first video playback control is visible.
[0075] The technical solution of the disclosed embodiment, when triggering the switch from the first display page to the second display page, will block the first video playback control carried in the first display page, so that when the second display page is switched and displayed, the first video playback control that has not been destroyed in the first display page will not overlap with the second video playback control in the second display page, and the video screen played on the two video playback controls will not have a stuck screen problem. In addition, after switching to display the second display page, the blocked first video playback control in the first display page will be configured to be hidden, which can solve the problem of flashing black when updating the video screen playback in the second display page, which is caused by the first video playback control in the first display page being only blocked but visible in the first display page.
[0076] Figure 3 This is a structural schematic diagram of a video processing device provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation where different option tags Tab are used to switch between different display pages for video playback in a video playback scenario. The video processing device can be implemented in the form of software and / or hardware, and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, such as a computer, laptop, smart phone, or tablet computer.
[0077] like Figure 3 As shown, the video processing device of the embodiment of the present disclosure may include: a blocking module 310, a display module 320 and a hiding module 330. Among them:
[0078] A shielding module 310, configured to shield a first video playback control carried in the first display page in response to a switching instruction from the first display page to the second display page, wherein the video playback control is a view object of a surface layer;
[0079] A display module 320, configured to display the second display page, wherein the second display page carries a second video playback control for playing the second video;
[0080] The hiding module 330 is used to configure the first video playback control that is blocked in the first display page to a hidden state after switching to display the second display page.
[0081] Based on the above embodiment, optionally, shielding the first video playback control carried in the first display page includes:
[0082] A target video cover is displayed in the first display page, and the target video cover is configured to cover a first video playback control carried in the first display page.
[0083] Based on the above embodiment, optionally, the target video cover is a static frame of the first video played by the first video playback control in the first display page.
[0084] Based on the above embodiment, optionally, the target video cover displayed in the first display page is located in an adjacent upper layer of the first video playback control carried in the first display page.
[0085] Based on the above embodiment, optionally, displaying the second display page includes:
[0086] Loading a second video playback control in the second display page;
[0087] The second video playback control is used to play and display the second video in the second display page.
[0088] Based on the above embodiment, optionally, using the second video playback control to play and display the second video in the second display page includes:
[0089] Loading a second video resource corresponding to the second display page into a second video playback control;
[0090] Based on the loaded second video resource, the second video playback control is called to draw and display the second video in the second display page.
[0091] Based on the above embodiment, optionally, when the first video playback control carried in the first display page is blocked, the method further includes:
[0092] Configuring a target delay operation of the first video playback control, wherein the target delay operation is used to hide the first video playback control when a next vertical synchronization signal starting from switching to display the second display page arrives;
[0093] Configuring the first video playback control that is blocked in the first display page to be in a hidden state includes:
[0094] When the next vertical synchronization signal starting from switching to display the second display page arrives, the target delay operation is performed to hide the first video playback control.
[0095] Based on the above embodiment, optionally, configuring the first video playback control that is blocked in the first display page to be in a hidden state includes:
[0096] When the next vertical synchronization signal starting from switching to display the second display page arrives, the first video playback control blocked in the first display page is configured to be in a hidden state.
[0097] Based on the above embodiment, optionally, the video processing method further includes:
[0098] In response to a switch-back instruction from the second display page to the first display page, configuring a first video playback control carried in the first display page to be in a visible state;
[0099] The first video playback control is used to play and display the first video in the first display page.
[0100] Based on the above embodiment, optionally, configuring the first video playback control carried in the first display page to be in a visible state includes:
[0101] Detecting whether a first video playback control in the first display page is in a hidden state;
[0102] If yes, the first video playback control carried in the first display page is configured to no longer be hidden, and the target video cover used to shield the first playback control in the first display page is hidden, so that the first video playback control is in a visible state;
[0103] If not, the target video cover used to shield the first playback control in the first display page is hidden so that the first video playback control is visible.
[0104] The technical solution provided by the embodiment of the present disclosure blocks the first video playback control carried in the first display page when triggering the switch from the first display page to the second display page. In this way, when the switch to the second display page is completed and displayed, the first video playback control that has not been destroyed in the first display page will not overlap with the second video playback control in the second display page, and the video screen played on the two video playback controls will not have a stuck screen problem. In addition, after switching to display the second display page, the blocked first video playback control in the first display page will be configured to be hidden, which can solve the problem of black flashing when updating the video screen playback in the second display page, which is caused by the fact that the first video playback control in the first display page is only blocked but visible in the first display page.
[0105] The video processing device provided in the embodiments of the present disclosure can execute the video processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0106] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0107] Figure 4 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 4 , which shows an electronic device (eg, Figure 4 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0108] like Figure 4 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0109] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0111] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0112] The electronic device provided by the embodiment of the present disclosure and the video processing method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0113] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video processing method provided by the above embodiments is implemented.
[0114] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0115] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0116] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0117] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: in response to a switching instruction from a first display page to a second display page, blocks a first video playback control carried in the first display page, wherein the video playback control is a surface view object; displays the second display page, wherein the second display page carries a second video playback control for playing a second video; and after switching to display the second display page, configures the blocked first video playback control in the first display page to a hidden state.
[0118] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0121] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0122] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] According to one or more embodiments of the present disclosure, Example 1 provides a video processing method, the method comprising:
[0124] In response to a switching instruction from a first display page to a second display page, a first video playback control carried in the first display page is shielded, the video playback control being a surface view object;
[0125] Displaying the second display page, wherein the second display page carries a second video playback control for playing the second video;
[0126] After switching to display the second display page, the first video playback control that is blocked in the first display page is configured to be in a hidden state.
[0127] According to one or more embodiments of the present disclosure, Example 2, according to the method described in Example 1, shielding the first video playback control carried in the first display page includes:
[0128] A target video cover is displayed in the first display page, and the target video cover is configured to cover a first video playback control carried in the first display page.
[0129] According to one or more embodiments of the present disclosure, Example 3 is based on the method described in Example 2, wherein the target video cover is a static frame of the first video played by the first video playback control in the first display page.
[0130] According to one or more embodiments of the present disclosure, Example 4 is based on the method described in Example 2, wherein the target video cover displayed in the first display page is located in an adjacent upper layer of the first video playback control carried in the first display page.
[0131] According to one or more embodiments of the present disclosure, Example 5 displays the second display page according to the method described in Example 1, including:
[0132] Loading a second video playback control in the second display page;
[0133] The second video playback control is used to play and display the second video in the second display page.
[0134] According to one or more embodiments of the present disclosure, Example 6, according to the method described in Example 5, uses the second video playback control to play and display the second video in the second display page, including:
[0135] Loading a second video resource corresponding to the second display page into a second video playback control;
[0136] Based on the loaded second video resource, the second video playback control is called to draw and display the second video in the second display page.
[0137] According to one or more embodiments of the present disclosure, Example 7 is a method according to any one of Examples 1 to 6, and when the first video playback control carried in the first display page is blocked, it also includes:
[0138] Configuring a target delay operation of the first video playback control, wherein the target delay operation is used to hide the first video playback control when a next vertical synchronization signal starting from switching to display the second display page arrives;
[0139] Configuring the first video playback control that is blocked in the first display page to be in a hidden state includes:
[0140] When the next vertical synchronization signal starting from switching to display the second display page arrives, the target delay operation is performed to hide the first video playback control.
[0141] According to one or more embodiments of the present disclosure, Example 8 configures the first video playback control that is blocked in the first display page to a hidden state according to any method in Examples 1 to 6, including:
[0142] When the next vertical synchronization signal starting from switching to display the second display page arrives, the first video playback control blocked in the first display page is configured to be in a hidden state.
[0143] According to one or more embodiments of the present disclosure, Example 9 is a method according to any one of Examples 1 to 6, wherein the method further includes:
[0144] In response to a switch-back instruction from the second display page to the first display page, configuring a first video playback control carried in the first display page to be in a visible state;
[0145] The first video playback control is used to play and display the first video in the first display page. According to one or more embodiments of the present disclosure, Example 10 configures the first video playback control carried in the first display page to be in a visible state according to the method described in Example 9, including:
[0146] Detecting whether a first video playback control in the first display page is in a hidden state;
[0147] If so, the first video playback control carried in the first display page is configured to no longer be hidden, and the target video cover used to cover the first playback control in the first display page is hidden, so that the first video playback control is in a visible state;
[0148] If not, the target video cover used to shield the first playback control in the first display page is hidden so that the first video playback control is visible.
[0149] According to one or more embodiments of the present disclosure, Example 11 provides a video processing device, the device comprising:
[0150] A shielding module, configured to shield a first video playback control carried in the first display page in response to a switching instruction from the first display page to the second display page, wherein the video playback control is a view object of a surface layer;
[0151] A display module, used for displaying the second display page, wherein the second display page carries a second video playback control for playing the second video;
[0152] The hiding module is used to configure the first video playback control that is blocked in the first display page to a hidden state after switching to display the second display page.
[0153] According to one or more embodiments of the present disclosure, Example 12 provides an electronic device, the electronic device comprising:
[0154] one or more processors;
[0155] a storage device for storing one or more programs,
[0156] When the one or more programs are executed by the one or more processors, the one or more processors implement the video processing method as described in any one of Examples 1-10.
[0157] According to one or more embodiments of the present disclosure, Example 13 provides a storage medium containing computer executable instructions, which are used to perform the video processing method described in any one of Examples 1-11 when executed by a computer processor.
[0158] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0159] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0160] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video processing method, characterized in that: The method comprises: In response to a switching instruction from a first display page to a second display page, a first video playback control carried in the first display page is shielded, the video playback control being a surface view object; Displaying the second display page, wherein the second display page carries a second video playback control for playing the second video; After switching to display the second display page, the first video playback control that is blocked in the first display page is configured to be in a hidden state.
2. The method according to claim 1, characterized in that The step of blocking a first video playback control carried in the first display page includes: A target video cover is displayed in the first display page, and the target video cover is configured to cover a first video playback control carried in the first display page.
3. The method according to claim 2, characterized in that The target video cover is a static frame of the first video played by the first video playback control in the first display page.
4. The method according to claim 2, characterized in that: The target video cover displayed in the first display page is located in an adjacent upper layer of the first video playback control carried in the first display page.
5. The method according to claim 1, characterized in that Displaying the second display page includes: Loading a second video playback control in the second display page; The second video playback control is used to play and display the second video in the second display page.
6. The method according to claim 5, characterized in that Using the second video playback control to play and display the second video in the second display page includes: Loading a second video resource corresponding to the second display page into a second video playback control; Based on the loaded second video resource, the second video playback control is called to draw and display the second video in the second display page.
7. The method according to any one of claims 1 to 6, characterized in that: When the first video playback control carried in the first display page is blocked, the method further includes: Configuring a target delay operation of the first video playback control, wherein the target delay operation is used to hide the first video playback control when a next vertical synchronization signal starting from switching to display the second display page arrives; Configuring the first video playback control that is blocked in the first display page to be in a hidden state includes: When the next vertical synchronization signal starting from switching to display the second display page arrives, the target delay operation is performed to hide the first video playback control.
8. The method according to any one of claims 1 to 6, characterized in that: Configuring the first video playback control that is blocked in the first display page to be in a hidden state includes: When the next vertical synchronization signal starting from switching to display the second display page arrives, the first video playback control blocked in the first display page is configured to be in a hidden state.
9. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to a switch-back instruction from the second display page to the first display page, configuring a first video playback control carried in the first display page to be in a visible state; The first video playback control is used to play and display the first video in the first display page.
10. The method according to claim 9, characterized in that Configuring the first video playback control carried in the first display page to be in a visible state includes: Detecting whether a first video playback control in the first display page is in a hidden state; If so, the first video playback control carried in the first display page is configured to no longer be hidden, and the target video cover used to cover the first playback control in the first display page is hidden, so that the first video playback control is in a visible state; If not, the target video cover used to shield the first playback control in the first display page is hidden so that the first video playback control is visible.
11. A video processing device, characterized in that: The device comprises: A shielding module, configured to shield a first video playback control carried in the first display page in response to a switching instruction from the first display page to the second display page, wherein the video playback control is a view object of a surface layer; A display module, used for displaying the second display page, wherein the second display page carries a second video playback control for playing the second video; The hiding module is used to configure the first video playback control that is blocked in the first display page to a hidden state after switching to display the second display page.
12. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video processing method as described in any one of claims 1-10.
13. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the video processing method according to any one of claims 1 to 10.