Screen switching processing method, device, equipment and storage medium

By defining preset enumeration classes and preset screen switching processing functions, the problem that the existing technology cannot be compatible with multiple screen information switching is solved, the diversity of video content display and the satisfaction of user personalized needs is achieved, and the user viewing experience is improved.

CN114327319BActive Publication Date: 2025-06-06BEIJING DUHAOWEN TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011069745.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2025-06-06
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

The prior art is not compatible with switching of multiple screen information, cannot meet users' personalized needs, and reduces user viewing experience.

Method used

By predefined a preset enumeration class, including multiple preset screen information, the target screen information selected by the user is obtained and stored in a predefined storage object, the preset screen switching processing function is called for distribution processing, and passed to the service module for business processing.

Benefits of technology

It realizes switching of multiple screen information, improves the diversity of video content display, meets users' personalized needs, and improves user viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327319B_ABST
    Figure CN114327319B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for processing screen switching, the method comprising: obtaining the target screen information currently switched to selected by the user from a plurality of preset screen information; storing the target screen information in a predefined first storage object, wherein the object type of the first storage object is the type of a preset enumeration class, and the preset enumeration class includes each preset screen information; using the first storage object as an input parameter, calling a preset screen switching processing function, distributing and processing the target screen information, and passing the target screen information to a business module, so that the business module performs business processing based on the target screen information. Through the technical solution of the embodiment of the present invention, it is possible to be compatible with the switching of a plurality of screen information, improve the diversity of video content display, thereby meeting the personalized needs of users and improving the user viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a screen switching processing method, device, equipment and storage medium. Background Art

[0002] With the rapid development of computer technology, various applications have been developed and applied in terminal devices to meet the growing needs of users. When users watch video content on the application page, they can usually only choose to display the video content on the page in a short vertical screen or a full horizontal screen, so that the screen can only switch between the two screen information of short vertical screen and full horizontal screen, and cannot be compatible with the third screen information, thereby failing to meet the personalized needs of users and reducing the user's viewing experience. Summary of the invention

[0003] The embodiments of the present invention provide a screen switching processing method, device, equipment and storage medium to be compatible with the switching of multiple screen information, improve the diversity of video content display, thereby meeting the personalized needs of users and improving the user viewing experience.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing screen switching, including:

[0005] Obtain the target screen information currently switched to selected by the user from a plurality of preset screen information;

[0006] storing the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of the preset screen information;

[0007] By taking the first storage object as an input parameter and calling a preset screen switching processing function, the target screen information is distributed and processed to pass the target screen information to a business module, so that the business module performs business processing based on the target screen information.

[0008] In a second aspect, an embodiment of the present invention further provides a screen switching processing device, including:

[0009] A target screen information acquisition module is used to acquire the target screen information currently switched to selected by the user from a plurality of preset screen information;

[0010] A target screen information storage module, used for storing the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of the preset screen information;

[0011] A distribution processing module is used to call a preset screen switching processing function by taking the first storage object as an input parameter to distribute the target screen information so as to pass the target screen information to a business module so that the business module performs business processing based on the target screen information.

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

[0013] one or more processors;

[0014] A memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the screen switching processing method provided by any embodiment of the present invention.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a screen switching processing method as provided in any embodiment of the present invention.

[0017] The embodiments of the above invention have the following advantages or beneficial effects:

[0018] By pre-defining a preset enumeration class, which includes multiple preset screen information, the user can select the target screen information to be switched to from the multiple preset screen information based on the needs, so that the switching of multiple screen information can be conveniently compatible. By using the first storage object storing the target screen information as an input parameter and calling the preset screen switching processing function, the target screen information can be distributed and processed, and the target screen information can be passed to the business module, so that the business model can perform business processing based on the target screen information currently switched to, so that the switching of multiple screen information can be supported, the diversity of video content display is improved, and the personalized needs of users are met, and the user viewing experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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.

[0020] Figure 1 is a flowchart of a screen switching processing method provided by Embodiment 1 of the present invention;

