Player generation method and device and computer readable storage medium
By setting up a multi-level container structure in the player, the functional elements are decoupled, the problem of high player development and maintenance costs is solved, and the development efficiency and flexibility of the player are improved.
Patent Information
- Application Number
- CN202410329986.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2025-09-23
AI Technical Summary
The development and maintenance costs of the player are high, mainly because different functional elements are coupled together, which increases the complexity of development and maintenance.
By setting different containers in the player and registering functional elements in the containers at corresponding positions according to their types, the functional elements can be decoupled and a multi-level container structure can be used to layout and manage the functional elements.
It reduces the development and maintenance costs of the player and improves the flexibility and maintenance efficiency of the player.
Smart Images

Figure CN120687089A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a player generation method, a player generation device, a computer-readable storage medium, and a computer program product. Background Art
[0002] To meet user demand for video content, video players need to have multiple functional elements to implement various video-related functions. For example, in some video streaming applications, it is necessary to set up multiple play control areas for a horizontally displayed video player to provide users with various video-related functions.
[0003] In related technologies, player developers need to comprehensively layout all functional elements in the player to generate the player. Summary of the Invention
[0004] The inventors of the present disclosure have discovered that the above-mentioned related technologies have the following problems: the development of different functional elements is coupled together, resulting in high development and maintenance costs of the player.
[0005] In view of this, the present disclosure proposes a player generation technology solution that can reduce the development and maintenance costs of the player.
[0006] According to some embodiments of the present disclosure, a player generation method is provided, comprising: in response to a first registration instruction for a first functional element, registering the first functional element in a container specified by the registration instruction in a first functional layer of the player, the first functional layer comprising a plurality of containers, different containers being located at different positions of the first functional layer; and generating a player according to the specified container.
[0007] In some embodiments, generating a player according to the specified container includes: displaying a first functional element in the player according to a position of the specified container in the first functional layer.
[0008] In some embodiments, different containers correspond to different player function types, and the player function implemented by the first functional element matches the player function type corresponding to the specified container.
[0009] In some embodiments, the player function types include multiple functions of multimedia content information display function, multimedia content sharing function, multimedia content screen projection function, multimedia content creator information function, playback status control function, and multimedia content evaluation function.
[0010] In some embodiments, the player generation method also includes: in response to a second registration instruction for a second functional element, registering the second functional element to a second functional layer specified by the second registration instruction of the player, the player includes at least one second functional layer, the player function type corresponding to at least one second functional layer is different from the player function type corresponding to the first functional layer, and the player function implemented by the second functional element matches the player function type corresponding to the specified second functional layer; generating a player according to the specified second functional layer.
[0011] In some embodiments, the at least one second functional layer includes multiple second functional layers, and different second functional layers correspond to different player function types.
[0012] In some embodiments, each of the plurality of second functional layers corresponds to a single player functional type.
[0013] In some embodiments, each of the multiple second functional layers includes multiple containers, different containers in each second functional layer are located at different positions of each second functional layer, and different containers in each second functional layer correspond to different player function types.
[0014] In some embodiments, at least one second functional layer overlies the first functional layer.
[0015] In some embodiments, a plurality of functional elements for implementing different player functions are registered in the player, and each of the plurality of functional elements is individually encapsulated.
[0016] In some embodiments, the player generation method further includes: in response to a change in the status information of one of the multiple functional elements, sending the change in the status information to other functional elements in the multiple functional elements.
[0017] According to other embodiments of the present disclosure, a player generating device is provided, including: a registration unit, for registering the first functional element in a container specified by the registration instruction in a first functional layer of the player in response to a first registration instruction for the first functional element, wherein the first functional layer includes multiple containers, and different containers are located at different positions of the first functional layer; and a generation unit, for generating a player according to the specified container.
[0018] In some embodiments, the generating unit displays the first functional element in the player according to the position of the designated container in the first functional layer.
[0019] In some embodiments, different containers correspond to different player function types, and the player function implemented by the first functional element matches the player function type corresponding to the specified container.
[0020] In some embodiments, the player function types include multiple functions of multimedia content information display function, multimedia content sharing function, multimedia content screen projection function, multimedia content creator information function, playback status control function, and multimedia content evaluation function.
[0021] In some embodiments, the registration unit registers the second functional element to the second functional layer specified by the second registration instruction of the player in response to the second registration instruction for the second functional element. The player includes at least one second functional layer. The player function type corresponding to the at least one second functional layer is different from the player function type corresponding to the first functional layer. The player function implemented by the second functional element matches the player function type corresponding to the specified second functional layer. The generation unit generates the player according to the specified second functional layer.
[0022] In some embodiments, the at least one second functional layer includes multiple second functional layers, and different second functional layers correspond to different player function types.
[0023] In some embodiments, each of the plurality of second functional layers corresponds to a single player functional type.
[0024] In some embodiments, each of the multiple second functional layers includes multiple containers, different containers in each second functional layer are located at different positions of each second functional layer, and different containers in each second functional layer correspond to different player function types.
[0025] In some embodiments, at least one second functional layer overlies the first functional layer.
[0026] In some embodiments, a plurality of functional elements for implementing different player functions are registered in the player, and each of the plurality of functional elements is individually encapsulated.
[0027] In some embodiments, the player generating device further includes: a sending unit configured to send the change of the status information to other functional elements among the multiple functional elements in response to a change in the status information of one functional element among the multiple functional elements.
[0028] According to some further embodiments of the present disclosure, a player generating device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the player generating method in any one of the above embodiments based on instructions stored in the memory device.
[0029] According to some further embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the player generation method in any of the above embodiments is implemented.
[0030] According to some further embodiments of the present disclosure, a computer program product is provided. When the computer program product is run on a computer, the computer is enabled to implement the player generation method in any of the above embodiments.
[0031] In the above embodiment, by setting up different containers, the layout of different functional elements in the player can be completed by simply registering different functional elements in the containers at corresponding positions. In this way, the different functional elements can be decoupled, thereby reducing the development and maintenance costs of the player. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0033] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings:
[0034] Figure 1 A flowchart illustrating some embodiments of the player generation method of the present disclosure;
[0035] Figures 2a to 2c Schematic diagrams showing some embodiments of the player generation method disclosed herein;
[0036] Figures 3a-3b Schematic diagrams showing other embodiments of the player generation method disclosed herein;
[0037] Figure 4 A block diagram illustrating some embodiments of a player generating device of the present disclosure;
[0038] Figure 5 A block diagram showing some other embodiments of the player generating device disclosed herein;
[0039] Figure 6 A block diagram showing some further embodiments of the player generating device of the present disclosure. DETAILED DESCRIPTION
[0040] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0041] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0042] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0043] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, they should be considered part of the specification.
[0044] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0045] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0046] As mentioned above, as the number of functional elements in the player increases, the coupling between the functional elements becomes more serious, resulting in increasingly high development and maintenance costs for the player.
[0047] In response to the above technical problems, the present disclosure intends to adopt the following embodiments to achieve decoupling of different functional elements, thereby reducing the development and maintenance costs of the player.
[0048] Figure 1 A flowchart illustrating some embodiments of the player generation method of the present disclosure.
[0049] like Figure 1 As shown, in step 110, in response to a first registration instruction for a first functional element, the first functional element is registered in a container specified by the registration instruction in a first functional layer of the player.
[0050] In some embodiments, the first functional layer includes multiple containers, with different containers located at different positions in the first functional layer. For example, on the developer side of a player, a first functional layer comprising multiple containers can be set up for the player; the user selects corresponding functional elements from a pool of functional elements based on the functions they want the player to implement; and the user registers the selected functional elements in the container corresponding to the location in the player where they want to add the function.
[0051] By setting up different containers, you can easily layout the different functional elements within the player simply by registering them in the corresponding containers. Player functionality can be updated simply by updating the functional elements registered in the container, without affecting other functions. This decouples the different functional elements and reduces player development and maintenance costs.
[0052] In some embodiments, different containers correspond to different player function types, and the player function implemented by the first functional element matches the player function type corresponding to the specified container.
[0053] For example, the first functional layer may include containers located at the top, middle, and bottom, respectively used to register functional elements of different player function types; the position of the container in the first functional layer can be mapped to the position of the functional elements registered in the container in the player.
[0054] For example, the player function types include multiple functions of multimedia content information display function, multimedia content sharing function, multimedia content screen projection function, multimedia content creator information function, playback status control function, and multimedia content evaluation function.
[0055] For example, multimedia content may include video, audio, image, and other content that can be played by a player.
[0056] For example, the multimedia content information display function can be used to display the title, introduction and other related information of the multimedia content; the multimedia content sharing function can be used to realize the function of sharing multimedia content with other users through social media and other channels; the multimedia content screen projection function can be used to realize the function of projecting multimedia content to other playback devices; the multimedia content creator information function can be used to display the creator's ID, title and other identity information; the playback status control function can be used to realize the playback, pause, stop and other control of multimedia content; the multimedia content evaluation function can be used to realize the like, collection, comment and other functions of multimedia content.
[0057] By assigning functions to different containers, the layout of the player's various functional elements can be completed simply by registering the corresponding functional elements within the container. Player functionality can be updated simply by updating the functional elements registered within the container, without affecting other functions. This decouples the different functional elements and reduces player development and maintenance costs.
[0058] Below through Figures 2a-2b The embodiment in exemplifies how to register functional elements into a container.
[0059] Figures 2a-2b Schematic diagrams showing some embodiments of the player generation method disclosed herein.
[0060] like Figure 2a As shown, the first functional layer may include a top container 21 a , a middle container 23 a , a bottom container 24 a , and an information container 22 a located between the top container 21 a and the middle container 23 a .
[0061] In some embodiments, the top container 21a, the middle container 23a, the bottom container 24a and the information container 22a are respectively used to register functional elements of different player function types.
[0062] For example, the top container 21a can be used to register functional elements corresponding to the multimedia content information display function, multimedia content sharing function, multimedia content projection function, etc.; the information container 22a can be used to register functional elements corresponding to the multimedia content creator information function, etc.; the middle container 23a can be used to register functional elements corresponding to the playback status control function, etc.; the bottom container 24a can be used to register functional elements corresponding to the multimedia content evaluation function, etc.
[0063] In some embodiments, the user selects corresponding functional elements from the functional element pool according to the functions that the user wants the player to implement; the user registers the selected functional elements to the container corresponding to the location where the user wants to add the function in the player.
[0064] For example, Figure 2b As shown, the user selects function element 1 corresponding to the multimedia content information display function, function element 2 corresponding to the multimedia content screen projection function, and function element 3 corresponding to the multimedia content sharing function from the function element pool according to the functions that the user wants the player to implement; the player function types corresponding to function element 1, function element 2, and function element 3 match the top container 21a, so function element 1, function element 2, and function element 3 can be registered to the top container 21a.
[0065] The user selects the function element 4 corresponding to the multimedia content creator information function from the function element pool according to the function he wants the player to implement; the player function type corresponding to the function element 4 matches the information container 22a, so the function element 4 can be registered to the information container 22a.
[0066] The user selects the function element 5 corresponding to the playback status control function from the function element pool according to the function he wants the player to implement; the player function type corresponding to the function element 5 matches the middle container 23a, so the function element 5 can be registered to the information container 23a.
[0067] Based on the desired player functionality, the user selects Function Element 6, Function Element 7, and Function Element 8 from the pool of Function Elements, which correspond to multimedia content evaluation functions. Function Element 6 is used to implement the "Like" function for multimedia content, Function Element 7 is used to implement the "Comment" function for multimedia content, and Function Element 8 is used to implement the "Add to Favorites" function for multimedia content. All of these functions fall under the category of multimedia content evaluation. The player function types corresponding to Function Element 6, Function Element 7, and Function Element 8 match bottom container 24a, so Function Element 6, Function Element 7, and Function Element 8 can be registered with bottom container 24a.
[0068] After registering the corresponding functional elements in the container, you can continue to Figure 1 Step 120 in the above method generates a player.
[0069] In step 120, a player is generated according to the specified container.
[0070] In some embodiments, the first functional element is displayed in the player according to the position of the designated container in the first functional layer. For example, the position of the container in the first functional layer corresponds to the position of the functional element registered therein in the player.
[0071] For example, the position of the container in the first functional layer can be mapped to the position of the functional elements registered in the container in the player.
[0072] In this way, by setting up different containers, you only need to register different functional elements in the corresponding containers to complete the layout of different functional elements in the player. This achieves decoupling of different functional elements and reduces the development and maintenance costs of the player.
[0073] Below through Figure 2c The embodiment in the example illustrates generating a player based on a container in which functional elements are registered in the first functional layer.
[0074] Figure 2c Schematic diagrams showing some embodiments of the player generation method disclosed herein.
[0075] like Figure 2c As shown, in the top area of the player, function elements 1, 2, and 3 of the top container registered to the first function page can be displayed. Function element 1 corresponds to the multimedia content information display function, which is used to display the chapter information corresponding to the currently playing multimedia content (such as episode 1); function element 2 corresponds to the multimedia content screen casting function, which is used to cast the currently playing multimedia content to the TV; function element 3 corresponds to the multimedia content sharing function, which is used to share the multimedia content with other users through social media and other channels.
[0076] In the middle area of the player, the function element 5 registered to the middle container of the first function page can be displayed. Function element 5 corresponds to the play state control function, which is used to realize the control of play, pause, stop, etc. of multimedia content.
[0077] Between the top and middle areas of the player, a function element 4 of the information container registered to the first function page can be displayed. Function element 4 corresponds to the multimedia content creator information function and is used to display the creator's ID, title, and other identity information (such as creator XXX).
[0078] The bottom area of the player displays function elements 6, 7, and 8, which are registered to the bottom container of the first function page. These elements correspond to multimedia content rating functions. Function element 6 is used to like multimedia content, function element 7 is used to comment on multimedia content, and function element 8 is used to add multimedia content to favorites.
[0079] In some embodiments, in response to a second registration instruction for a second functional element, the second functional element is registered with the second functional layer specified by the second registration instruction of the player. For example, the player includes at least one second functional layer, and the player function type corresponding to the at least one second functional layer is different from the player function type corresponding to the first functional layer; the player function implemented by the second functional element matches the player function type corresponding to the specified second functional layer. The player is generated based on the specified second functional layer.
[0080] For example, the first functional layer may correspond to player functions with an update frequency below a threshold. These player functions are basic player functions that are common to almost all players, and their layout generally changes infrequently. Therefore, each player can be equipped with a first functional layer consisting of multiple containers.
[0081] For example, the second functional layer may correspond to player functions with an update frequency higher than a threshold, such as bullet screen functions and preview functions. These player functions are additional functions beyond the basic player functions (such as playback status control functions and multimedia content information display functions). Not all players have them, and their layout may change frequently. Therefore, these player functions can be separated from the first functional layer and placed in the second functional layer.
[0082] By registering different player functions in different layers, updating the functional elements registered in one layer will not affect the functional elements registered in other layers. This decouples the different functional elements and reduces the development and maintenance costs of the player.
[0083] In some embodiments, the at least one second functional layer includes multiple second functional layers, and different second functional layers correspond to different player function types. For example, the at least one second functional layer overlays the first functional layer. For example, each of the multiple second functional layers corresponds to a single player function type.
[0084] For example, one second functional layer only registers functional elements corresponding to the barrage function; another second functional layer only registers functional elements corresponding to the preview function.
[0085] In this way, the classification of player functions corresponding to different functional layers is further refined, the decoupling of different functional elements is achieved, and the development and maintenance costs of the player are reduced.
[0086] For example, each of the multiple second functional layers includes multiple containers, different containers in each second functional layer are located at different positions of each second functional layer, and different containers in each second functional layer correspond to different player function types.
[0087] In this way, the second functional layer can also achieve decoupling of different functional elements by setting different containers, reducing the development and maintenance costs of the player.
[0088] Below through Figure 3a The embodiment in exemplifies the method of registering functional elements in the second functional layer.
[0089] Figure 3a Schematic diagrams showing other embodiments of the player generating method disclosed herein.
[0090] like Figure 3a As shown, the player includes a first functional layer 21, a second functional layer 32a, a second functional layer 33a, and a third functional layer 34a.
[0091] For example, the first functional layer 21 includes multiple containers for registering basic functions such as multimedia content information display function, multimedia content sharing function, multimedia content screen projection function, multimedia content creator information function, playback status control function, and multimedia content evaluation function.
[0092] For example, the second function layer 32a, the second function layer 33a, and the third function layer 34a are respectively used to register different functions. The second function layer 32a is used to register the functional elements corresponding to the barrage function; the second function layer 33a is used to register the functional elements corresponding to the preview function; and the third function layer 34a is used to register the functional elements corresponding to the lock screen function.
[0093] The user selects a functional element corresponding to the barrage function from the functional element pool according to the function he wants the player to implement; the player function type corresponding to the functional element matches the second functional layer 32a, so the functional element can be registered to the second functional layer 32a.
[0094] The user selects a functional element corresponding to the preview function from the functional element pool according to the function he wants the player to implement; the player function type corresponding to the functional element matches the second functional layer 33a, so the functional element can be registered to the second functional layer 33a.
[0095] In some embodiments, a player may be generated based on a user-specified container in the first functional layer and a user-specified second functional layer. For example, if the user specifies the second functional layer 32a and the second functional layer 33a, a video may be generated based on the second functional layer 32a and the second functional layer 33a.
[0096] In the above embodiment, multi-level registration and management of functional elements are realized through the first functional layer, the second functional layer, multiple containers, etc., the application scenarios of the player generation method are increased, different functional elements are decoupled, and the development and maintenance costs of the player are reduced.
[0097] Below through Figure 3b The embodiment in the embodiment exemplifies the method of generating a player based on the second functional layer.
[0098] Figure 3b Schematic diagrams showing other embodiments of the player generating method disclosed herein.
[0099] like Figure 3b As shown, in response to the user registering the functional elements corresponding to the barrage function in the second functional layer 32a and the functional elements corresponding to the preview function in the second functional layer 33a, the corresponding functional elements of the second functional layer 32a and the second functional layer 33a can be displayed in the corresponding area of the player.
[0100] For example, in response to the user registering a function element 32b corresponding to the barrage function in the second function layer 32a, the function element 32b is displayed in the top area of the player to display the barrage content, etc.
[0101] For example, in response to a user registering a function element 33b corresponding to a preview function in the second function layer 33a, function element 33b is displayed in the central area of the player to display a preview screen and its corresponding time information. For example, in response to a video browser dragging the playback progress bar to a specified time point, function element 33b displays a thumbnail of the video screen corresponding to the specified time point in the central area as a preview screen, the time information corresponding to the specified time point is 00:26, and the total length of the video is 02:04.
[0102] In some embodiments, a plurality of functional elements for implementing different player functions are registered in the player, and each of the plurality of functional elements is individually encapsulated. For example, different functional elements are encapsulated separately using a unified encapsulation method.
[0103] In this way, the decoupling of different functions is achieved, reducing the development and maintenance costs of the player.
[0104] In some embodiments, in response to a change in the status information of one of the plurality of functional elements, the change in the status information is sent to other functional elements of the plurality of functional elements.
[0105] For example, the functional element corresponding to the foreground and backstage switching switches the player from the foreground display state to the background waiting state; based on the functional correlation between the functional element and other functional elements, the status information of the functional element can be sent to the functional element corresponding to the playback status control function; the functional element corresponding to the playback status control function switches the playback state of the player from the playback state to the pause state.
[0106] In this way, individually encapsulated functional elements can adaptively adjust their own states by receiving state information changes from other functional elements. This enables lifecycle management and distribution of functional elements, enabling timely changes to the player state based on functional requirements, thereby improving the performance of the generated player.
[0107] Figure 4 A block diagram showing some embodiments of the player generating device of the present disclosure.
[0108] like Figure 4 As shown, the player generating device 4 includes: a registration unit 41, which is used to register the first functional element in the container specified by the registration instruction in the first functional layer of the player in response to the first registration instruction for the first functional element, and the first functional layer includes multiple containers, and different containers are located at different positions of the first functional layer; a generation unit 42, which is used to generate a player according to the specified container.
[0109] In some embodiments, the generating unit 42 displays the first functional element in the player according to the position of the designated container in the first functional layer.
[0110] In some embodiments, different containers correspond to different player function types, and the player function implemented by the first functional element matches the player function type corresponding to the specified container.
[0111] In some embodiments, the player function types include multiple functions of multimedia content information display function, multimedia content sharing function, multimedia content screen projection function, multimedia content creator information function, playback status control function, and multimedia content evaluation function.
[0112] In some embodiments, the registration unit 41 registers the second functional element in the second functional layer specified by the second registration instruction of the player in response to the second registration instruction for the second functional element. The player includes at least one second functional layer. The player function type corresponding to at least one second functional layer is different from the player function type corresponding to the first functional layer. The player function implemented by the second functional element matches the player function type corresponding to the specified second functional layer. The generation unit 42 generates the player according to the specified second functional layer.
[0113] In some embodiments, the at least one second functional layer includes multiple second functional layers, and different second functional layers correspond to different player function types.
[0114] In some embodiments, each of the plurality of second functional layers corresponds to a single player functional type.
[0115] In some embodiments, each of the multiple second functional layers includes multiple containers, different containers in each second functional layer are located at different positions of each second functional layer, and different containers in each second functional layer correspond to different player function types.
[0116] In some embodiments, at least one second functional layer overlies the first functional layer.
[0117] In some embodiments, a plurality of functional elements for implementing different player functions are registered in the player, and each of the plurality of functional elements is individually encapsulated.
[0118] In some embodiments, the player generating device 4 further includes: a sending unit 43, configured to send the change of the state information to other functional elements in the multiple functional elements in response to the change of the state information of one functional element in the multiple functional elements.
[0119] In the above embodiment, by setting up different containers, the layout of different functional elements in the player can be completed by simply registering different functional elements in the containers at corresponding positions. In this way, the different functional elements can be decoupled, thereby reducing the development and maintenance costs of the player.
[0120] Figure 5 A block diagram showing some other embodiments of the player generating device of the present disclosure.
[0121] like Figure 5 As shown, the device 5 of this embodiment includes: a memory 51 and a processor 52 coupled to the memory 51, and the processor 52 is configured to execute the player generation method in any embodiment of the present disclosure based on the instructions stored in the memory 51.
[0122] The memory 51 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, application programs, a boot loader, a database, and other programs.
[0123] Figure 6 A block diagram showing some further embodiments of the player generating device of the present disclosure.
[0124] like Figure 6 As shown, the player generating device 6 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610 , and the processor 620 is configured to execute the player generating method in any of the aforementioned embodiments based on the instructions stored in the memory 610 .
[0125] The memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, application programs, a boot loader, and other programs.
[0126] The player generation device 6 may also include an input / output interface 630, a network interface 640, a storage interface 650, and the like. These interfaces 630, 640, 650, as well as the memory 610 and the processor 620, may be connected, for example, via a bus 660. The input / output interface 630 provides a connection interface for input / output devices such as a display, mouse, keyboard, touch screen, microphone, and speakers. The network interface 640 provides a connection interface for various networked devices. The storage interface 650 provides a connection interface for external storage devices such as SD cards and USB flash drives.
[0127] Those skilled in the art will appreciate that embodiments of the present disclosure may be provided as methods, systems, or computer program products. Thus, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transitory storage media, including but not limited to magnetic disk storage, CD-ROMs, optical storage, and the like, containing computer-usable program code.
[0128] The player generation method, player generation device, computer-readable storage medium, and computer program product according to the present disclosure have been described in detail. To avoid obscuring the concepts of the present disclosure, some details known in the art have been omitted. Based on the above description, those skilled in the art will fully understand how to implement the technical solutions disclosed herein.
[0129] The methods and systems of the present disclosure may be implemented in many ways. For example, the methods and systems of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the methods according to the present disclosure. Therefore, the present disclosure also covers recording media that store programs for executing the methods according to the present disclosure.
[0130] Although some specific embodiments of the present disclosure have been described in detail by way of examples, those skilled in the art will appreciate that the above examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Those skilled in the art will appreciate that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A player generation method, comprising: In response to a first registration instruction for a first functional element, registering the first functional element in a container specified by the registration instruction in a first functional layer of the player, the first functional layer including a plurality of containers, different containers being located at different positions in the first functional layer; The player is generated according to the specified container.
2. The player generation method according to claim 1, wherein: Generating the player according to the specified container includes: The first functional element is displayed in the player according to the position of the designated container in the first functional layer.
3. The player generation method according to claim 1, wherein: The different containers correspond to different player function types, and the player function implemented by the first functional element matches the player function type corresponding to the specified container.
4. The player generation method according to claim 3, wherein: The player function types include multiple functions of multimedia content information display function, multimedia content sharing function, multimedia content screen projection function, multimedia content creator information function, playback status control function, and multimedia content evaluation function.
5. The player generation method according to claim 1, further comprising: In response to a second registration instruction for a second functional element, registering the second functional element in a second functional layer specified by the second registration instruction of the player, the player comprising at least one second functional layer, a player function type corresponding to the at least one second functional layer being different from a player function type corresponding to the first functional layer, and a player function implemented by the second functional element matching the player function type corresponding to the specified second functional layer; The player is generated according to the specified second functional layer.
6. The player generation method according to claim 5, wherein: The at least one second functional layer includes multiple second functional layers, and different second functional layers correspond to different player function types.
7. The player generation method according to claim 6, wherein: Each of the multiple second functional layers corresponds to a single player function type.
8. The player generation method according to claim 6, wherein: Each of the multiple second functional layers includes multiple containers, different containers in each second functional layer are located at different positions of each second functional layer, and different containers in each second functional layer correspond to different player function types.
9. The player generation method according to claim 5, wherein: The at least one second functional layer covers the first functional layer.
10. The player generation method according to any one of claims 1 to 9, wherein: A plurality of functional elements for realizing different player functions are registered in the player, and each of the plurality of functional elements is individually encapsulated.
11. The player generation method according to claim 10, further comprising: In response to a change in status information of one of the plurality of functional elements, the change in status information is sent to other functional elements of the plurality of functional elements.
12. A player generating device, comprising: a registration unit, configured to, in response to a first registration instruction for a first functional element, register the first functional element in a container specified by the registration instruction in a first functional layer of the player, wherein the first functional layer includes a plurality of containers, and different containers are located at different positions in the first functional layer; A generating unit is configured to generate the player according to the specified container.
13. The player generating device according to claim 12, further comprising: The sending unit is configured to send the change of the status information of one of the multiple functional elements to other functional elements in response to the change of the status information of the one of the multiple functional elements.
14. A player generating device, comprising: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the player generation method according to any one of claims 1 to 11 based on instructions stored in the memory.
15. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the player generation method according to any one of claims 1 to 11 is implemented.
16. A computer program product, which, when running on a computer, enables the computer to implement the player generation method according to any one of claims 1 to 11.