Display method and device, electronic equipment and storage medium

By using a view control to move between pages in social software, page switching is achieved, resource occupation problems caused by frequent creation and destruction are solved, and performance is improved.

CN119088483APending Publication Date: 2024-12-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310636757.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When social software frequently switches pages, it leads to frequent creation and destruction of view controls, occupying more processor resources, resulting in performance degradation.

Method used

Page switching is achieved by using a view control to move between pages within the media display area, without creating and destroying view controls, and switching pages only through the movement of view controls.

Benefits of technology

It reduces the occupancy of processor resources, avoids frequent creation and destruction of view controls, and improves the efficiency and performance of page switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088483A_ABST
    Figure CN119088483A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display method and device, electronic equipment and a storage medium, and the display method comprises the steps: on a first page in a media display area, displaying media data of the first page through a view control; in response to a switching operation, moving the first page and the view control, and triggering the switching of the first page in the media display area to a second page by the switching operation; and under the condition that the second page is selected, displaying the media data of the second page through the view control. The technical problem that the view control is frequently destroyed and created is solved, and the occupancy rate of processor resources is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a display method, device, electronic device, and storage medium. Background Art

[0002] Social interaction refers to social interactions. The software that achieves this goal through the Internet is social software. There are many social software, such as video social software, through which users can publish and browse videos.

[0003] When using social software, each page usually has a view control. Each time a page is switched, the view control is destroyed and created, and related resources are released. When social software needs to switch pages frequently, view controls will be frequently created and destroyed, which will occupy more processor resources. Summary of the invention

[0004] The present disclosure provides a display method, device, electronic device and storage medium to solve the technical problem of frequent destruction and creation of view controls.

[0005] In a first aspect, an embodiment of the present disclosure provides a display method, including:

[0006] On a first page in the media display area, displaying media data of the first page through a view control;

[0007] In response to a switching operation, moving the first page and the view control, the switching operation triggering switching of the first page in the media display area to a second page;

[0008] When the second page is selected, the media data of the second page is displayed through the view control.

[0009] In a second aspect, an embodiment of the present disclosure further provides a display device, including:

[0010] A first display module, configured to display media data of a first page on a first page in a media display area through a view control;

[0011] A moving module, configured to move the first page and the view control in response to a switching operation, wherein the switching operation triggers switching of the first page in the media display area to a second page;

[0012] The second display module is used to display the media data of the second page through the view control when the second page is selected.

[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0014] one or more processing devices;

[0015] a storage device for storing one or more programs,

[0016] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the display method provided by the present disclosure.

[0017] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a display method as provided in the present disclosure.

[0018] In an embodiment of the present disclosure, media data of a first page in a media display area is displayed through a view control; in response to a switching operation, the first page and the view control are moved, and the switching operation triggers switching of the first page in the media display area to a second page; when the second page is selected, the media data of the second page is displayed through the view control. The present disclosure does not need to create and destroy view controls when switching pages, and the page switching is achieved only by moving a view control between pages, which solves the technical problem of frequent destruction and creation of view controls and reduces the occupancy rate of processor resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0020] Figure 1 is a flow chart of a display method provided by an embodiment of the present disclosure;

[0021] Figure 2 is a flowchart of another display method provided by an embodiment of the present disclosure;

[0022] Figure 3a is a schematic diagram of displaying media data during static playback provided by an embodiment of the present disclosure;

[0023] Figure 3b is a schematic diagram of an interface for responding to a switching operation provided by an embodiment of the present disclosure;

[0024] Figure 3c is a schematic diagram of an interface for responding to a selected event provided by an embodiment of the present disclosure;

[0025] Figure 3d is a schematic diagram of a switching end interface provided by an embodiment of the present disclosure;

[0026] Figure 4 is a structural schematic diagram of a display device provided by an embodiment of the present disclosure;

[0027] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] In the following embodiments, each embodiment provides optional features and examples at the same time, and the various features recorded in the embodiments can be combined to form multiple optional solutions, and each numbered embodiment should not be regarded as only one technical solution. In addition, the embodiments in this disclosure and the features in the embodiments can be combined with each other without conflict.

[0035] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0036] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0037] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0038] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0039] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0040] In one embodiment, when a video application implements sliding switching of videos and playback, it usually uses ViewPager controls and RecyclerView controls, with a SurfaceView / TextureView laid out in each page. Every time a page is switched, the SurfaceView / TextureView control is destroyed and created, and related resources are released. There are three problems here: 1. Frequent creation and destruction of video playback controls leads to additional process processing. 2. When the control slides out of the screen, there is a possibility that the control itself needs to be released and there is a conflict with the sliding position change call, which will cause a crash. 3. Using more controls will take up more memory / CPU resources.