[0021] Figure 2 is a flowchart of a screen switching processing method provided by Embodiment 2 of the present invention;

[0022] Figure 3 is a structural schematic diagram of a screen switching processing device provided by Embodiment 3 of the present invention;

[0023] Figure 4 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0025] Embodiment 1

[0026] Figure 1 This is a flowchart of a screen switching processing method provided in the first embodiment of the present invention. This embodiment can be applied to the case where the switching of screen information is processed so that all business modules can operate normally. The method can be executed by a screen switching processing device, which can be implemented by software and / or hardware and integrated into an electronic device equipped with an Android system, such as a smart phone, tablet computer, smart TV or laptop computer. Figure 1 As shown, the method specifically comprises the following steps:

[0027] S110: Acquire the target screen information currently switched to selected by the user from a plurality of preset screen information.

[0028] Among them, the preset screen information may refer to the screen size information pre-set for viewing video content. The preset screen information may include screen orientation information and screen status information. The screen orientation information may include: horizontal screen and vertical screen. The screen status information may include: short screen, long screen and full screen. When using a short screen or a long screen to play the video content in the page, the terminal device can simultaneously display the video content and the non-video content part in the page. Compared with long screen playback, the terminal device can display more non-video content parts in the page due to the shorter screen height during short screen playback. The preset screen information in this embodiment may be multiple, for example, at least three or more, and the specific number may be set based on actual scenarios and business requirements. For example, a variety of preset screen information may include but is not limited to: vertical short screen information, vertical long screen information, horizontal full screen information and vertical full screen information. Among them, the screen height in the vertical short screen information is less than the screen height in the vertical long screen information, and the screen height in the vertical long screen information is less than the screen height in the vertical full screen information. The target screen information may refer to the preset screen information switched from the current screen information. For example, a switching button corresponding to each preset screen information may be displayed in the playback device, so that the user can select the corresponding switching button based on the needs to switch the current screen information to the target screen information.

[0029] Specifically, when a screen information switching operation triggered by the user is detected, it indicates that the user has switched the current screen information. At this time, the target screen information currently switched to and selected by the user can be obtained based on the screen information switching operation triggered by the user.

[0030] S120: Store the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of preset screen information.

[0031] The first storage object is a type of a predefined preset enumeration class, which is used to store an object of the target screen information that the user currently switches to. The preset enumeration class can be an enumeration class defined in the form of an enum class so as to be compatible with various preset screen information, so that the user can select the target screen information to be switched to from the compatible preset screen information. Exemplarily, the preset enumeration class can be defined as follows:

[0032]

[0033] Among them, the name of the preset enumeration class is MZScreenOrientation, and four preset screen information are defined in the preset enumeration class, namely: PORTRAIT_HALF_SHORT vertical short screen information, PORTRAIT_HALF_LONG vertical long screen information, LANDSCAPE horizontal full screen information and PORTRAIT_FULL vertical full screen information.

[0034] Specifically, the acquired target screen information can be stored in the first storage object orientation of the preset enumeration class MZScreenOrientation type, that is, the target screen information stored in the first storage object is a preset screen information in the preset enumeration class MZScreenOrientation. For example, if the target screen information stored in the first storage object is PORTRAIT_HALF_LONG, it indicates that the target screen information currently switched to by the user is a vertical long screen information.

[0035] S130. By taking the first storage object as an input parameter, calling a preset screen switching processing function, the target screen information is distributed and processed to pass the target screen information to the business module, so that the business module performs business processing based on the target screen information.

[0036] The business module may refer to a functional module associated with the screen information of the video content being played, that is, the business module needs to perform normal business processing based on the screen information parameter so that the page can run normally. The preset screen switching processing function is a predefined function for processing screen information switching so that the business module can run normally. For example, the preset screen switching processing function can be defined as:

[0037] fun switchScreen(orientation:MZScreenOrientation)

