Webpage video playing method, mobile terminal, electronic device and storage medium
By dynamically switching between same-layer and non-same-layer playback interfaces, the problem of a monotonous browser video playback interface is solved, achieving unified control display and a user-friendly video playback experience.
Patent Information
- Application Number
- CN202310014524.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2040-11-20
AI Technical Summary
In existing technologies, browser video playback interfaces are too simple to meet user needs, leading to problems such as accidental operation and obstruction by pop-up comments and login boxes.
By detecting switching operations, the system dynamically switches between in-layer and non-in-layer playback interfaces, providing a unified video playback interface that covers the webpage content interface and simplifies user operations.
It enriches the webpage video playback interface, avoids accidental operation, improves user experience, simplifies user operation, provides clear video images, and unifies control display.
Smart Images

Figure CN116233538B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of video playing, and particularly relates to a webpage video playing method, a mobile terminal, an electronic device and a storage medium. BACKGROUND
[0002] With the development of electronic technology, more and more users choose to watch videos in a browser of a mobile terminal. In the browser, the user can select any video website to watch videos according to needs, and the video websites include, for example, iQiyi, bilibili and Weibo. However, the video playing interface of the browser is relatively single at present, and it is difficult to meet the needs of the user. SUMMARY
[0003] The first aspect of the embodiment of the present application provides a webpage video playing method, which comprises the following steps: detecting a switching operation for a video playing interface; if the switching operation is detected and the video playing interface is a same-layer playing interface, switching the video playing interface from the same-layer playing interface to a non-same-layer playing interface; or if the switching operation is detected and the video playing interface is the non-same-layer playing interface, switching the video playing interface from the non-same-layer playing interface to the same-layer playing interface; wherein the non-same-layer playing interface is overlaid on a webpage content interface, and the same-layer playing interface is in the same interface as the webpage content interface.
[0004] The second aspect of the embodiment of the present application provides a mobile terminal, which comprises: a detection module configured to detect a switching operation for a video playing interface; and a switching module configured to, if the switching operation is detected and the video playing interface is a same-layer playing interface, switch the video playing interface from the same-layer playing interface to a non-same-layer playing interface; or if the switching operation is detected and the video playing interface is the non-same-layer playing interface, switch the video playing interface from the non-same-layer playing interface to the same-layer playing interface; wherein the non-same-layer playing interface is overlaid on a webpage content interface, and the same-layer playing interface is in the same interface as the webpage content interface.
[0005] The third aspect of the embodiment of the present application provides an electronic device, which comprises a processor and a memory connected with the processor. The memory is configured to store program data, and the processor is configured to execute the program data to realize the webpage video playing method described above.
[0006] The fourth aspect of the embodiment of the present application provides a computer readable storage medium, which stores program data. When the program data is executed by a processor, the program data is used to realize the webpage video playing method described above.
[0007] The beneficial effects of the present application are: different from the prior art, the present application provides a method for dynamically switching a video playing interface, that is, by detecting a switching operation for the video playing interface, and switching a same-layer playing interface and a non-same-layer playing interface when the switching operation is detected, so that when a user needs a non-same-layer playing interface with unified controls to play a video, the video playing interface can be switched to the non-same-layer playing interface, and when the user needs to simultaneously watch bullet screen data or process the bullet screen data, the video playing interface is switched to the same-layer playing interface, so that the web page video playing simultaneously has the capability of same-layer / non-same-layer playing, the web page video playing interface is enriched, and the user operation is simplified. BRIEF DESCRIPTION OF DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings described below are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings. Among them:
[0009] Figure 1 is a flowchart of an embodiment of the web page video playing method provided by the present application;
[0010] Figure 2 is a structural diagram of an embodiment of the same-layer playing interface provided by the present application;
[0011] Figure 3 is a structural diagram of an embodiment of the non-same-layer playing interface provided by the present application;
[0012] Figure 4 is a structural diagram of another embodiment of the non-same-layer playing interface provided by the present application;
[0013] Figure 5 is a flowchart of another embodiment of the web page video playing method provided by the present application;
[0014] Figure 6 is a structural diagram of an embodiment of the same-layer playing interface and the non-same-layer playing interface provided by the present application;
[0015] Figure 7 is a framework diagram of an embodiment of the mobile terminal provided by the present application;
[0016] Figure 8 is a framework diagram of an embodiment of the electronic device provided by the present application;
[0017] Figure 9 is a framework diagram of an embodiment of the computer storage medium provided by the present application. DETAILED DESCRIPTION
[0018] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort fall within the protection scope of the present application.
[0019] The terms "first", "second" in the present application are only for descriptive purpose, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality" is at least two, for example, two, three, etc., unless otherwise explicitly and specifically limited. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.
[0020] In the present application, referring to "embodiments" means that the specific features, structures or properties described in combination with the embodiments can be included in at least one embodiment of the present application. The phrase appears at various places in the specification does not necessarily refer to the same embodiment, nor is it mutually exclusive or alternative to other embodiments. A person of ordinary skill in the art explicitly and implicitly understands that the embodiments described herein can be combined with other embodiments.
[0021] At present, the video playing interfaces of different video websites are often different, so that when a user operates the video playing interface, misoperation may occur, for example, the placement positions of operable controls on the video playing interface are different or the operable controls are difficult to identify, which will cause the user to be difficult to find the target control and mis-click other controls. In this regard, the browser provides a unified video playing interface for different video playing websites. Since the video playing interface is overlaid on the webpage content interface, that is, the content such as the barrage and login box displayed on the webpage content interface is blocked, causing the user to be unable to watch the barrage while watching the video and to process the login box in time.
[0022] Please refer to Figure 1 , Figure 1 is a flowchart of an embodiment of a webpage video playing method provided by the present application, Figure 2 is a structural schematic diagram of an embodiment of a same-layer playing interface provided by the present application, Figure 3is a structural schematic diagram of an embodiment of a non-same-layer playing interface provided in the application, Figure 4 is a structural schematic diagram of another embodiment of a non-same-layer playing interface provided in the application.
[0023] In this embodiment, the execution subject of the webpage video playing method can be an electronic device capable of playing webpage videos, which is not limited to including a mobile phone, a computer, a television, a smart wearable device, etc.
[0024] Optionally, the electronic device can play webpage videos through a browser.
[0025] The method can include the following steps:
[0026] Step S11: detecting a switching operation for a video playing interface.
[0027] In actual application, most electronic devices equipped with a display screen have the functions of video presentation and mobile data processing, a user can receive information in a mobile network through an electronic device and watch the received information through a display screen, which includes that the user can watch videos in an Internet website through a browser in an electronic device.
[0028] The video is not limited to a type of video such as a television series, a short video, a documentary, and a variety show.
[0029] In this embodiment, the electronic device includes a display screen, and the display screen is configured to display a UI (User Interface). The UI can include graphics, text, icons, videos, and any combination thereof. When the display screen is a touch display screen, the display screen also has the ability to collect touch signals on or above the surface of the display screen. The touch signals can be input as control signals to the processor for processing. At this time, the display screen can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen can be one, which can be arranged on the front panel of the terminal; in other embodiments, the display screen can be at least two, which can be arranged on different surfaces of the terminal or in a folding design; in still other embodiments, the display screen can be a flexible display screen, which can be arranged on a curved surface or a folding surface of the terminal. Even, the display screen can also be arranged in an irregular shape, that is, a special-shaped screen. The display screen can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0030] In this embodiment, the display screen is configured to display a video playing interface. The video playing interface is configured to display at least video content, and can further display operable controls, bullet screen data, pop-up window data, etc. The operable controls can include at least one of a button control, a scroll bar control, an icon control, and a menu control. The bullet screen data can be comments directly displayed on the video, appearing on the video in a scrolling, stationary, or more motion effect manner, and can be short comments sent by a person watching the video, in the form of text, pictures, etc. The pop-up window data can include a login box, a message confirmation pop-up window, an advertisement pop-up window, etc. As shown in Figure 2 For example, the same-layer playing interface 12 includes bullet screen data 121 and pop-up window data 122, where the pop-up window data 122 is specifically an example of a login box.
[0031] The switching operation is configured to switch the current video playing interface. Alternatively, when the method is applied to a terminal having a touch display screen, the switching operation includes at least one of a sliding operation, a dragging operation, a long-pressing operation, a clicking operation, a double-clicking operation, and a gravity pressing operation.
[0032] Step S12: If the switching operation is detected and the video playing interface is the same-layer playing interface, the video playing interface is switched from the same-layer playing interface to the non-same-layer playing interface.
[0033] Step S13: If the switching operation is detected and the video playing interface is the non-same-layer playing interface, the video playing interface is switched from the non-same-layer playing interface to the same-layer playing interface.
[0034] In this embodiment, the video playing interface includes the same-layer playing interface and the non-same-layer playing interface.
[0035] As shown in Figure 2 The same-layer playing interface 12 and the web content interface 11 are in the same interface, i.e., the web video frame is rendered by a web engine and is combined with the web content on the same page. Generally, different websites correspond to different same-layer playing interfaces 12, e.g., the number, type, display position, and style of the operable controls.
[0036] Alternatively, the same-layer playing interface 12 is configured to display the bullet screen data 121 and / or the pop-up window data 122. It can be understood that the video content can be displayed on the same-layer playing interface 12, and the bullet screen data 121 and / or the pop-up window data 122 can also be displayed.
[0037] In this design, the non-same-layer playback interface 13 is overlaid on the webpage content interface 11, meaning the video playback and webpage content are not on the same layer, with the video playback interface covering the webpage content interface 11. Electronic devices use a non-same-layer playback method to play videos, creating a new non-same-layer playback interface 13 on top of the webpage content interface 11 for video playback. Firstly, since bullet screen data and pop-up data can only be displayed on the same-layer playback interface 12 (which is on the same layer as the webpage content interface 11), playing videos through the non-same-layer playback interface 13 can shield bullet screen data 121 and pop-up data 122, resulting in a cleaner and neater video image, and even filtering out advertising content interspersed in the video. Secondly, standardized operable controls can be set on the non-same-layer playback interface to unify the display of operable controls on the video playback interfaces managed by different video playback websites. This makes it easier for users to find the target controls when browsing videos on different websites, thus avoiding accidental clicks on operable controls and improving the user experience.
[0038] Operable controls may specifically include at least one of the following: play / pause, volume, zoom in / out, on / off bullet comments, bullet comment settings, playback progress, mute switch, share, favorite, screenshot, and screen recording.
[0039] In some implementations, during the switching between in-layer and out-of-layer playback interfaces, the interface size and / or display position of the switched in-layer or out-of-layer playback interface may remain unchanged. For example... Figure 2 and Figure 3 As shown, in the case of Figure 2 Switching to the same-layer playback interface 12 Figure 3 After the non-same-layer playback interface 13 is displayed, the interface size and display position of the non-same-layer playback interface 13 remain unchanged relative to the same-layer playback interface 12, but it is displayed on top of the original same-layer playback interface 12.
[0040] In other embodiments, during the switching between in-layer and non-in-layer playback interfaces, the interface size and / or display position of the switched in-layer or non-in-layer playback interface can be changed. For example, after switching to a non-in-layer playback interface, the non-in-layer playback interface can retain its original size and be displayed in the center of the display screen, or it can completely cover the web page content interface, such as... Figure 4 As shown, the entire display screen is used to display the non-same-layer playback interface 23, that is, to enable full-screen playback under the non-same-layer playback interface.
[0041] The same-layer playing interface and the non-same-layer playing interface each have advantages in the above scheme, and thus the embodiment provides a method for dynamically switching a video playing interface, that is, by detecting a switching operation for the video playing interface, and switching the same-layer playing interface and the non-same-layer playing interface when the switching operation is detected, so that when a user needs the non-same-layer playing interface with unified controls to play a video, the video playing interface can be switched to the non-same-layer playing interface, and when the user needs to simultaneously watch or process the pop-up data, the video playing interface can be switched to the same-layer playing interface, so that the web video playing has the capability of same-layer / non-same-layer playing, the web video playing interface is enriched, and the user operation is simplified.
[0042] Please refer to Figure 5 , Figure 5 is a flowchart of another embodiment of the web video playing method provided in the application.
[0043] In the embodiment, before video playing, the electronic device can screen the video to be played, so that the video suitable for the non-same-layer interface playing is played by using the non-same-layer interface, and the video suitable for the same-layer interface playing is played by using the same-layer interface, so that the appropriate video playing interface can be selected to play the video before the video playing, and the user needs to manually switch the video playing interface after starting the video playing each time, the user operation is simplified, and the user experience is improved.
[0044] The method can include the following steps:
[0045] Step S21: Obtain the service type of the video to be played.
[0046] The service type of the video to be played can be divided according to the source corresponding to the video to be played, and the service type is, for example, an Internet service such as iQiyi, bilibili, Weibo, and Taobao, or a self-owned service, that is, a service owned and operated by the browser corresponding to the webpage.
[0047] Specifically, the electronic device can obtain the streaming media data corresponding to the video to be played, and the service type of the video to be played can be obtained according to the streaming media data. For example, the video to be played is played through the bilibili website, and it can be considered that the service type of the video to be played is bilibili.
[0048] Step S22: Determine whether the service type of the video to be played is a preset service type.
[0049] If the service type of the video to be played is the preset service type, step S23 is performed.
[0050] If the service type of the video to be played is not the preset service type, step S24 is performed.
[0051] In this embodiment, the preset service type is a service type suitable for video playing using the non-same-layer playing interface. For example, the preset service type can be a self-owned service, i.e., a service owned and operated by a browser corresponding to a webpage.
[0052] Step S23: playing the to-be-played video using the non-same-layer playing interface.
[0053] When the electronic device determines that the service type of the to-be-played video is a self-owned service, the to-be-played video is automatically played using the non-same-layer playing interface, avoiding the need for the user to manually switch the video playing interface after starting video playing, simplifying the operation of the user, and improving the user experience.
[0054] Step S24: determining whether the service type of the to-be-played video is in a whitelist corresponding to the same-layer playing interface.
[0055] If the service type of the to-be-played video is in the whitelist corresponding to the same-layer playing interface, step S25 is performed.
[0056] If the service type of the to-be-played video is not in the whitelist corresponding to the same-layer playing interface, step S23 is performed.
[0057] Step S25: playing the to-be-played video using the same-layer playing interface.
[0058] The whitelist corresponding to the same-layer playing interface is used to record service types suitable for video playing using the same-layer playing interface. It can be understood that not all Internet services are suitable for the same-layer playing interface, so in this embodiment, the service types suitable for the same-layer playing are recorded in the whitelist, so that the service type of the to-be-played video is obtained, and it is determined whether the service type of the to-be-played video is recorded in the whitelist, so that the to-be-played video suitable for the same-layer playing interface is automatically played, avoiding the need for the user to manually switch the video playing interface, simplifying the operation of the user, and improving the user experience.
[0059] In some possible implementation manners, step S24 can be: determining whether the service type of the to-be-played video is in a blacklist corresponding to the non-same-layer playing interface. If the service type of the to-be-played video is in the blacklist corresponding to the non-same-layer playing interface, step S25 is performed. If the service type of the to-be-played video is not in the blacklist corresponding to the non-same-layer playing interface, step S23 is performed. The blacklist corresponding to the non-same-layer playing interface is used to record service types unsuitable for video playing using the non-same-layer playing interface.
[0060] In other possible embodiments, step S24 can be directly performed after step S21 to simplify the flow steps. Since the to-be-played video corresponding to the self-owned service is suitable for playing in the non-same-layer playing interface, the self-owned service can not be recorded in the white list corresponding to the same-layer playing interface, so that the to-be-played video corresponding to the service type of the self-owned service is played in the non-same-layer playing interface, and the to-be-played video corresponding to the service type recorded in the white list is played in the non-same-layer playing interface.
[0061] Step S26: detecting a switching operation on the video playing interface.
[0062] Step S27: if the switching operation is detected and the video playing interface is the same-layer playing interface, switching the video playing interface from the same-layer playing interface to the non-same-layer playing interface.
[0063] Step S28: if the switching operation is detected and the video playing interface is the non-same-layer playing interface, switching the video playing interface from the non-same-layer playing interface to the same-layer playing interface.
[0064] In some possible embodiments, as shown in Figure 2 and Figure 3 , a switching button can be displayed on the video playing interface, and the switching button is used to switch between the non-same-layer playing interface and the same-layer playing interface. It can be understood that the switching button on the video playing interface is a virtual button 14.
[0065] In an embodiment, the electronic device includes a touch display screen, and a pressure sensor array can be arranged in the touch display screen. The electronic device can detect the touch position and the touch force of the touch operation through the pressure sensor array. The user can interact with the electronic device through the touch display screen, for example, the user can directly click the switching button on the video playing interface, and correspondingly, the electronic device can detect the clicking operation of the user on the switching button on the video playing interface. Alternatively, the user can switch the video playing interface by single-clicking, double-clicking, or long-pressing the switching button. In another embodiment, the user can control the physical button on the electronic device to operate the switching button on the video playing interface, for example, the user can control the digital key on the electronic device to control the switching button on the display screen.
[0066] In other possible embodiments, as shown in Figure 2 and Figure 3 , a switching button is arranged on the shell of the electronic device, and the switching button is a physical button 15, such as a power key, a volume control key, an AI key, etc. Thus, the user can directly operate the switching button on the shell of the electronic device.
[0067] For example, generally, the electronic device is provided with a power button or a volume button, so that the power button or the volume button can be multiplexed as a switching button. The user can perform a preset pressing operation on the power button or the volume button, so that the electronic device can detect the switching operation, and then perform a subsequent step. It can be understood that the number of switching buttons on the shell of the electronic device, the preset pressing operation (for example, the time and frequency of pressing) can be set according to actual needs, which is not limited here.
[0068] In yet some possible implementation manners, the electronic device includes a touch display screen, and the electronic device can detect a preset touch track on the video playing interface. Specifically, the user can touch the touch display screen and draw a pattern on the video playing interface, so that the electronic device can detect a touch track corresponding to the pattern drawn by the user on the video playing interface. If the electronic device detects that the touch track is a preset touch track, the non-same-layer playing interface and the same-layer playing interface are switched. Optionally, the preset touch track can include regular patterns and irregular patterns. The regular patterns are, for example, a circle, a triangle, a quadrilateral, a trapezoid, a five-pointed star, and the irregular patterns are, for example,
[0069] In addition, the non-same-layer playing interface and the same-layer playing interface can also be switched through voice control. For example, after waking up the voice assistant, the user can voice input "same layer", "same layer playing mode", "same layer playing interface", or "switch to same layer playing interface". Correspondingly, the electronic device receives an instruction to switch to the same layer playing interface. At this time, if the current video playing interface is a non-same-layer playing interface, the non-same-layer playing interface is switched to the same-layer playing interface. If the current playing interface is a same-layer playing interface, the same-layer playing interface is continued to be used for playing.
[0070] It can be understood that the switching operation for the video playing interface is not limited to the above-mentioned several manners, which will not be described here.
[0071] In the above scheme, before playing the video, the electronic device acquires the service type of the to-be-played video, and filters the to-be-played video based on the service type of the to-be-played video. Thus, the video suitable for the non-same-layer interface playing can be played by using the non-same-layer interface, and the video suitable for the same-layer interface playing can be played by using the same-layer interface. Then, the appropriate video playing interface can be selected to play the video before playing the video, which avoids the need for the user to manually switch the video playing interface every time the video is started, simplifies the operation of the user, and improves the user experience.
[0072] In some possible implementation manners, the layout scheme of the non-same-layer playing interface is customizable, and the layout scheme includes at least one of operability controls, skins, and interface sizes.
[0073] It can be understood that one of the advantages of the non-same-layer playing interface is that the operability controls on the interface can be displayed uniformly. In some embodiments, the operability controls on the non-same-layer playing interface are designed uniformly by the operator, ignoring the diversity of users, for example, different users have different aesthetic and operation habits. Therefore, the embodiment provides a non-same-layer playing interface with a customizable layout scheme. The user can customize the number, type, layout format, etc. of the operability controls on the non-same-layer playing interface, so as to obtain a non-same-layer playing interface that meets the user's needs. In addition, the skin and interface size of the non-same-layer playing interface can also be customized. The skin, for example, includes day and night, and the interface size, for example, is the interface size of the same-layer playing interface before switching or the full-screen size.
[0074] Optionally, a sharing button can also be displayed on the non-same-layer playing interface. The user can share the customized layout scheme by clicking the sharing button. Other users can download the customized layout scheme and apply it to their own non-same-layer playing interface. The sharing operation can be performed through a social website, which is not limited here.
[0075] Optionally, the user can pre-set multiple layout schemes and set different priorities for the multiple layout schemes. The electronic device preferentially adopts the non-same-layer playing interface with a high-priority layout scheme for video playing, or the user can set a replacement time for the multiple layout schemes. For example, the non-same-layer playing interface can automatically change a layout scheme every day or every week.
[0076] In some possible implementations, before playing the to-be-played video by using the non-same-layer playing interface, the method further includes: determining whether a non-same-layer playing interface corresponding to a service type of the to-be-played video has been set; if yes, playing the to-be-played video by using the non-same-layer playing interface corresponding to the service type of the to-be-played video; and if no, playing the to-be-played video by using a default non-same-layer playing interface. It can be understood that the electronic device can pre-store a correspondence between the service type of the to-be-played video and the non-same-layer playing interface. For example, bilibili uses a non-same-layer playing interface with a first layout scheme for playing, and a self-service uses a non-same-layer playing interface with a second layout scheme for playing. The first layout scheme is different from the second layout scheme.
[0077] Optionally, different layout schemes of the non-same-layer playing interface can be set according to different service types.
[0078] As shown in FIG. 1, Figure 6 Figure 6 is a structural schematic diagram of an embodiment of the same-layer playing interface and the non-same-layer playing interface provided in the present application.
[0079] In some possible implementation manners, the electronic device can detect a moving operation for the non-same-layer playing interface 33, and if the moving operation for the non-same-layer playing interface 33 is detected, the non-same-layer playing interface 33 is moved away from the same-layer playing interface 32, so that the same-layer playing interface 32 and the non-same-layer playing interface 33 can be displayed on the display screen at the same time. At this time, the user can process the pop-up box data on the same-layer playing interface 32 and view the barrage data and notification messages while watching the video on the non-same-layer playing interface 33.
[0080] It can be understood that when the non-same-layer playing interface 33 hinders the input or viewing of the text or picture on the same-layer playing interface 32, the user can perform a moving operation on the non-same-layer playing interface 33 to move the non-same-layer playing interface 33. The moving operation can include that after a preset time of touching the non-same-layer playing interface 33, the non-same-layer playing interface 33 is dragged to a target position. The preset time is, for example, 0.5 s.
[0081] Optionally, the same-layer playing interface 32 and / or the non-same-layer playing interface 33 can display a recovery button 36. The user can click the recovery button 36 to immediately restore the display position of the non-same-layer playing interface 33 before moving or the display position in which the non-same-layer playing interface 33 completely overlaps the same-layer playing interface 32. In addition, the recovery button 36 can also be a physical button on the shell of the electronic device.
[0082] Please refer to Figure 7 , Figure 7 is a framework schematic diagram of an embodiment of the mobile terminal provided in the present application.
[0083] In the embodiment, the mobile terminal 700 includes a detection module 710 and a switching module 720. The detection module 710 is configured to detect a switching operation for a video playing interface. The switching module 720 is configured to, if the switching operation is detected and the video playing interface is a same-layer playing interface, switch the video playing interface from the same-layer playing interface to a non-same-layer playing interface; or if the switching operation is detected and the video playing interface is a non-same-layer playing interface, switch the video playing interface from the non-same-layer playing interface to the same-layer playing interface. The non-same-layer playing interface is overlaid on a web content interface, and the same-layer playing interface is in the same interface as the web content interface.
[0084] In some possible implementation manners, the mobile terminal 700 further includes an acquisition module (not shown in the figure) and a judgment module (not shown in the figure). The acquisition module is configured to acquire a service type of a to-be-played video. The judgment module is configured to judge whether the service type of the to-be-played video is a preset service type. The switching module 720 is further configured to, if the service type of the to-be-played video is the preset service type, play the to-be-played video by using the non-same-layer playing interface.
[0085] In some possible implementation, the preset business type is a business owned and operated by the browser corresponding to the network.
[0086] In some possible implementation, the layout scheme of the non-same-layer playing interface is customizable, and the layout scheme includes at least one of operability control, skin, and interface size.
[0087] In some possible implementation, the judging module is further configured to judge whether the non-same-layer playing interface corresponding to the business type of the video to be played has been set; and if yes, the switching module 720 is further configured to play the video to be played by using the non-same-layer playing interface corresponding to the business type of the video to be played.
[0088] In some possible implementation, if the business type of the video to be played is not the preset business type, the judging module is further configured to judge whether the business type of the video to be played is in the whitelist corresponding to the same-layer playing interface; and if yes, the switching module 720 is further configured to play the video to be played by using the same-layer playing interface.
[0089] In some possible implementation, the switching button is arranged on the video playing interface, and the detecting module 710 is specifically configured to detect whether the switching button on the video playing interface is clicked by the user.
[0090] In some possible implementation, the same-layer playing interface is configured to display the barrage data and / or the pop-up window data.
[0091] Please refer to Figure 8 , Figure 8 FIG. 1 is a schematic diagram of a framework of an embodiment of the electronic device provided in the present application.
[0092] In the embodiment, the electronic device 800 includes a processor 810 and a memory 820 connected to the processor 810, the memory 820 is configured to store program data, and the processor 810 is configured to execute the program data to realize the steps in any method embodiment described above.
[0093] The electronic device 800 can include a device including a multimedia unit, and the electronic device 800 includes but is not limited to a television, a desktop computer, a laptop computer, a handheld computer, a wearable device, a head-mounted display, a reader device, a portable music player, a portable game console, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a smart phone, a personal digital assistant (PDA), an augmented reality (AR) device, and a virtual reality (VR) device.
[0094] Specifically, the processor 810 is configured to control itself and the memory 820 to implement the steps in any of the above method embodiments. The processor 810 can also be referred to as a CPU (Central Processing Unit). The processor 810 can be an integrated circuit chip having a processing capability of signals. The processor 810 can also be a general processor 810, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The general processor 810 can be a microprocessor or the processor 810 can also be any conventional processor.
[0095] Referring to Figure 9 , Figure 9 is a schematic diagram of a framework of an embodiment of the computer storage medium provided in the present application. The computer readable storage medium 900 stores program data 910, which is executed by a processor to implement the steps in any of the above method embodiments.
[0096] The computer readable storage medium 900 can specifically be a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk or an optical disk, etc. which can store a computer program, or can also be a server storing the computer program, which can send the stored computer program to other devices for running, or can also run the stored computer program by itself.
[0097] In several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the above-described device implementation is only schematic, for example, the division of modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0098] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e. may be located in one place, or may be distributed to multiple network units. Part or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment scheme.
[0099] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0100] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical scheme of the present application essentially or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0101] The above is only an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A web video playing method, characterized in that, The method comprises: if a switching operation for a video playing interface is detected and the video playing interface is a same-layer playing interface, switching the video playing interface from the same-layer playing interface to a non-same-layer playing interface; or if a switching operation for a video playing interface is detected and the video playing interface is the non-same-layer playing interface, switching the video playing interface from the non-same-layer playing interface to the same-layer playing interface; wherein the non-same-layer playing interface is overlaid on a webpage content interface and a layout scheme of the non-same-layer playing interface is customizable, and the same-layer playing interface is in the same interface as the webpage content interface; The method further comprises: acquiring a service type of a video to be played; if the service type of the video to be played is a preset service type, playing the video to be played by using the non-same-layer playing interface.
2. The method of claim 1, wherein the preset service type is a service possessed and operated by a browser corresponding to the webpage.
3. The method of claim 1, wherein, The layout scheme comprises at least one of operability controls, skins, and interface sizes.
4. The method of claim 1, wherein the playing of the video to be played by using the non-same-layer playing interface comprises: if the non-same-layer playing interface corresponding to the service type of the video to be played has been set, playing the video to be played by using the non-same-layer playing interface corresponding to the service type of the video to be played.
5. The method of claim 1, wherein The method further comprises: if the service type of the video to be played is not the preset service type, determining whether the service type of the video to be played is in a whitelist corresponding to the same-layer playing interface; if yes, playing the video to be played by using the same-layer playing interface.
6. The method of claim 1, wherein a switching button is arranged on the video playing interface. The method comprises: if it is detected that a user clicks the switching button on the video playing interface, it is detected that a switching operation for the video playing interface.
7. The method of claim 1, wherein the same-layer playing interface is configured to display barrage data and / or pop-up window data.
8. A mobile terminal, comprising: a switching module configured to, if a switching operation for a video playing interface is detected and the video playing interface is a same-layer playing interface, switch the video playing interface from the same-layer playing interface to a non-same-layer playing interface, or if a switching operation for a video playing interface is detected and the video playing interface is the non-same-layer playing interface, switch the video playing interface from the non-same-layer playing interface to the same-layer playing interface; wherein the non-same-layer playing interface is overlaid on a webpage content interface and a layout scheme of the non-same-layer playing interface is customizable, and the same-layer playing interface is in the same interface as the webpage content interface; an acquiring module configured to acquire a service type of a video to be played. A judgment module is configured to judge whether a service type of a to-be-played video is a preset service type, and if yes, the switching module plays the to-be-played video by using the non-same-layer playing interface.
9. An electronic device, comprising: The electronic device includes a processor and a memory connected to the processor, The memory is configured to store program data, and the processor is configured to execute the program data to implement the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores program data, and the program data, when executed by a processor, is configured to implement the method according to any one of claims 1-7.
Citation Information
Patent Citations
Method and device for multimedia playing in browser
CN102968509A
Control method and control device for playing webpage video based on browser player
CN108777819A