[0041] In order to solve the above technical problems, the present disclosure provides a display method, which realizes sliding switching and playing videos using a SurfaceView / TextureView control in a short video application. Among them, the short video can be considered as a video whose duration is less than a set threshold. SurfaceView can be considered as a surface view, and TextureView can be considered as a texture view.

[0042] Figure 1 This is a flow chart of a display method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation of displaying media data, such as the scene of switching media data in a short video or live broadcast scene. The method can be executed by a display device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, PC or server, etc., with a display function.

[0043] like Figure 1 As shown, the method includes:

[0044] S110. Displaying media data of a first page in a media display area through a view control.

[0045] The media display area may be considered as an area for displaying media data, and the media display area may be a display area on a screen of an electronic device.

[0046] In one embodiment, the screen area may include one or more of a status bar area and a navigation bar area and a media display area.

[0047] In one embodiment, the screen area may include only the media display area. The status bar area may be the area where the status bar is displayed, and the navigation bar area may be the area where the navigation bar is displayed. The status bar area and the navigation bar area may be non-video playback areas.

[0048] The first page may be a page displayed in the media display area. The view control may be a control for realizing media data display. The view control is not limited here. In one embodiment, the view control is a surface view or a texture view.

[0049] During static playback, that is, when no video or page switching is performed, on the first page of the media display area, the media data of the first page is displayed through the view control. The media data of the first page can be considered as the media content displayed through the first page.

[0050] Media data can refer to an important medium used to store and transmit information, such as videos or pictures.

[0051] S120. In response to a switching operation, move the first page and the view control.

[0052] The switching operation triggers switching the first page in the media display area to the second page.

[0053] After detecting the switching operation, in response to the switching operation, the first page and the view control are moved to move the first page out of the media display area. When moving the first page and the view control, the moving method of the first page and the view control is not limited. The view control can move with the first page, and the position of the view control remains the same as the position of the first page.

[0054] This embodiment does not limit the means for triggering the switching operation, and it may be through a touch screen, such as sliding on the screen, or in the form of voice control.

[0055] The direction of moving the first page and the view control is not limited, and can be determined based on the switching direction corresponding to the switching operation. For example, when the user slides the screen upward with a finger to switch the video of the second page below the first page, the first page and the view control can be moved upward. The same is true for sliding downward, which is not limited here.

[0056] In one embodiment, during the process of moving the first page and the view control, the position of the view control is the same as the position of the first page, so that during the process of moving the first page, the first page can always display the media content of the first page through the view control.

[0057] S130: When the second page is selected, display the media data of the second page through the view control.

[0058] The second page can be considered as a page switched to the media display area. The selection of the second page can be triggered by whether a selection event is generated. When a selection event is generated, the second page can be considered to be selected. When no selection event is generated, the second page can be considered to be unselected, and the media data of the first page can be displayed based on the view control.

[0059] The selection event can be considered as an event that identifies whether the page is selected. The triggering condition of the selection event is not limited here, and can be determined based on the proportion of the page in the media display area. When the proportion of the page in the media display area is greater than 50%, it can be considered that the selection event is triggered.

[0060] In one embodiment, when the proportion of the second page in the media display area is greater than 50%, it can be considered that a selection event of the second page is generated and the second page is selected.

[0061] The first page switches to the second page, and the corresponding media data of the first page switches to the media data of the second page, realizing the switching of media data, such as the switching of videos. The media content of the page can be the media content displayed on the page, such as the media content of the second page can be the media content displayed on the second page.

[0062] The present disclosure uses only one view control. Before the second page is selected, the view control displays the media data of the first page. After the second page is selected, the view control displays the media data of the second page. The present disclosure avoids the memory occupation of setting multiple view controls by moving one view control between pages, and also avoids the frequent creation and destruction of view controls when switching pages.

[0063] How to display the media data of the second page through the view control is not limited here, such as moving the view control to the location of the second page, and then moving synchronously with the second page to display the media data of the second page for the second page.