[0038] The name of the preset screen switching processing function is switchScreen, and the function has one input parameter: the first storage object orientation of the preset enumeration class MZScreenOrientation type.

[0039] Specifically, by taking the first storage object orientation storing the target screen information as an input parameter and calling the preset screen switching processing function switchScreen(orientation), the target screen information after switching can be passed to each business module, so that each business module performs business processing based on the target screen information after switching, thereby ensuring the normal operation of the business processing flow and the normal operation of the page. Therefore, it can support the switching of multiple screen information, improve the diversity of video content display, and thus meet the personalized needs of users and enhance the user viewing experience.

[0040] Exemplarily, the preset screen switching processing function can implement the function of distributing and processing the target screen information to transmit the target screen information to the business module through the following steps:

[0041] Get the context object of the current page, and call the holder object acquisition function by taking the context object as the input parameter to get the holder object of the current page; distribute and process the target screen information by calling the filter function and the screen information change function in the distribution listening function in the holder object to pass the target screen information to the business module.

[0042] The context object may refer to an object of type Context in the current page, which is used to store data related to the current page. The dispatch listener function may refer to the dispatchListener function in the holder object Holder, which is used to dispatch a listener message. A listener wrapper object may be passed into the dispatch listener function, and the wrapper object is instantiated as follows: object:IMZListenerWrapper <imzrequestlistener>{}, IMZListenerWrapper, the wrapping object IMZListenerWrapper is used to wrap the preset protocol object IMZRequestListener, and can override two functions in the preset protocol object IMZRequestListener, namely the filter function filter and the screen information change function onOrientationChange, wherein the filter function filter can be used to effectively filter out the data information of the preset protocol object IMZRequestListener type, thereby obtaining the object information that implements the preset protocol object IMZRequestListener. The screen information change function onOrientationChange can be used to pass the target screen information to the business module that implements the preset protocol object IMZRequestListener and overrides the screen information change function, so that these business modules can receive the actively distributed target screen information, and then perform business processing based on the target screen information.

[0043] Specifically, the preset screen switching processing function can implement the function of distributing and processing the target screen information through the following code to transmit the target screen information to the business module:

[0044]

[0045]

[0046] Among them, after obtaining the context object mContext of the current page, the Holder object of the current page can be obtained by calling the holder object acquisition function MZHolderManager.getActivityHolder(mContext) in the preset holder management object with the context object mContext as the input parameter. Check whether the Holder object is an empty object. If so, stop the distribution process by calling return; if not, continue the subsequent distribution process, that is, distribute the target screen information by calling the distribution listening function in the Holder object, and effectively filter out the data information of the preset protocol object IMZRequestListener type by calling the overridden filter function filter(data:Any) and the screen information change function listener.onOrientationChange(orientation), and pass the target screen information to the business module that implements the preset protocol object IMZRequestListener and overridden the screen information change function onOrientationChange, so that these business modules can receive the actively distributed target screen information, and then perform business processing based on the target screen information.

[0047] The technical solution of this embodiment predefines a preset enumeration class, which includes multiple preset screen information, so that users can select the target screen information to be switched to from the multiple preset screen information based on their needs, thereby conveniently supporting the switching of multiple screen information. By taking the first storage object storing the target screen information as an input parameter and calling the preset screen switching processing function, the target screen information can be distributed and processed, and the target screen information can be passed to the business module, so that the business model can perform business processing based on the target screen information currently switched to, thereby supporting the switching of multiple screen information, improving the diversity of video content display, thereby meeting the personalized needs of users and improving the user viewing experience.

[0048] Based on the above technical solution, the method also includes: within the preset screen switching processing function, assigning a predefined second storage object based on the first storage object, so that the second storage object stores the target screen information currently switched to in real time; wherein the object type of the second storage object is the type of a preset enumeration class, and the second storage object has a private permission modifier.

[0049] The second storage object may be a predefined variable object of a preset enumeration class type with a private permission modifier. For example, the second storage object may be defined as:

