A page processing method, device, equipment and storage medium
By quickly switching between the playback page and the preview page in the network video playback technology, and using the trigger signal of the page identification to display the preview list and select the video, the problem of inflexible video switching in the existing technology is solved, and the processing efficiency and users are improved. experience.
Patent Information
- Application Number
- CN202010416968.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-05-15
AI Technical Summary
Existing network video playback technology can only switch adjacent videos, has low processing efficiency, lacks flexibility, and cannot meet users' video preview and switching needs.
By quickly switching between the playback page and the preview page, using the trigger signal of the page logo to display the preview list, and selecting any video for playback in the preview page, flexible video switching and preview are achieved.
It improves the page processing efficiency, meets the user's video preview and switching needs, realizes fast switching from the first video to any second video, and the processing method is flexible.
Smart Images

Figure CN111596849B
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, specifically to the field of video playback technology, and in particular to a page processing method, a page processing device, a page processing equipment and a computer-readable storage medium. Background Art
[0002] With the development of Internet technology, online video has become an important medium for transmitting information on the Internet. Online video usually refers to videos played on web pages or service pages in Internet clients (such as Weishi, Tencent Kandian, etc.). Online video can include short videos, TV series, movies, etc.
[0003] At present, Internet users use information flow to browse online videos, that is, Internet users can switch and browse adjacent videos by sliding up and down on the playing page of the online video. For example, if the Internet user slides the online video being played to the top of the display screen, the online video is switched to the next video of the online video in the video play list; or, if the Internet user slides the online video being played to the bottom of the display screen, the online video is switched to the previous video of the online video in the video play list. It can be seen that the above-mentioned prior art can only switch adjacent videos when switching videos, that is, the video after switching is the next video or the previous video of the online video being played in the video play list. Such a processing method is not flexible enough and has low processing efficiency. Summary of the invention
[0004] The embodiments of the present application provide a page processing method, apparatus, device and storage medium, which can realize flexible switching of pages and videos within pages and improve processing efficiency.
[0005] On the one hand, an embodiment of the present application provides a page processing method, the method comprising:
[0006] Play the first video on the play page and display the page logo;
[0007] When there is a trigger signal that continuously acts on the page identifier, a preview page is displayed, and a preview list is displayed on the preview page;
[0008] When the page identifier is stopped, switching from the preview page to the play page; and,
[0009] Play the second video in the play page; the second video is the video selected in the preview page, and the second video is any video in the preview list.
[0010] On the other hand, an embodiment of the present application provides a page processing device, which is disposed in a page processing device, and includes:
[0011] A playback unit, used to play the first video on the playback page and display a page logo;
[0012] a processing unit, configured to display a preview page with a preview list when there is a trigger signal that continuously acts on the page identifier; and switch from the preview page to the play page when the page identifier stops being triggered; and
[0013] The playback unit is used to play the second video in the playback page; the second video is the video selected in the preview page, and the second video is any video in the preview list.
[0014] In one implementation, the trigger signal includes a signal generated by a first operation acting on the page identifier; and the processing unit is specifically configured to:
[0015] When the first operation is applied to the page identifier, the display is switched from the play page to the preview page; and,
[0016] Pause the first video on the playback page.
[0017] In one implementation, the processing unit is further configured to:
[0018] In the process of displaying the preview page, if the duration of the first operation acting on the page identifier is greater than the action threshold, the second video is played in the preview page.
[0019] In one implementation, the processing unit is further configured to:
[0020] During the process of playing the second video in the preview page, when the page identifier is stopped and triggered, obtaining the playing progress of the second video in the preview page;
[0021] The processing unit is specifically used to: start playing the second video from the acquired playback progress in the playback page.
[0022] In one implementation, the preview list includes multiple preview videos, the preview page includes a video display area, and the preview videos in the preview list that enter the video display area will be previewed and displayed;
[0023] The video display area includes a selection area, and the second video refers to a preview video entered into the selection area.
[0024] In one implementation, the position of the selection area in the video display area may include at least one of the following: a top position, a bottom position, or any position between the top position and the bottom position.
[0025] In one implementation, the trigger signal further includes a signal generated by a second operation acting on the page identifier; and the processing unit is further configured to:
[0026] When the second operation is applied to the page logo, the preview video entering into the video display area is adjusted.
[0027] In one implementation, the processing unit is specifically configured to:
[0028] Obtaining a partial image area in the frame image of the second video that is within the selected region, and obtaining a reference total area of the selected region;
[0029] If the ratio of the partial image area to the reference total area is greater than the ratio threshold, it is determined that the second video enters the selection area.
[0030] In one implementation, the display screen includes at least a first display layer and a second display layer, the priority of the first display layer is higher than the priority of the second display layer, and the display layers are arranged in descending order of priority.
[0031] In one implementation, the processing unit is specifically configured to:
[0032] Set the transparency of the play page to make it visible;
[0033] The play page is displayed in the first display layer, and a page logo is displayed in the play page.
[0034] In one implementation, when there is no trigger signal that continuously acts on the page identifier, the processing unit is further configured to:
[0035] Set the transparency of the preview page to make it invisible;
[0036] The preview page is displayed in the second display layer.
[0037] In one implementation, the processing unit is specifically configured to:
[0038] When there is a trigger signal that continuously acts on the page logo, the transparency of the preview page is adjusted to change the preview page from an invisible state to a visible state, and the page logo is displayed in the preview page;
[0039] Adjusting the transparency of the playback page to change the playback page from a visible state to an invisible state; and,
[0040] The priority of the second display layer is adjusted so that the priority of the second display layer is higher than the priority of the first display layer.
[0041] In one implementation, the processing unit is further configured to:
[0042] Display a subscription page, which contains at least one video;
[0043] When the first video in the subscription page is selected for playing, the steps of playing the first video on the play page and displaying the page logo are triggered; and at least one video is arranged into a preview list, and a preview page is constructed based on the preview list.
[0044] On the other hand, an embodiment of the present application provides a page processing device, the page processing device comprising:
[0045] a processor adapted to implement one or more instructions; and,
[0046] A computer-readable storage medium stores one or more instructions, wherein the one or more instructions are suitable for being loaded by a processor and executing the above-mentioned page processing method.
[0047] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the above-mentioned page processing method.
[0048] In the embodiment of the present application, the first video is played on the play page and the page identifier is displayed; when there is a trigger signal that continuously acts on the page identifier, the preview page is displayed; when the page identifier stops being triggered, the preview page is switched to the play page; and the second video is played on the play page. By setting the page identifier, the page identifier can be conveniently operated to realize the fast switching between the play page and the preview page of the video, and the fast switching from the first video to any second video can also be realized. The switching processing of the page and the video in the page is relatively flexible, which effectively improves the page processing efficiency, and can meet the video preview requirements and video switching requirements at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A schematic diagram of the architecture of a page processing system provided by an exemplary embodiment of the present application is shown;
[0051] Figure 2a A schematic diagram of a subscription page provided by an exemplary embodiment of the present application is shown;
[0052] Figure 2b A schematic diagram showing a page switching process provided by an exemplary embodiment of the present application is shown;
[0053] Figure 2c A schematic diagram showing a page switching process provided by another exemplary embodiment of the present application is shown;
[0054] Figure 3 A schematic diagram showing a flow chart of a page processing method provided by an exemplary embodiment of the present application;
[0055] Figure 4a A page schematic diagram showing a preview video display mode provided by an exemplary embodiment of the present application is shown;
[0056] Figure 4b A page schematic diagram showing a preview video display mode provided by another exemplary embodiment of the present application is shown;
[0057] Figure 4c A schematic diagram showing a second video determination method provided by another exemplary embodiment of the present application is shown;
[0058] Figure 5 A schematic flow chart of a page processing method provided by another exemplary embodiment of the present application is shown;
[0059] Figure 6 A schematic flow chart of a page processing method provided by another exemplary embodiment of the present application is shown;
[0060] Figure 7 A schematic diagram of the structure of a page processing device provided by an exemplary embodiment of the present application is shown;
[0061] Figure 8 A schematic structural diagram of a page processing device provided by an exemplary embodiment of the present application is shown.
[0062] Specific implementation
[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0064] See also Figure 1 , Figure 1The schematic diagram of the architecture of a page processing system provided by an exemplary embodiment of the present application is shown, and the page processing system includes a terminal 101 and a server 102. Among them, the terminal 101 can be a smart phone, a tablet computer (Tablet Personal Computer, Tablet PC), a smart wearable device, etc., but is not limited to this. The terminal 101 can be configured with a display screen, and the display screen can support a touch screen function. The display screen includes at least a first display layer and a second display layer. The priority of the first display layer is higher than the priority of the second display layer, and each display layer is arranged in order from high to low priority; the server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal 101 can support the installation and operation of various applications (Application, APP), and the applications here can include but are not limited to social applications (such as Weibo APP, instant messaging APP, map APP with social functions, etc.), audio and video applications (such as video on demand APP, audio player, etc.), game applications, etc. The terminal 101 and the server 102 can be directly or indirectly connected through wired communication or wireless communication, and this application does not limit it here.
[0065] The following will describe the page processing method provided by the embodiment of the present application in a page processing system composed of a terminal 101 and a server 102 in conjunction with a specific application scenario:
[0066] (1) Display the subscription page.
[0067] When a terminal user (i.e., an Internet user who uses terminal 101 to browse videos) uses terminal 101 to browse and play videos, he or she can subscribe to or collect video columns that the terminal user is interested in. A video column refers to a video list collection consisting of multiple videos of the same type. For example, a beauty column is a video list collection consisting of multiple videos related to beauty. When switching videos, terminal 101 switches the video in the playback state to any video in the video column that the terminal user has subscribed to. When terminal 101 detects that the terminal user has selected a subscription page, the subscription page is displayed, such as Figure 2a As shown, Figure 2a A schematic diagram of a subscription page provided by an exemplary embodiment of the present application is shown, wherein the subscription page includes multiple video columns (eg, Figure 2aIn addition, the terminal 101 can also store the video list data in the video column subscribed by the terminal user in the subscription page to the local database of the terminal 101. The terminal 101 can also send a video list data update request to the server 102; the server 102 responds to the video list data update request, obtains the updated video list data of each video column subscribed by the user from the database of the server 102, and sends it to the terminal 101; the terminal 101 can update the local database of the terminal 101 according to the above updated video list data.
[0068] (2) Play the first video on the playback page and display the page logo.
[0069] like Figure 2b As shown, Figure 2b A schematic diagram of a page switching process provided by an exemplary embodiment of the present application is shown. When the terminal 101 detects a play operation of a terminal user on a first video (for example, any video displayed on a subscription page) (for example, the terminal user clicks a play button corresponding to the first video on the subscription page), the terminal 101 can send a video play request to the server 102, and the video play request carries a video identifier of the first video; the server 102 responds to the video play request and sends the first video to the terminal 101; after receiving the first video, the terminal 101 plays the first video on the play page and displays the page identifier (for example, Figure 2b small rocket logo shown).
[0070] In one implementation, Figure 2b As shown, the first video can be played in large size on the play page, that is, the video play area of the first video is the entire play page, and the play page can also include video description information of the first video. Figure 2b The video description information of the first video in the play page is the video title of the first video "Spring Dressing Tips". In another implementation, Figure 2c As shown, Figure 2c A schematic diagram of a page switching process provided by another exemplary embodiment of the present application is shown, wherein the first video can also be played in a thumbnail on the playback page, that is, the video playback area is a partial playback page, and in addition to the video description information of the first video, the playback page can also include other videos in the video columns subscribed by the terminal user and video description information of other videos.
[0071] In one implementation, the page identifier may include a graphic identifier, a text identifier, etc. The graphic identifier may include a circular identifier, a triangular identifier, Figure 2b and Figure 2cThe small rocket logo shown is not limited here.
[0072] (3) When there is a trigger signal that continuously acts on the page identifier, a preview page is displayed, and a preview list is displayed on the preview page.
[0073] The trigger signal may include a signal generated by a first operation acting on the page identifier, wherein the first operation may include but is not limited to: a long press operation (i.e., an operation of continuously pressing the page identifier for a period of time exceeding a preset time (e.g., one second)). Figure 2b As shown, when the terminal user long presses the page mark, the terminal 101 switches from the play page to the preview page, and the terminal 101 pauses playing the first video in the play page. The preview page is the page displayed when the page mark is triggered. The preview page may include a preview list (i.e., video list data in the subscribed video column). The preview list may include multiple preview videos. The terminal 101 may display the video display area (such as the video display area) of the preview page in the preview page. Figure 2b The preview video may be a video recommended based on the terminal user's historical behavior; or, it may be a video marked by the terminal user (e.g., a video liked by the terminal user, a video commented on by the terminal user, etc.); or, it may be a video uploaded by the terminal user's social friends; or, it may be other videos uploaded by the uploader of the first video; or, it may be a video in the same video column as the first video, etc. In addition, the preview page may include a video display area, and the video display area may also include a selection area (e.g., Figure 2b The preview video displayed in the selection area is the preview video selected by the terminal user for playback. For example, the selection area highlights the preview video selected by the terminal user for playback, that is, the brightness of the preview video displayed in the selection area is higher than that of other preview videos. The position of the selection area in the video display area may include at least one of the following: the top position, the bottom position, or any position between the top position and the bottom position. In one embodiment, when the terminal 101 switches from the playback page to the preview page, the preview video displayed in the selection area of the preview page is the first video.
[0074] In one implementation, Figure 2b As shown, the preview video can be displayed in a large image on the preview page, that is, the preview video occupies a large area in the preview page (such as exceeding a set value, such as exceeding 50% of the total area of the preview page), and the preview page can also include video description information of the preview video, and the video description information may include: at least one of the video author, video title, number of likes, and number of comments; in another implementation, such as Figure 2cAs shown, the preview video can also be displayed as a small picture in the preview page, that is, the preview video occupies a smaller area in the preview page, and the preview page can also include video description information of the preview video.
[0075] In one implementation, the trigger signal may include a signal generated by a second operation acting on the page identifier, wherein the second operation may include but is not limited to: a sliding operation (i.e., an operation in which a finger moves up and down or left and right on the terminal screen to drive the page identifier to move up and down or left and right on the page according to the movement track of the finger). Figure 2b As shown, when the terminal user slides the page mark in the preview page, the terminal 101 adjusts the preview video in the video display area of the preview page, that is, the preview video in the video display area of the preview page will change following the user's sliding operation. For example, when the terminal user slides the page mark upward, each preview video in the preview list scrolls down, so that the preview video in the video display area changes; when the terminal user slides the page mark downward, each preview video in the preview list scrolls up, so that the preview video in the video display area changes.
[0076] In one implementation, Figure 2b As shown, if the terminal user slides the page mark to the second video (i.e., other videos in the preview list except the first video) displayed in the selection area, and the second video is displayed in the selection area for a time period exceeding the action threshold (e.g., one second), the terminal 101 determines that the terminal user selects to play the second video. Here, the second video is Figure 2b In the preview video with the title "How to Tie a Bun", terminal 101 can send a video play request to server 102, and the video play request carries the video identifier of the second video; server 102 responds to the video play request and sends the second video to terminal 101; after terminal 101 receives the second video, terminal 101 can play the second video in the preview page.
[0077] (4) When the page mark is stopped and triggered, switch from the preview page to the play page.
[0078] like Figure 2b As shown, when the terminal user releases the page identifier, the terminal 101 obtains the second video selected for playback by the terminal user from the preview list of the preview page, and switches from the preview page to the playback page.
[0079] In one implementation, Figure 2bAs shown, terminal 101 can also obtain the playback progress of the second video in the preview page, and synchronize the playback progress of the second video in the preview page to the playback page. In this way, the playback progress of the second video in the preview page is consistent with the playback progress of the second video in the playback page, and the page switching operation of terminal 101 does not affect the continuity of the terminal user watching the second video.
[0080] In one implementation, Figure 2b As shown, the second video can be played in large size on the play page, that is, the video play area of the second video is the entire play page, and the play page can also include video description information of the second video. Figure 2c As shown, the second video can also be played in a small picture on the playback page, that is, the video playback area of the second video is a partial playback page. In addition to the video description information of the second video, the playback page can also include other videos in the video columns subscribed by the terminal user and video description information of other videos.
[0081] In the embodiment of the present application, when the terminal user long presses the page mark in the play page, the terminal displays the preview page; when the terminal user slides the page mark, the terminal adjusts the preview video in the video display area to change; if the terminal user long presses the page mark until the second video is displayed in the selection area for a period of time that exceeds the action threshold, the terminal determines that the video selected by the user to play is the second video, and the terminal plays the second video in the preview page; when the terminal user releases the page mark, the terminal switches from the preview page to the play page, and plays the second video in the play page. By setting the page mark, the terminal user can trigger the terminal to quickly switch between the play page and the preview page of the video by conveniently operating the page mark, and can also realize quick switching from the first video to any second video. The switching process of the page and the video in the page is relatively flexible, which effectively improves the page processing efficiency, and can meet the terminal user's video preview needs and video switching needs at the same time.
[0082] Based on the above description, see Figure 3 , Figure 3 A schematic diagram of a page processing method provided by an exemplary embodiment of the present application is shown. The page processing method can be performed by Figure 1 The terminal 101 in the embodiment shown executes the page processing method, which includes the following steps S301 to S304:
[0083] Step S301, playing the first video on the playback page and displaying the page logo.
[0084] In one implementation, step S301 may include: setting the transparency of the play page so that the play page is visible; displaying the play page in the first display layer, and displaying a page identifier in the play page. In this implementation, when the terminal detects a play operation on the first video, the terminal may display the play page and display a page identifier in the play page. In the embodiment of the present application, the shape and structure of the page identifier may be set according to actual needs. For example, the page identifier may be Figure 2b The small rocket logo shown can also be Figure 3 The gray circular logo shown is not limited to this embodiment of the present application.
[0085] Step S302: When there is a trigger signal that continuously acts on the page identifier, a preview page is displayed, and a preview list is displayed in the preview page.
[0086] In one implementation, when the first operation (eg, the operation of long pressing the page identifier) is applied to the page identifier, the terminal may switch from the play page to the preview page, and pause the play of the first video in the play page.
[0087] In one implementation, during display of the preview page, if the duration of the first operation on the page identifier is greater than an action threshold, the second video is played in the preview page.
[0088] In one implementation, a method of switching between pages in a terminal is described by taking a method of switching between a playback page and a preview page as an example, and a method of switching between other pages in the terminal can refer to a method of switching between a playback page and a preview page; wherein, a method of switching between a playback page and a preview page can be: when there is a trigger signal that continuously acts on a page identifier, adjusting the transparency of the preview page so that the preview page changes from an invisible state to a visible state, and displaying the page identifier in the preview page; adjusting the transparency of the playback page so that the playback page changes from a visible state to an invisible state; and adjusting the priority of the second display layer so that the priority of the second display layer is higher than the priority of the first display layer. In this embodiment, when the terminal switches from the play page to the preview page, the terminal adjusts the display priority of the play page and the preview page so that the adjusted display priority of the play page is lower than the display priority of the preview page. The terminal can also adjust the transparency of the play page and the preview page. For example, the terminal sets the transparency of the play page to 100 and sets the transparency of the preview page to 0 (here, the real number interval [0, 100] is used to represent the transparency of each page in the terminal, 0 represents an opaque page, 100 represents a transparent page, and the real number between the real number interval (0, 100) represents that the transparency of the page is between opaque and transparent); when the terminal switches from the preview page to the play page, the terminal adjusts the display priority of the play page and the preview page so that the adjusted display priority of the play page is higher than the display priority of the preview page. The terminal can also adjust the transparency of the play page and the preview page. For example, the terminal sets the transparency of the play page to 0 and sets the transparency of the preview page to 100.
[0089] Specifically, see Figure 4a and Figure 4b , Figure 4a A schematic diagram of a page showing a preview video display mode provided by an exemplary embodiment of the present application is shown. Figure 4b A page schematic diagram showing a preview video display method provided by another exemplary embodiment of the present application is shown. The terminal displays the preview video in the preview list and enters the video display area in the preview page in the following manner: Figure 4a As shown, the preview video and the video description information of the preview video in the video display area of the preview page (such as Figure 4a The titles shown) are displayed horizontally side by side (with Figure 2c The small figure shown corresponds to the following); or Figure 4b As shown, the preview video and the video description information of the preview video in the video display area of the preview page (such as Figure 4b The titles shown) are displayed vertically side by side (with Figure 2b The large figure shown shows the corresponding).
[0090] In one implementation, when there is no trigger signal continuously acting on the page identifier, the transparency of the preview page is set so that the preview page is invisible; and the preview page is displayed in the second display layer. In other words, the preview page is located in the second display layer, the play page is located in the first display layer, and the priority level of the first display layer is higher than that of the second display layer.
[0091] Step S303: When the page identifier is stopped and triggered, the preview page is switched to the play page.
[0092] In one implementation, when the operation on the page identifier is stopped (such as the operation of releasing the page identifier mentioned above), the terminal obtains the second video entering the selection area from the preview list and switches from the preview page to the playback page. The second video is any preview video in the preview list except the first video.
[0093] In one implementation, the method of switching from the preview page to the play page may include but is not limited to: setting the transparency of the preview page to make the preview page invisible (for example, setting the transparency of the preview page to 100%); setting the transparency of the play page to make the play page visible (for example, setting the transparency of the play page to 0); displaying the preview page in the second display layer and displaying the play page in the first display layer.
[0094] Step S304, playing the second video in the play page; the second video is the video selected in the preview page, and the second video is any video in the preview list.
[0095] The second video refers to the preview video entered into the selection area.
[0096] In one implementation, the terminal determines whether the second video has entered the selected area in a manner including but not limited to: obtaining a partial image area in the frame image of the second video that is located in the selected area, and obtaining a reference total area of the selected area; if the ratio of the partial image area to the reference total area is greater than a ratio threshold, it is determined that the second video has entered the selected area. Figure 4c , Figure 4cA schematic diagram of a second video determination method provided by an exemplary embodiment of the present application is shown, where the terminal obtains a first preview video and a second preview video that enter a selection area from a preview list, where the first preview video and the second preview video are any two adjacent preview videos in the preview list, and the first preview video is located on top of the second preview video in the selection area; the terminal determines the area of the first preview video in the selection area, and obtains a reference total area of the selection area; if the ratio of the area to the reference total area is greater than or equal to a ratio threshold (for example, 70%), the terminal may use the first preview video as the second video; if the ratio of the area to the reference total area is less than the ratio threshold, the terminal may use the second preview video as the second video.
[0097] In another implementation, the terminal determines whether the second video enters the selection area in a manner that may include but is not limited to: the terminal obtains the first preview video and the second preview video that enter the selection area from the preview list, the first preview video and the second preview video are any two adjacent preview videos in the preview list, and the first preview video is located on top of the second preview video in the selection area; the terminal determines the area of the first preview video in the selection area and the area of the second preview video in the selection area; if the area of the first preview video in the selection area is greater than or equal to the area of the second preview video in the selection area, the terminal may use the first preview video as the second video; if the area of the first preview video in the selection area is less than the area of the second preview video in the selection area, the terminal may use the second preview video as the second video.
[0098] In one implementation, the terminal can also obtain the playback progress of the second video in the preview page when the page identifier is stopped and triggered during the playback of the second video in the preview page; and playing the second video in the playback page includes: starting to play the second video from the acquired playback progress in the playback page. In this way, the playback progress of the second video in the preview page is consistent with the playback progress of the second video in the playback page, and the continuity of video playback is maintained.
[0099] In an embodiment of the present application, the second video obtained by the terminal from the preview list is a video selected by the terminal user from the preview list by sliding the page marker, which meets the terminal user's demand for video switching, and the video switching processing method is relatively flexible; the second video occupies the largest proportion of the area in the selection area of the preview page, and is therefore more in line with the terminal user's video selection habits; in addition, the terminal synchronizes the playback progress of the second video in the preview page to the playback page, so that the playback progress of the second video in the preview page is consistent with the playback progress of the second video in the playback page, thereby maintaining the continuity of video playback.
[0100] See also Figure 5, Figure 5 A schematic diagram of a page processing method provided by another exemplary embodiment of the present application is shown. The page processing method can be performed by Figure 1 The terminal 101 in the embodiment shown executes the page processing method, which includes the following steps S501 to S505:
[0101] Step S501, playing the first video on the play page and displaying the page logo.
[0102] In one implementation, before playing the first video on the play page, the terminal may also display a subscription page, which contains at least one video; when the first video on the subscription page is selected for play, the steps of playing the first video on the play page and displaying the page logo are triggered; and at least one video is arranged as a preview list, and a preview page is constructed based on the preview list. In this implementation, when the terminal arranges at least one video as a preview list, the current video data may be placed in front, so that the first video displayed for quick browsing is the currently played video.
[0103] The specific implementation process of step S501 can be referred to Figure 3 The relevant description of the implementation process described in step S301 is not repeated here.
[0104] Step S502: When the first operation is applied to the page identifier, a preview page is displayed.
[0105] The execution process of step S502 in the embodiment of the present application is similar to Figure 3 The execution process of step S302 in the embodiment shown is the same. For the specific execution process, please refer to Figure 3 The description of the illustrated embodiment will not be repeated here.
[0106] Step S503: when the second operation is applied to the page identifier, the preview page is displayed and the preview video is adjusted to enter the video display area.
[0107] In one implementation, the second operation (such as the above-mentioned operation of sliding the page identifier) continuously acts on the page identifier so that the terminal continues to display the preview page; the terminal can adjust the preview video entered into the video display area in response to the second operation on the page identifier. For example, when the operation of sliding the page identifier upward acts on the page identifier, each preview video in the preview list scrolls down; when the operation of sliding the page identifier downward acts on the page identifier, each preview video in the preview list scrolls up.
[0108] It should be noted that the first operation and the second operation can be continuous operations, which can be understood as the operation of long pressing the page logo and the operation of sliding the page logo are continuous operations, or any one of the first operation and the second operation can be performed separately, such as only performing a long press operation on the page logo or only performing a sliding operation on the page logo. The embodiment of the present application is not limited to this.
[0109] In one implementation, the page identifier has the highest display priority. Regardless of whether the terminal screen displays a playback page, a play page, or a preview page, the page identifier will be displayed together. The terminal user's operation on the page identifier (i.e., the first operation or the second operation) will be responded to by the page currently displayed on the terminal screen; for example, the page currently displayed on the terminal screen is the playback page, the terminal user performs the first operation on the page identifier, and the playback page responds to the first operation.
[0110] Step S504: when the page identifier is stopped and triggered, switch from the preview page to the play page.
[0111] The execution process of step S504 in the embodiment of the present application is similar to Figure 3 The execution process of step S303 in the embodiment shown is the same. For the specific execution process, please refer to Figure 3 The description of the illustrated embodiment will not be repeated here.
[0112] Step S505, playing the second video in the play page.
[0113] The execution process of step S505 in the embodiment of the present application is similar to Figure 3 The execution process of step S304 in the embodiment shown is the same. For the specific execution process, please refer to Figure 3 The description of the illustrated embodiment will not be repeated here. In the embodiment of the present application, the terminal sets a page identifier, and the terminal user can trigger the terminal to quickly switch between the video playback page and the preview page by conveniently operating the page identifier. It can also realize quick switching from the first video to any second video. The switching process of pages and videos within the pages is relatively flexible, which effectively improves the page processing efficiency, and can meet the terminal user's video preview needs and video switching needs. In addition, the terminal user can browse and play multiple preview videos in the preview page. If the terminal user is interested in a preview video (i.e., the second video), the terminal user stops operating the page identifier (for example, releasing the page identifier) and switches from the preview page to the playback page, further meeting the terminal user's video preview needs.
[0114] See also Figure 6 , Figure 6 A schematic diagram of a page processing method provided by another exemplary embodiment of the present application is shown. The page processing method can be performed by Figure 1 The terminal 101 in the embodiment shown executes the page processing method, which includes the following steps S601 to S609:
[0115] Step S601: When the terminal detects an operation of accessing a subscription page (ie, a selection operation on the subscription page), the subscription page is displayed.
[0116] In one implementation, the terminal can subscribe to the page (eg Figure 2a The terminal can also send a video list data update request to the server, and receive the updated video list data sent by the server from the server's database (i.e., remote database). The terminal updates the video list data in the local database according to the updated video list data sent by the server.
[0117] Step S602: When the terminal detects a play operation on the first video in the subscription page, the play page is displayed.
[0118] Step S603: the terminal reads the video list data in the local database, and rearranges the original preview list according to the video list data, placing the first video at the top of the preview list.
[0119] Step S604: the terminal constructs a preview page according to the rearranged preview list.
[0120] Step S605: the terminal displays a page logo on the playing page.
[0121] It should be noted that for terminal users, the playback page and the page logo are displayed in the terminal at the same time. However, for the terminal, there are two execution processes: rearranging the original preview list according to the video list data and building the preview page according to the rearranged preview list. After the preview page is successfully built, the terminal displays the page logo in the playback page.
[0122] Step S606: When the terminal detects a long press operation of the page mark in the play page, the terminal switches from the play page to the preview page and pauses the play of the first video in the play page.
[0123] Step S607, when the terminal detects the operation of sliding the page marker in the preview page, the preview list is scrolled and displayed. When the terminal detects that the sliding operation on the page marker is switched to a long press operation, the terminal detects whether the ratio of the area of the first preview video in the selected area to the reference total area of the selected area is greater than the ratio threshold.
[0124] Step S608: If the ratio of the area of the first preview video in the selected area to the reference total area of the selected area is greater than or equal to the ratio threshold, the terminal highlights the location area of the first preview video, plays the first preview video in the preview page, and uses the first preview video as the second video; if the ratio of the area of the first preview video in the selected area to the reference total area of the selected area is less than the ratio threshold, the terminal highlights the location area of the second preview video, plays the second preview video in the preview page, and uses the second preview video as the second video. When playing the second video (i.e., the first preview video or the second preview video) in the preview page, the terminal adjusts the video playback address of the video playback page to the URL (Uniform Resource Locator) of the second video being played in the preview page. By this processing method, when switching from the preview page to the playback page, the terminal user's waiting time for page switching can be reduced.
[0125] Of course, in the process of displaying the preview page, the user can perform multiple operations on the page identifier in sequence to browse and watch multiple preview videos in the preview page.
[0126] Step S609: When the terminal detects the operation of releasing the page identifier, the terminal obtains the second video from the preview list of the preview page and switches from the preview page to the play page. In addition, the terminal also obtains the play progress of the second video on the preview page, and transmits the play progress of the second video in the preview page to the play page, so that the play progress of the second video in the preview page is consistent with the play progress of the second video in the play page.
[0127] In the embodiment of the present application, when the terminal user long presses the page mark, the terminal switches from the play page to the preview page; when the terminal user slides the page mark, the terminal adjusts each preview video in the preview list to scroll down or up; if the terminal user slides the page mark until the second video is displayed in the selection area for a period of time that exceeds the action threshold, and the ratio of the area of the second video in the selection area to the reference total area of the selection area is greater than or equal to the ratio threshold, the terminal determines that the video selected by the user to play is the second video, and the terminal plays the second video in the preview page; when the terminal user releases the page mark, the terminal switches from the preview page to the play page, and plays the second video in the play page. By setting the page mark, the terminal user can trigger the terminal to quickly switch between the play page and the preview page of the video by conveniently operating the page mark, and can also realize quick switching from the first video to any second video. The switching processing of the page and the video in the page is relatively flexible, which effectively improves the page processing efficiency, and can meet the terminal user's video preview needs and video switching needs at the same time.
[0128] See also Figure 7 , Figure 7 FIG. 1 shows a schematic diagram of a page processing device provided by an exemplary embodiment of the present application. The page processing device 70 may be a computer program (including program code) running in the terminal 101, for example, an application software in the terminal 101; the page processing device 70 may be used to execute Figure 3 , Figure 5 or Figure 6 See the corresponding steps in the method shown. Figure 7 , the page processing device 70 includes the following units:
[0129] The playback unit 701 is used to play the first video on the playback page and display the page logo;
[0130] The processing unit 702 is used to display a preview page with a preview list when there is a trigger signal that continuously acts on the page identifier; when the page identifier is no longer triggered, switch from the preview page to the play page; and,
[0131] The playback unit 701 plays the second video in the playback page; the second video is the video selected in the preview page, and the second video is any video in the preview list.
[0132] In one implementation, the trigger signal includes a signal generated by a first operation acting on the page identifier; the processing unit 702 is specifically configured to:
[0133] When the first operation is applied to the page identifier, the display is switched from the play page to the preview page; and,
[0134] Pause the first video on the playback page.
[0135] In one implementation, the processing unit 702 is further configured to:
[0136] In the process of displaying the preview page, if the duration of the first operation acting on the page identifier is greater than the action threshold, the second video is played in the preview page.
[0137] In one implementation, the processing unit 702 is further configured to:
[0138] During the process of playing the second video in the preview page, when the page identifier is stopped and triggered, obtaining the playing progress of the second video in the preview page;
[0139] The processing unit 702 is specifically used to: start playing the second video from the acquired playback progress in the playback page.
[0140] In one implementation, the preview list includes multiple preview videos, the preview page includes a video display area, and the preview videos in the preview list that enter the video display area will be previewed and displayed;
[0141] The video display area includes a selection area, and the second video refers to a preview video entered into the selection area.
[0142] In one implementation, the position of the selection area in the video display area may include at least one of the following: a top position, a bottom position, or any position between the top position and the bottom position.
[0143] In one implementation, the trigger signal further includes a signal generated by a second operation acting on the page identifier; and the processing unit 702 is further configured to:
[0144] When the second operation is applied to the page logo, the preview video entering into the video display area is adjusted.
[0145] In one implementation, the processing unit 702 is specifically configured to:
[0146] Obtaining a partial image area in the frame image of the second video that is within the selected region, and obtaining a reference total area of the selected region;
[0147] If the ratio of the partial image area to the reference total area is greater than the ratio threshold, it is determined that the second video enters the selection area.
[0148] In one implementation, the display screen includes at least a first display layer and a second display layer, the priority of the first display layer is higher than the priority of the second display layer, and the display layers are arranged in descending order of priority.
[0149] In one implementation, the processing unit 702 is specifically configured to:
[0150] Set the transparency of the play page to make it visible;
[0151] The play page is displayed in the first display layer, and a page logo is displayed in the play page.
[0152] In one implementation, when there is no trigger signal that continuously acts on the page identifier, the processing unit 702 is further configured to:
[0153] Set the transparency of the preview page to make it invisible;
[0154] The preview page is displayed in the second display layer.
[0155] In one implementation, the processing unit 702 is specifically configured to:
[0156] When there is a trigger signal that continuously acts on the page logo, the transparency of the preview page is adjusted to change the preview page from an invisible state to a visible state, and the page logo is displayed in the preview page;
[0157] Adjusting the transparency of the playback page to change the playback page from a visible state to an invisible state; and,
[0158] The priority of the second display layer is adjusted so that the priority of the second display layer is higher than the priority of the first display layer.
[0159] In one implementation, the processing unit 702 is further configured to:
[0160] Display a subscription page, which contains at least one video;
[0161] When the first video in the subscription page is selected for playing, the steps of playing the first video on the play page and displaying the page logo are triggered; and at least one video is arranged into a preview list, and a preview page is constructed based on the preview list.
[0162] According to one embodiment of the present application, Figure 7 The various units in the page processing device 70 shown can be individually or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the page processing device 70 may also include other units. In actual applications, these functions can also be implemented with the assistance of other units and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, it can be executed by running on a general-purpose computing device of a general-purpose computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figure 3 , Figure 5 or Figure 6 A computer program (including program code) for each step involved in the corresponding method shown in Figure 7 The page processing device 70 shown in the figure can realize the page processing method of the embodiment of the present application. The computer program can be recorded on a computer-readable storage medium, for example, and loaded into the terminal 101 through the computer-readable storage medium and run therein.
[0163] In the embodiment of the present application, the first video is played on the play page and the page mark is displayed; when there is a trigger signal that continuously acts on the page mark, the preview page is displayed; when the page mark is stopped being triggered, the preview page is switched to the play page; and the second video is played on the play page. By setting the page mark, the display mark can be conveniently operated to realize the fast switching between the play page and the preview page of the video, and the fast switching from the first video to any second video can also be realized. The switching processing of the page and the video in the page is relatively flexible, which effectively improves the page processing efficiency, and can meet the preview requirements and switching requirements of the video at the same time.
[0164] See also Figure 8 , Figure 8 A schematic diagram of the structure of a page processing device provided by an exemplary embodiment of the present application is shown, and the page processing device 80 includes at least a processor 801 and a computer-readable storage medium 802. The processor 801 and the computer-readable storage medium 802 may be connected via a bus or other means. The computer-readable storage medium 801 may be stored in a memory, the computer-readable storage medium 802 is used to store a computer program, the computer program includes program instructions, and the processor 801 is used to execute the program instructions stored in the computer-readable storage medium 802. The processor 801 (or CPU (Central Processing Unit)) is the computing core and control core of the page processing device 80, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0165] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in the page processing device 80 for storing programs and data. It can be understood that the computer-readable storage medium 802 here can include both the built-in storage medium in the page processing device 80 and the extended storage medium supported by the page processing device 80. The computer-readable storage medium provides a storage space, which stores the operating system of the page processing device 80. In addition, one or more instructions suitable for being loaded and executed by the processor 801 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium 802 here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor 801.
[0166] The page processing device 80 may be Figure 1The terminal 101 shown; the computer-readable storage medium 802 stores one or more instructions; the processor 801 loads and executes the one or more instructions stored in the computer-readable storage medium 802 to implement the corresponding steps in the above-mentioned page processing method embodiment; in a specific implementation, the one or more instructions in the computer-readable storage medium 802 are loaded by the processor 801 and execute the following steps:
[0167] Play the first video on the play page and display the page logo;
[0168] When there is a trigger signal that continuously acts on the page identifier, a preview page is displayed, and a preview list is displayed on the preview page;
[0169] When the page identifier is stopped, switching from the preview page to the play page; and,
[0170] Play the second video in the play page; the second video is the video selected in the preview page, and the second video is any video in the preview list.
[0171] In one implementation, the trigger signal includes a signal generated by a first operation acting on the page identifier;
[0172] One or more instructions in the computer-readable storage medium 802 are loaded and executed by the processor 801. When there is a trigger signal that continuously acts on the page identifier, when displaying the preview page, the following steps are specifically performed:
[0173] When the first operation is applied to the page identifier, the display is switched from the play page to the preview page; and,
[0174] Pause the first video on the playback page.
[0175] In one implementation, one or more instructions in the computer readable storage medium 802 are loaded by the processor 801 and further perform the following steps:
[0176] In the process of displaying the preview page, if the duration of the first operation acting on the page identifier is greater than the action threshold, the second video is played in the preview page.
[0177] In one implementation, one or more instructions in the computer readable storage medium 802 are loaded by the processor 801 and further perform the following steps:
[0178] During the process of playing the second video in the preview page, when the page identifier is stopped and triggered, obtaining the playing progress of the second video in the preview page;
[0179] When one or more instructions in the computer-readable storage medium 802 are loaded and executed by the processor 801 and the second video is played in the play page, the following steps are specifically performed:
[0180] The second video is played from the acquired playback progress in the playback page. In one implementation, the preview list includes multiple preview videos, the preview page includes a video display area, and the preview videos in the preview list that enter the video display area will be previewed and displayed; the video display area includes a selection area, and the second video refers to the preview video that enters the selection area.
[0181] In one implementation, the position of the selection area in the video display area may include at least one of the following: a top position, a bottom position, or any position between the top position and the bottom position.
[0182] In one implementation, the trigger signal further includes a signal generated by a second operation acting on the page identifier; one or more instructions in the computer-readable storage medium 802 are loaded by the processor 801 and further perform the following steps:
[0183] When the second operation is applied to the page logo, the preview video entering into the video display area is adjusted.
[0184] In one implementation, when one or more instructions in the computer-readable storage medium 802 are loaded and executed by the processor 801 to determine whether the second video enters the selection area, the following steps are specifically performed:
[0185] Obtaining a partial image area in the frame image of the second video that is within the selected region, and obtaining a reference total area of the selected region;
[0186] If the ratio of the partial image area to the reference total area is greater than the ratio threshold, it is determined that the second video enters the selection area.
[0187] In one implementation, the display screen includes at least a first display layer and a second display layer, the priority of the first display layer is higher than the priority of the second display layer, and the display layers are arranged in descending order of priority.
[0188] In one implementation, one or more instructions in the computer-readable storage medium 802 are loaded and executed by the processor 801. When the first video is played on the play page and the page identifier is displayed, the following steps are specifically performed:
[0189] Set the transparency of the play page to make it visible;
[0190] The play page is displayed in the first display layer, and a page logo is displayed in the play page.
[0191] In one implementation, when there is no trigger signal that continuously acts on the page identifier; one or more instructions in the computer-readable storage medium 802 are loaded by the processor 801 and the following steps are further performed:
[0192] Set the transparency of the preview page to make it invisible;
[0193] The preview page is displayed in the second display layer.
[0194] In one implementation, when there is a trigger signal that continuously acts on the page identifier; one or more instructions in the computer-readable storage medium 802 are loaded by the processor 801 and the following steps are also performed:
[0195] When there is a trigger signal that continuously acts on the page logo, the transparency of the preview page is adjusted to change the preview page from an invisible state to a visible state, and the page logo is displayed in the preview page;
[0196] Adjusting the transparency of the playback page to change the playback page from a visible state to an invisible state; and,
[0197] The priority of the second display layer is adjusted so that the priority of the second display layer is higher than the priority of the first display layer.
[0198] In one implementation, one or more instructions in the computer readable storage medium 802 are loaded by the processor 801 and further perform the following steps:
[0199] Display a subscription page, which contains at least one video;
[0200] When the first video in the subscription page is selected for playing, the steps of playing the first video on the play page and displaying the page logo are triggered; and at least one video is arranged into a preview list, and a preview page is constructed based on the preview list.
[0201] In the embodiment of the present application, the first video is played on the play page and the page identifier is displayed; when there is a trigger signal that continuously acts on the page identifier, the preview page is displayed; when the page identifier stops being triggered, the preview page is switched to the play page; and the second video is played on the play page. By setting the page identifier, the page identifier can be conveniently operated to realize the fast switching between the play page and the preview page of the video, and the fast switching from the first video to any second video can also be realized. The switching processing of the page and the video in the page is relatively flexible, which effectively improves the page processing efficiency, and can meet the video preview requirements and video switching requirements at the same time.
[0202] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A page processing method, characterized in that: The method comprises: Play the first video on the play page and display the page logo; When there is a trigger signal that continuously acts on the page identifier, switching from the play page to the preview page for display; and pausing the first video in the play page; a preview list is displayed in the preview page, and the preview list includes multiple preview videos; the trigger signal includes a signal generated by the first operation acting on the page identifier; In the process of displaying the preview page, if the duration of the first operation acting on the page identifier is greater than an action threshold, a second video is played in the preview page; the second video is a video selected in the preview page, and the second video is any video in the preview list; During the playing of the second video in the preview page, when the page identifier is stopped and triggered, obtaining the playing progress of the second video in the preview page, and switching from the preview page to the playing page; and, The second video is played starting from the acquired playback progress in the playback page.
2. The method according to claim 1, characterized in that The preview page includes a video display area, and the preview videos in the preview list that enter the video display area will be previewed and displayed; The video display area includes a selection area, and the second video refers to a preview video that enters the selection area.
3. The method according to claim 2, wherein the position of the selection area in the video display area comprises at least one of the following: a top position, a bottom position, or any position between the top position and the bottom position.
4. The method according to claim 2, characterized in that: The trigger signal also includes a signal generated by a second operation acting on the page identifier; the method also includes: When the second operation is applied to the page identifier, the preview video entering into the video display area is adjusted.
5. The method according to claim 2, characterized in that: The method of determining whether the second video enters the selection area includes: Acquire a partial image area of the frame image of the second video that is within the selected region, and acquire a reference total area of the selected region; If the ratio of the partial image area to the reference total area is greater than a ratio threshold, it is determined that the second video enters the selected area.
6. The method according to claim 1, characterized in that The display screen includes at least a first display layer and a second display layer. The priority of the first display layer is higher than that of the second display layer. The display layers are arranged in descending order of priority.
7. The method according to claim 6, wherein playing the first video on the play page and displaying the page logo comprises: Setting the transparency of the play page so that the play page is visible; The play page is displayed in the first display layer, and the page logo is displayed in the play page.
8. The method according to claim 6, when there is no trigger signal that continuously acts on the page identifier, the method further comprises: Setting the transparency of the preview page so that the preview page is in an invisible state; The preview page is displayed in the second display layer.
9. The method according to claim 8, wherein when there is a trigger signal that continuously acts on the page identifier, displaying the preview page comprises: When there is a trigger signal that continuously acts on the page identifier, adjusting the transparency of the preview page so that the preview page changes from an invisible state to a visible state, and displaying the page identifier in the preview page; Adjusting the transparency of the play page so that the play page changes from a visible state to an invisible state; as well as, The priority of the second display layer is adjusted so that the priority of the second display layer is higher than the priority of the first display layer.
10. The method according to claim 1, characterized in that The method further comprises: Displaying a subscription page, wherein the subscription page includes at least one video; When the first video in the subscription page is selected for playing, the steps of playing the first video on the play page and displaying the page logo are triggered; and the at least one video is arranged into the preview list, and the preview page is constructed based on the preview list.
11. A page processing device, characterized in that: The page processing device comprises: A playback unit, used to play the first video on the playback page and display a page logo; A processing unit is configured to switch from the play page to the preview page for display when there is a trigger signal that continuously acts on the page identifier; and pause the playing of the first video in the play page; a preview list is displayed in the preview page, and the preview list includes a plurality of preview videos; the trigger signal includes a signal generated by the first operation acting on the page identifier; The processing unit is further configured to, during the process of displaying the preview page, if the duration of the first operation acting on the page identifier is greater than an action threshold, play a second video in the preview page; the second video is a video selected in the preview page, and the second video is any video in the preview list; The processing unit is further configured to, during the process of playing the second video in the preview page, when the page identifier is stopped and triggered, obtain the playing progress of the second video in the preview page and switch from the preview page to the playing page; and The playback unit is used to play the second video in the playback page starting from the acquired playback progress.
12. A page processing device, characterized in that: The page processing device comprises: a processor adapted to implement one or more instructions; and, A computer-readable storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the page processing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the page processing method according to any one of claims 1 to 10.