[0064] The technical solution of the embodiment of the present disclosure is to display the media data of the first page in the media display area through a view control; in response to a switching operation, the first page and the view control are moved, and the switching operation triggers the switching of the first page in the media display area to the second page; when the second page is selected, the media data of the second page is displayed through the view control. The present disclosure does not need to create and destroy view controls when switching pages, and page switching is achieved only by moving a view control between pages, which solves the technical problem of frequent destruction and creation of view controls and reduces the occupancy rate of processor resources.

[0065] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0066] In one embodiment, before detecting the switching operation, the method further includes:

[0067] Setting a setting picture of the second page on the second page;

[0068] Setting a setting picture of the third page on the third page;

[0069] The second page is a page adjacent to the first page in a first direction, the third page is a page adjacent to the first page in a second direction, and the first direction and the second direction are opposite directions.

[0070] The setting picture may be a pre-set picture, which is not limited here, and may be a default picture, or a picture determined according to the media data of the page, such as the cover of the media data or a highlight video frame or the first frame image of the media data. Different pages may correspond to different setting pages.

[0071] For example, the setting picture of the second page may be the cover of the media data of the second page. The setting picture of the third page may be the cover of the media data of the third page.

[0072] The second page and the third page may be pages respectively arranged on opposite sides of the first page and arranged adjacent to the first page.

[0073] In one embodiment, the first direction may be above the first page, and the second direction may be below the first page.

[0074] In one embodiment, the first direction may be below the first page, and the second direction may be above the first page.

[0075] The second page may be a page below the first page, and the third page may be a page above the first page.

[0076] When the page is still, there may be three pages, a first page, a second page, and a third page. The first page may be a page displayed in the media display area, the second page may be a page below the first page, and the third page may be a page above the first page. By providing pages above and below the first page, a black screen phenomenon can be avoided when switching pages.

[0077] Before the switching operation is detected, the first page is displayed in the media display area, and the second page and the third page are not displayed in the media display area, so the second page and the third page are not visible. In order to avoid the black screen phenomenon when the page is switched, before the switching operation is detected, the setting picture of the second page can be set on the second page, so that after the second page is moved to the media display area, the setting picture of the second page can be displayed. Similarly, the setting picture of the third page is set on the third page.

[0078] Setting the image of the second page on the second page may be associating the second page with the set image of the second page. Setting the image of the third page on the third page may be associating the third page with the set image of the third page. For example, the set image is displayed on the corresponding page so that the set image can be directly displayed when the page is moved into the media display area.

[0079] In one embodiment, the number of displayed pages can be set according to network conditions, and can be at least three pages.

[0080] In one embodiment, when the second page is selected, after the media data of the second page is displayed through the view control, the method further includes:

[0081] A setting picture of the fourth page is set on a fourth page, and the fourth page is a page set adjacent to the second page in the first direction.

[0082] The fourth page may be a page disposed adjacent to the second page in the first direction, and the second page may be located between the first page and the fourth page.

[0083] In one embodiment, when the second page is below the first page, the fourth page may be below the second page. When the second page is above the first page, the fourth page may be above the second page.

[0084] There is no limitation on the timing of setting the fourth page. The setting picture of the fourth page can be set after the second page is scrolled or moved; the setting picture of the fourth page can be set when the second page is displayed in the media display area; or the setting picture of the fourth page can be set when the second page moves with the first page.

[0085] Figure 2 is a flow chart of another display method provided by an embodiment of the present disclosure. This embodiment refines the operation of displaying the media data of the second page. Figure 2 , the method comprises the following steps:

[0086] S210: On a first page in a media display area, display media data of the first page through a view control.

[0087] S220. In response to a switching operation, move the first page and the view control.

[0088] S230: When the second page is selected, display a setting picture of the first page on the first page.

[0089] When the second page is selected, the view control can be used to display the media data of the second page, so the first page can display the set picture of the first page. The view control is moved out of the first page so that the view control is used to display the media data of the second page.

[0090] S240: Move the view control to the location of the second page.

[0091] This step moves the view control from the location of the first page to the location of the second page, so that the view control is associated with the second page and displays the media data of the second page.

[0092] This step can obtain the position of the second page, and then set the position of the view control based on the position of the second page, and move the view control to the position of the second page.

[0093] S250: Display the media data of the second page on the second page through the view control.

[0094] After the display page moves to the location of the second page, in this step, the media data of the second page can be displayed on the second page through the view control, such as starting the video playback of the second page on the view control, and then displaying the video being played on the second page through the view control.