[0050] private var currentOrientation:MZScreenOrientation? =MZScreenOrientation.PORTRAIT_HALF_SHORT

[0051] The object type of the second storage object is the preset enumeration class MZScreenOrientation, the object name is currentOrientation, and the second storage object is initialized to the PORTRAIT_HALF_SHORT vertical screen short screen information in the preset enumeration class MZScreenOrientation. The private permission modifier private is set to ensure the privacy and security of data.

[0052] Specifically, inside the preset screen switching processing function switchScreen, before or after the distribution processing, the value of the second storage object currentOrientation can be dynamically set by calling this.currentOrientation = orientation, so that the second storage object can be updated in real time each time the screen information is switched, so that the second storage object can store the target screen information currently switched to, so that the target screen information can be sent based on the second storage object later, thereby ensuring the accuracy of the screen switching processing.

[0053] Exemplarily, after the target screen information is distributed and processed, it also includes: if the business module does not store the target screen information after the distribution process, the business module returns the second storage object by calling a preset screen information acquisition function, so that the business module receives the target screen information stored in the second storage object.

[0054] The preset screen information acquisition function may be a predefined independent Open function so that the business module can know the target screen information currently switched to at any time. For example, the preset screen information acquisition function may be defined as follows:

[0055] Open fun getCurrentOrientation():MZScreenOrientation? {

[0056] return currentOrientation

[0057] }

[0058] The name of the preset screen information acquisition function is getCurrentOrientation, and its return value is the second storage object currentOrientation of the preset enumeration class MZScreenOrientation type.

[0059] Specifically, when the target screen information is actively distributed to each business module, some business modules can store the transmitted target screen information in time, however, some business modules do not store the target screen information in time, but actively obtain the target screen information when the target screen information is needed, so as to improve the storage space utilization. When the business module does not store the target screen information after distribution processing, when the target screen information is needed, the business module can return the second storage object currentOrientation by calling the preset screen information acquisition function getCurrentOrientation(), so that the business module can actively obtain the target screen information stored in the second storage object, thereby improving the diversity of scene application and further improving the user experience.

[0060] Embodiment 2

[0061] Figure 2 This is a flowchart of a screen switching processing method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment describes in detail the process of resetting the screen information for playing video content in the current page when the current page is reinitialized. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0062] See also Figure 2 The screen switching processing method provided in this embodiment specifically includes the following steps:

[0063] S210: Obtain the target screen information currently switched to selected by the user from a plurality of preset screen information.

[0064] S220: Store the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of preset screen information.

[0065] S230: calling a preset screen switching processing function by taking the first storage object as an input parameter, distributing and processing the target screen information, and transferring the target screen information to the business module, so that the business module performs business processing based on the target screen information.

[0066] S240: When reinitializing the current page, detect whether the live broadcast room used to play the video content in the current page is a preset live broadcast room.

[0067] The preset live broadcast room may refer to a live broadcast room that needs to use a larger screen size to play video content so that the video content is clearer. For example, the preset live broadcast room may refer to a face value live broadcast room, such as some live broadcast rooms about live beauty.

[0068] Specifically, when the current page is reinitialized, since the user may have switched the screen information, the current screen information is not the initial screen information, and thus the screen information needs to be reset. At this time, the identification of the live broadcast room used to play the video content in the current page can be matched with the identification of the preset live broadcast room. If the match is successful, it can be determined that the live broadcast room used to play the video content in the current page is the preset live broadcast room. If the match fails, it can be determined that the live broadcast room used to play the video content in the current page is not the preset live broadcast room, so that different live broadcast rooms can be reset to different screen information based on the detection result.

[0069] S250: Using the detection result as an input parameter, calling a preset screen information reset function, and resetting the screen information used to play the video content in the current page.

[0070] The preset screen information reset function may be a predefined function for resetting the screen information. For example, the preset screen information reset function may be defined as:

[0071] private fun resetScreen(isMobile:Boolean)