[0095] In the disclosed embodiment, after the view control is moved out of the first page, the setting picture of the first page is displayed on the first page, and the view control is moved to the second page to display the media data of the second page. The movement of the view control realizes the switching of media data through a view control, avoids the frequent destruction and creation of the view control, reduces the resource usage, and quickly realizes the switching of media data through the translation of the view control.

[0096] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0097] In one embodiment, displaying the media data of the second page by using the view control on the second page includes:

[0098] Displaying a setting picture of the second page in the media display area;

[0099] Starting the video corresponding to the second page on the view control;

[0100] After the video is started, the setting picture of the second page is hidden, and the video is displayed through the view control.

[0101] When the media data of the second control is displayed through the view control, the second page displays the setting picture of the second page when the first page is displayed in the media display area. Since the second page is not in the media display area, the setting picture of the second page is invisible. In response to the switching operation, the first page and the second page move synchronously, and the second page is partially displayed in the media display area. The setting picture of the second page is displayed in the media display area. Since the second page is not entirely in the media display area, the visible part of the second page is the part in the media display area.

[0102] After the view control moves to the second page, the video of the second page is started on the view control. After the video starts playing, the setting picture of the second page is hidden and the video is displayed on the view control. The second page can include at least two layers, the setting picture of the second page is located in one layer, and the video of the second page is located in another layer. The layer where the setting picture is located can be higher than the layer where the video is located. The setting picture can be hidden by hiding the layer where the setting picture is located, and the video of the second page can be displayed.

[0103] The following is an exemplary description of the display method provided by the present disclosure. In this example, only the case of the SurfaceView control is considered, and the TextureView control is similar.

[0104] Figure 3a is a schematic diagram of displaying media data during static playback provided by an embodiment of the present disclosure, such as Figure 3a As shown, during static playback, only one SurfaceView is used in the middle of the screen. Video 1 above and Video 3 below are displayed using video covers (since Video 1 and Video 3 below are not located on the screen, Video 1 and Video 3 below are not visible, i.e., the user cannot see Video 1 and Video 3 below). The direction of the present disclosure can be referred to in the figure, such as the upper side can be along the paper surface upward, and the lower side can be along the paper surface downward. The screen area can be the status bar area, the media display area, and the navigation bar area from top to bottom, and the status bar area and the navigation bar area correspond to the area where the black rectangle in the screen area is located. Page, that is, a page, can be a page in Viewpager or RecyclerView. Video 2 area can be a media display area, using SurfaceView, i.e., a view control, for video playback, corresponding to the first page, i.e., page2. Above page2 is the third page, i.e., page1, corresponding to the video 1 cover area, for displaying the set picture of the third page. Below the first page is the second page, i.e., page3, corresponding to the video 3 cover area, for displaying the set picture of the second page. The first page can have a common edge or an adjacent edge with the second page and the third page, respectively.

[0105] Figure 3b is a schematic diagram of an interface for responding to a switching operation provided by an embodiment of the present disclosure; before the user slides the current video and releases the finger (i.e., before a select event is generated), Figure 3b As shown, assuming that the user slides the screen upwards, sliding the screen downwards is similar. At this time, the only SurfaceView follows page2 to move upwards. The two maintain the same position (that is, during the process of moving the first page and the view control, the position of the view control is the same as the position of the first page). Page3 also moves synchronously below page2 and follows page2.

[0106] When the user lets go, a selection event will be generated. Figure 3c is a schematic diagram of an interface for responding to a selected event provided by an embodiment of the present disclosure, such as Figure 3c , page3 will be selected, at this time:

[0107] 1. The page2 area switches to display the video 2 cover (i.e., the set picture of the first page is displayed on the first page).

[0108] 2. SurfaceView will move down the screen to the page3 position (ie, move the view control to the location of the second page).

[0109] 3. At this time, the page3 area still displays the video 3 cover (that is, the set picture of the second page is displayed in the media display area), and at the same time, the video 3 playback is started on this unique SurfaceView (that is, the video corresponding to the second page is started on the view control).

[0110] 4. When the video starts playing, the cover of video 3 is hidden, and SurfaceView displays the playing video, and the user can watch the video screen (that is, after the video starts, the setting picture of the second page is hidden, and the video is displayed through the view control).

[0111] 5. At the same time, SurfaceView continues to scroll up following page3 until the scrolling stops.

[0112] After the scrolling stops, page4 that slides up from the bottom will display the cover (that is, the setting picture of the fourth page is set on the fourth page), and SurfaceView continues to play video 3. Figure 3d 1 is a schematic diagram of a switching interface provided by an embodiment of the present disclosure. After the scrolling is completed, the second page is displayed in the media display area as a new first page. The cover of the corresponding page is displayed above and below the second page.

[0113] The present invention realizes video sliding switching and playing by moving the position of the SurfaceView / TextureView control itself up and down instead of placing it in a ready-made ViewPager or RecyclerView control. A method of using a SurfaceView / TextureView control to complete the video sliding switching and video playing in a small video scene.

[0114] Figure 4 is a schematic diagram of a structure of a display device provided by an embodiment of the present disclosure, such as Figure 4 As shown, the device comprises:

[0115] A first display module 410, configured to display media data of a first page on a first page in a media display area through a view control;

[0116] A moving module 420, configured to move the first page and the view control in response to a switching operation, wherein the switching operation triggers switching of the first page in the media display area to a second page;

[0117] The second display module 430 is used to display the media data of the second page through the view control when the second page is selected.

[0118] The technical solution provided by the embodiment of the present disclosure does not require the creation and destruction of view controls when switching pages. The page switching is achieved only by moving a view control between pages, which solves the technical problem of frequent destruction and creation of view controls and reduces the occupancy rate of processor resources.

[0119] The display device provided in the embodiments of the present disclosure can execute the display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0120] In one embodiment, during the process of moving the first page and the view control, the position of the view control is the same as the position of the first page.

[0121] In one embodiment, the device further comprises a third display module, which is used to set a setting picture of the second page on the second page before detecting the switching operation;

[0122] Setting a setting picture of the third page on the third page;

[0123] The second page is a page adjacent to the first page in a first direction, the third page is a page adjacent to the first page in a second direction, and the first direction and the second direction are opposite directions.

[0124] In one embodiment, the second display module 430 includes:

[0125] A first display unit, configured to display a setting picture of the first page on the first page when the second page is selected;

[0126] A moving unit, used for moving the view control to the location of the second page;

[0127] The second display unit is used to display the media data of the second page through the view control on the second page.

[0128] In one embodiment, the second display unit is specifically used for:

[0129] Displaying a setting picture of the second page in the media display area;

[0130] Starting the video corresponding to the second page on the view control;

[0131] After the video is started, the setting picture of the second page is hidden, and the video is displayed through the view control.

[0132] In one embodiment, the device also includes a fourth display module, which is used to set a setting picture of the fourth page on a fourth page after displaying the media data of the second page through the view control when the second page is selected, and the fourth page is a page set adjacent to the second page in the first direction.

[0133] In one embodiment, the view control is a surface view or a texture view.

[0134] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0135] Figure 5 Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 , which shows an electronic device (eg, Figure 5 A schematic diagram of the structure of a terminal device or server) 500.

[0136] The electronic device 500 includes:

[0137] One or more processing devices 501;

[0138] The storage device 508 is used to store one or more programs.

[0139] When the one or more programs are executed by the one or more processing devices 501 , the one or more processing devices 501 implement the display method of the present disclosure.

[0140] The terminal devices in the embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 5The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0141] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0142] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0143] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0144] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0145] The electronic device provided by the embodiment of the present disclosure and the display method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0146] An embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the display method provided by the above embodiment is implemented.

[0147] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.

[0148] The computer storage medium may be a storage medium of computer executable instructions, which, when executed by a computer processor, are used to perform the methods provided by the present disclosure.

[0149] Computer readable storage media may be, for example, but not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0150] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0151] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0152] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0153] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays media data of the first page on the first page in the media display area through a view control;

[0154] In response to a switching operation, moving the first page and the view control, the switching operation triggering switching of the first page in the media display area to a second page;

[0155] When the second page is selected, the media data of the second page is displayed through the view control.

[0156] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0157] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] The modules or units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module or unit does not limit the unit itself in some cases. For example, the first display module may also be described as a "media data display module for the first page".

[0159] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0160] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0161] According to one or more embodiments of the present disclosure, [Example 1] provides a display method, including displaying media data of a first page in a media display area through a view control;

[0162] In response to a switching operation, moving the first page and the view control, the switching operation triggering switching of the first page in the media display area to a second page;

[0163] When the second page is selected, the media data of the second page is displayed through the view control.

[0164] According to one or more embodiments of the present disclosure, [Example 2] provides the method of Example 1, wherein during the process of moving the first page and the view control, the position of the view control is the same as the position of the first page.

[0165] According to one or more embodiments of the present disclosure, [Example 3] provides the method of Example 1, which, before detecting the switching operation, further includes:

[0166] Setting a setting picture of the second page on the second page;

[0167] Setting a setting picture of the third page on the third page;

[0168] The second page is a page adjacent to the first page in a first direction, the third page is a page adjacent to the first page in a second direction, and the first direction and the second direction are opposite directions.

[0169] According to one or more embodiments of the present disclosure, [Example 4] provides the method of Example 1, wherein when the second page is selected, displaying the media data of the second page through the view control includes:

[0170] When the second page is selected, displaying the setting picture of the first page on the first page;

[0171] Move the view control to the location of the second page;

[0172] The media data of the second page is displayed on the second page through the view control.

[0173] According to one or more embodiments of the present disclosure, [Example 5] provides the method of Example 4, wherein displaying the media data of the second page through the view control on the second page includes:

[0174] Displaying a setting picture of the second page in the media display area;

[0175] Starting the video corresponding to the second page on the view control;

[0176] After the video is started, the setting picture of the second page is hidden, and the video is displayed through the view control.

[0177] According to one or more embodiments of the present disclosure, [Example 6] provides the method of Example 1, and when the second page is selected, after displaying the media data of the second page through the view control, further includes:

[0178] A setting picture of the fourth page is set on a fourth page, and the fourth page is a page set adjacent to the second page in the first direction.

[0179] According to one or more embodiments of the present disclosure, [Example 7] provides the method of Examples 1-6, wherein the view control is a surface view or a texture view.

[0180] According to one or more embodiments of the present disclosure, [Example 8] provides a display device, including:

[0181] A first display module, configured to display media data of a first page on a first page in a media display area through a view control;

[0182] A moving module, configured to move the first page and the view control in response to a switching operation, wherein the switching operation triggers switching of the first page in the media display area to a second page;

[0183] The second display module is used to display the media data of the second page through the view control when the second page is selected.

[0184] According to one or more embodiments of the present disclosure, [Example 9] provides an electronic device, the electronic device comprising:

[0185] one or more processing devices;

[0186] a storage device for storing one or more programs,

[0187] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method described in any one of Examples 1-7.

[0188] According to one or more embodiments of the present disclosure, [Example 10] provides a storage medium containing computer-executable instructions, which are used to execute any of the methods described in Examples 1-7 when executed by a computer processor.

[0189] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0190] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0191] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A display method, characterized in that: include: On a first page in the media display area, displaying media data of the first page through a view control; In response to a switching operation, moving the first page and the view control, the switching operation triggering switching of the first page in the media display area to a second page; When the second page is selected, the media data of the second page is displayed through the view control.

2. The method according to claim 1, characterized in that During the process of moving the first page and the view control, the position of the view control is the same as the position of the first page.

3. The method according to claim 1, characterized in that Before the switch operation is detected, it also includes: Setting a setting picture of the second page on the second page; Setting a setting picture of the third page on the third page; The second page is a page adjacent to the first page in a first direction, the third page is a page adjacent to the first page in a second direction, and the first direction and the second direction are opposite directions.

4. The method according to claim 1, characterized in that: The method of displaying the media data of the second page by using the view control when the second page is selected includes: When the second page is selected, displaying the setting picture of the first page on the first page; Move the view control to the location of the second page; The media data of the second page is displayed on the second page through the view control.

5. The method according to claim 4, characterized in that The displaying the media data of the second page by using the view control on the second page includes: Displaying a setting picture of the second page in the media display area; Starting the video corresponding to the second page on the view control; After the video is started, the setting picture of the second page is hidden, and the video is displayed through the view control.

6. The method according to claim 1, characterized in that In the case where the second page is selected, after the media data of the second page is displayed by the view control, the method further includes: A setting picture of the fourth page is set on a fourth page, and the fourth page is a page set adjacent to the second page in the first direction.

7. The method according to any one of claims 1 to 6, characterized in that: The view control is a surface view or a texture view.

8. A display device, characterized in that: include: A first display module, configured to display media data of a first page on a first page in a media display area through a view control; A moving module, configured to move the first page and the view control in response to a switching operation, wherein the switching operation triggers switching of the first page in the media display area to a second page; The second display module is used to display the media data of the second page through the view control when the second page is selected.

9. An electronic device, characterized in that: The electronic device comprises: one or more processing devices; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method according to any one of claims 1 to 7.

10. A storage medium comprising computer executable instructions, which when executed by a computer processor are used to perform the method according to any one of claims 1 to 7.