[0072] The name of the preset screen information reset function is resetScreen, which has a private permission modifier private so that it can be accessed when the page is initialized to ensure the privacy of the function. The function has an input parameter, namely isMobile of Boolean type, which is used to characterize the detection result. For example, if the live broadcast room used to play video content in the current page is a preset live broadcast room, isMobile can be set to true; if the live broadcast room used to play video content in the current page is not a preset live broadcast room, isMobile can be set to false.

[0073] Specifically, by taking the detection result isMobile as an input parameter and calling the preset screen information reset function resetScreen(isMobile), the screen information used to play video content in the current page can be reset based on the detection result, so that different screen information can be reset for different live broadcast rooms, further improving the diversity of scene applicability.

[0074] Exemplarily, the preset screen information reset function can implement the function of resetting the screen information used to play video content in the current page through the following steps: if the live broadcast room used to play video content in the current page is the preset live broadcast room, the first preset screen information in the preset enumeration class is used as an input parameter, and the preset screen switching processing function is called to distribute and process the first preset screen information to reset the screen information used to play video content in the current page to the first preset screen information; if the live broadcast room used to play video content in the current page is not the preset live broadcast room, the second preset screen information in the preset enumeration class is used as an input parameter, and the preset screen switching processing function is called to distribute and process the second preset screen information to reset the screen information used to play video content in the current page to the second preset screen information.

[0075] Among them, the first preset screen information can be a pre-defined screen information after the preset live broadcast room is initialized, so that the screen information can be used to display the video content of the preset live broadcast room for the first time. For example, if the preset live broadcast room is a face value live broadcast room, the first preset screen information can be the vertical long screen information in the preset enumeration class, that is, MZScreenOrientation.PORTRAIT_HALF_LONG. The second preset screen information can be the screen information after the pre-defined non-preset live broadcast room is initialized, so that the screen information can be used to display the video content of the non-preset live broadcast room for the first time. For example, if the preset live broadcast room is a face value live broadcast room, the second preset screen information can be the vertical short screen information in the preset enumeration class, that is, MZScreenOrientation.PORTRAIT_HALF_SHORT.

[0076] Specifically, inside the preset screen information reset function, the detection result can be judged by calling if(isMobile) first. If isMobile is true, the condition is met, that is, the live broadcast room used to play video content in the current page is the preset live broadcast room. At this time, the preset screen switching processing function switchScreen can be called by taking the first preset screen information as an input parameter, for example, calling switchScreen(MZScreenOrientation.PORTRAIT_HALF_LONG) to switch the screen information to the vertical long screen. If isMobile is false, the condition is not met, that is, the live broadcast room used to play video content in the current page is not the preset live broadcast room. At this time, the preset screen switching processing function switchScreen can be called by taking the second preset screen information as an input parameter, for example, calling switchScreen(MZScreenOrientation.PORTRAIT_HALF_SHORT) to switch the screen information to the vertical short screen, thereby realizing the reset operation of the screen information when the current page is reinitialized.

[0077] The technical solution of this embodiment is to detect whether the live broadcast room used to play video content in the current page is a preset live broadcast room when reinitializing the current page, and use the detection result as an input parameter to call the preset screen information reset function to reset the screen information used to play video content in the current page, so that different screen information can be reset for different live broadcast rooms, further improving the diversity of scene applicability and the efficiency of screen information reset.

[0078] The following is an embodiment of a screen switching processing device provided in an embodiment of the present invention. The device and the screen switching processing method of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the screen switching processing device, reference can be made to the embodiment of the above-mentioned screen switching processing method.

[0079] Embodiment 3

[0080] Figure 3 This is a structural diagram of a screen switching processing device provided in Embodiment 3 of the present invention. This embodiment is applicable to the case of processing the switching of screen information. The device specifically includes: a target screen information acquisition module 310, a target screen information storage module 320 and a distribution processing module 330.

[0081] Among them, the target screen information acquisition module 310 is used to obtain the target screen information currently switched to selected by the user from a plurality of preset screen information; the target screen information storage module 320 is used to store the target screen information in a predefined first storage object, wherein the object type of the first storage object is the type of a preset enumeration class, and the preset enumeration class includes each type of preset screen information; the distribution processing module 330 is used to call the preset screen switching processing function by using the first storage object as an input parameter to distribute and process the target screen information, so as to pass the target screen information to the business module, so that the business module performs business processing based on the target screen information.

[0082] Optionally, the multiple preset screen information include: vertical short screen information, vertical long screen information, horizontal full screen information and vertical full screen information; wherein the screen height in the vertical short screen information is smaller than the screen height in the vertical long screen information, and the screen height in the vertical long screen information is smaller than the screen height in the vertical full screen information.

[0083] Optionally, the device further includes: a preset screen switching processing function execution module, which is used to implement the function of distributing and processing the target screen information to transfer the target screen information to the business module through the following steps:

[0084] Get the context object of the current page, and call the holder object acquisition function by taking the context object as the input parameter to get the holder object of the current page;

[0085] By calling the filtering function and the screen information changing function in the distribution monitoring function in the holder object, the target screen information is distributed and processed to pass the target screen information to the business module.

[0086] Optionally, the device further comprises:

[0087] The second storage object assignment module is used to assign a pre-defined second storage object based on the first storage object within the preset screen switching processing function, so that the second storage object can store the target screen information currently switched to in real time; wherein the object type of the second storage object is the type of the preset enumeration class, and the second storage object has a private permission modifier.

[0088] Optionally, the device further comprises:

[0089] The second storage object returning module is used to, after the target screen information is distributed and processed, if the business module does not store the target screen information after the distribution and processing, the business module returns the second storage object by calling a preset screen information acquisition function, so that the business module receives the target screen information stored in the second storage object.

[0090] Optionally, the device further comprises:

[0091] A live broadcast room detection module is used to detect whether the live broadcast room used to play video content in the current page is a preset live broadcast room when the current page is reinitialized;

[0092] The screen information reset module is used to take the detection result as an input parameter, call a preset screen information reset function, and reset the screen information used to play the video content in the current page.

[0093] Optionally, the device further includes: a preset screen information reset function execution module, which is used to implement a function of resetting the screen information used to play the video content in the current page through the following steps:

[0094] If the live broadcast room for playing video content in the current page is a preset live broadcast room, the first preset screen information in the preset enumeration class is used as an input parameter, the preset screen switching processing function is called, and the first preset screen information is distributed and processed to reset the screen information for playing video content in the current page to the first preset screen information;

[0095] If the live broadcast room used to play video content in the current page is not the preset live broadcast room, the second preset screen information in the preset enumeration class is used as an input parameter, the preset screen switching processing function is called, and the second preset screen information is distributed and processed to reset the screen information used to play video content in the current page to the second preset screen information.

[0096] The screen switching processing device provided in the embodiment of the present invention can execute the screen switching processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the screen switching processing method.

[0097] It is worth noting that in the embodiment of the above-mentioned screen switching processing device, the various units and modules included 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 scope of protection of the present invention.

[0098] Embodiment 4

[0099] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0100] like Figure 4 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0101] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0102] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0103] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0104] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0105] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0106] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a screen switching processing method provided by the embodiment of the present invention, the method comprising:

[0107] Obtain the target screen information currently switched to selected by the user from a plurality of preset screen information;

[0108] storing the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of preset screen information;

[0109] By taking the first storage object as an input parameter and calling a preset screen switching processing function, the target screen information is distributed and processed, so as to pass the target screen information to the business module, so that the business module performs business processing based on the target screen information.

[0110] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the screen switching processing method provided by any embodiment of the present invention.

[0111] Embodiment 5

[0112] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the processing method steps of screen switching provided by any embodiment of the present invention are implemented. The method includes:

[0113] Obtain the target screen information currently switched to selected by the user from a plurality of preset screen information;

[0114] storing the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of preset screen information;

[0115] By taking the first storage object as an input parameter and calling a preset screen switching processing function, the target screen information is distributed and processed, so as to pass the target screen information to the business module, so that the business module performs business processing based on the target screen information.

[0116] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0117] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0118] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0119] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including 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 the case of 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).

[0120] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0121] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.< / imzrequestlistener>

Claims

1. A method for processing screen switching, It is characterized in that include: Obtain the target screen information currently switched to selected by the user from a plurality of preset screen information; storing the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of the preset screen information; By taking the first storage object as an input parameter, calling a preset screen switching processing function, distributing and processing the target screen information, and passing the target screen information to a business module, so that the business module performs business processing based on the target screen information; The preset screen switching processing function implements the function of distributing and processing the target screen information through the following steps to transmit the target screen information to the business module: Obtain the context object of the current page, and call the holder object acquisition function by taking the context object as an input parameter to obtain the holder object of the current page; The target screen information is distributed and processed by calling the filter function and the screen information change function in the distribution monitoring function in the holder object, so as to transfer the target screen information to the business module.

2. The method according to claim 1, It is characterized in that The plurality of preset screen information includes: vertical short screen information, vertical long screen information, horizontal full screen information and vertical full screen information; Among them, the screen height in the vertical short screen information is smaller than the screen height in the vertical long screen information, and the screen height in the vertical long screen information is smaller than the screen height in the vertical full screen information.

3. The method according to claim 1, It is characterized in that The method further comprises: Within the preset screen switching processing function, a predefined second storage object is assigned a value based on the first storage object so that the second storage object stores the target screen information currently switched to in real time; wherein the object type of the second storage object is the type of a preset enumeration class, and the second storage object has a private permission modifier.

4. The method according to claim 3, It is characterized in that After the target screen information is distributed and processed, the method further includes: If the service module does not store the target screen information after distribution processing, the service module returns the second storage object by calling a preset screen information acquisition function, so that the service module receives the target screen information stored in the second storage object.

5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: When reinitializing the current page, detecting whether the live broadcast room used to play the video content in the current page is a preset live broadcast room; The detection result is used as an input parameter, and the preset screen information reset function is called to reset the screen information used to play the video content in the current page.

6. The method according to claim 5, It is characterized in that The preset screen information reset function implements the function of resetting the screen information used to play the video content in the current page through the following steps: If the live broadcast room for playing video content in the current page is a preset live broadcast room, the first preset screen information in the preset enumeration class is used as an input parameter, the preset screen switching processing function is called, and the first preset screen information is distributed and processed to reset the screen information for playing video content in the current page to the first preset screen information; If the live broadcast room used to play video content in the current page is not a preset live broadcast room, the second preset screen information in the preset enumeration class is used as an input parameter, the preset screen switching processing function is called, and the second preset screen information is distributed and processed to reset the screen information used to play video content in the current page to the second preset screen information.

7. A screen switching processing device, It is characterized in that include: A target screen information acquisition module is used to acquire the target screen information currently switched to selected by the user from a plurality of preset screen information; A target screen information storage module, used for storing the target screen information into a predefined first storage object, wherein the object type of the first storage object is a type of a preset enumeration class, and the preset enumeration class includes each type of the preset screen information; a distribution processing module, configured to call a preset screen switching processing function by taking the first storage object as an input parameter, and perform distribution processing on the target screen information, so as to transfer the target screen information to a business module, so that the business module performs business processing based on the target screen information; The preset screen switching processing function execution module is used to implement the function of distributing and processing the target screen information through the following steps to transmit the target screen information to the business module: Obtain the context object of the current page, and call the holder object acquisition function by taking the context object as an input parameter to obtain the holder object of the current page; The target screen information is distributed and processed by calling the filter function and the screen information change function in the distribution monitoring function in the holder object, so as to transfer the target screen information to the business module.

8. An electronic device, It is characterized in that The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the screen switching processing method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the screen switching processing method as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Android horizontal and vertical screen data synchronization method and device, terminal and readable medium

    CN109165067A