CN112015407A - Plug-in player implementation method and device and electronic equipment - Google Patents

Plug-in player implementation method and device and electronic equipment Download PDF

Info

Publication number
CN112015407A
CN112015407A CN201910473114.0A CN201910473114A CN112015407A CN 112015407 A CN112015407 A CN 112015407A CN 201910473114 A CN201910473114 A CN 201910473114A CN 112015407 A CN112015407 A CN 112015407A
Authority
CN
China
Prior art keywords
player
component
components
peripheral
library
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910473114.0A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910473114.0A priority Critical patent/CN112015407A/en
Publication of CN112015407A publication Critical patent/CN112015407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention relates to the technical field of players, in particular to a plug-in player implementation method and device and electronic equipment. One specific implementation of the method comprises the following steps: determining peripheral components required by a target player to be generated; generating a target player comprising a player carrier and the peripheral components, the player carrier comprising a user interface carrier and a video player drive, the player carrier passing signals between the peripheral components and the video player drive. By adopting the idea of modularization, the player development process is changed into pluggable modular operation, developers can add, delete and create any required components according to needs, the difficulty is reduced, the diversity is improved, and the development iteration is quickly carried out.

Description

Plug-in player implementation method and device and electronic equipment
Technical Field
The invention relates to the technical field of players, in particular to a plug-in player implementation method and device and electronic equipment.
Background
Generally, a multimedia player refers to software capable of playing video or audio files stored in the form of digital signals, and also refers to an electronic device product having a function of playing video or audio files. Such as flash-based mp3 players and mobile hard disk-based ipods. Most players carry decoders to restore compressed media files, in addition to a few waveform files, and the players also have a full set of conversion frequencies and buffering algorithms built into them.
Most players include a kernel, an interactive interface, and a play mode. The kernel mainly refers to algorithms related to sound quality such as decoding, buffering, frequency conversion and the like, the interactive interface mainly refers to an external interface for interaction between a user and software, and the playing mode mainly refers to the way in which a player plays songs to meet the playing habit and playing psychology of the user. The degrees of importance of the three aspects of the kernel, the interactive interface and the playing mode in the player design are gradually reduced. So that the play mode of most players is similar.
Currently, a third-party multimedia player is embedded in an application program (APP) of a mobile terminal to play video, audio information, and the like.
In the process of implementing the invention, the inventor finds that: for the embedded multimedia player used in the mobile terminal APP, the player of the third party is directly used in the APP, so that the matching degree is low, the compatibility is not high, and the use efficiency is low; once the third-party player is updated or the APP needs to update the player, the update iteration cost is high, the time period is long, and the customization effect is poor.
Disclosure of Invention
The embodiment of the invention provides a plug-in player implementation method, a plug-in player implementation device and electronic equipment, which can improve the development speed of a player and realize personalized customization of the player.
In a first aspect, an embodiment of the present invention provides an implementation method of a plug-in player, including: determining a player carrier required by a target player to be generated; determining peripheral components required by the target player; generating a target player comprising a preset base player and the player carrier and the peripheral components, wherein the player carrier comprises a user interface carrier and a video player driver, and the player carrier transfers signals between the peripheral components and the video player driver.
Optionally, the determining peripheral components required by the target player to be generated includes: according to selection operation executed by a user on a component library comprising a plurality of preset peripheral components, adding the peripheral components specified by the selection operation; and/or deleting redundant peripheral components in the base player according to the selection operation of the user; and/or generating the peripheral component directly according to an instruction input by a user for generating the peripheral component.
Optionally, before the generating the target player including the preset base player and the player carrier and the peripheral component, the method further includes: when the players have multiple types, determining the player carrier matched with the target player type from multiple preset player carriers.
Optionally, the peripheral component comprises at least one of: the system comprises a user interface component library, a gesture component library, a full screen component library, a monitoring component library and an earphone processing component library. .
Optionally, the user interface component library includes at least one of: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, other components of the container video, a play start component, a play pause component, a play stop component and other user interface components; the gesture component library comprises at least one of the following: a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding/displaying user interface component, a double-clicking pause component, and other gesture components.
Optionally, the listening component library includes at least one of: a full screen monitoring component, a user interface monitoring component, a player progress monitoring component and other monitoring components; the components of the earphone processing component library control playing states according to states of connected earphones, wherein the playing states at least comprise one of the following states: fast forward, fast backward, increase volume, decrease volume, mute or not, stop, play, pause; the full screen component library controls the full screen state of the video player.
In a second aspect, an embodiment of the present invention provides an apparatus for implementing a plug-in player, including: the first determining unit is used for determining peripheral components required by a target player to be generated; a second determination unit, configured to determine peripheral components required by the target player; the player carrier comprises a user interface carrier and a video player driver, and the player carrier transmits signals among the peripheral components and between the peripheral components and the video player driver.
Optionally, the second determining unit is further configured to: according to selection operation executed by a user on a component library comprising a plurality of preset peripheral components, adding the peripheral components specified by the selection operation; and/or deleting redundant peripheral components in the base player according to the selection operation of the user; and/or generating the peripheral component according to an instruction input by a user and used for generating the peripheral component.
Optionally, the first determining unit is further configured to: when the players have multiple types, determining the player carrier matched with the target player type from multiple preset player carriers.
Optionally, the peripheral component comprises at least one of: the system comprises a user interface component library, a gesture component library, a full screen component library, a monitoring component library and an earphone processing component library.
Optionally, the user interface component library includes at least one of: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, other components of the container video, a play start component, a play pause component, a play stop component and other user interface components; the gesture component library comprises at least one of the following: a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding/displaying user interface component, a double-clicking pause component, and other gesture components.
Optionally, the listening component library includes at least one of: a full screen monitoring component, a user interface monitoring component, a player progress monitoring component and other monitoring components; the components of the earphone processing component library control playing states according to states of connected earphones, wherein the playing states at least comprise one of the following states: fast forward, fast backward, increase volume, decrease volume, mute or not, stop, play, pause; the full screen component library controls the full screen state of the video player.
In a third aspect, an embodiment of the present invention provides an implementation system of a plug-in player, including: the input module is used for developing user input operation information and actions; the display module is used for displaying the interactive information; the kernel module is used for storing a player carrier; the component library module is used for storing a component library, wherein the component library comprises preset peripheral components; the selection module is used for selecting the peripheral component and the player loader; the editing component module is used for carrying out editing operation on the determined peripheral components; and the player compiling and generating module is used for registering the selected peripheral components into the player architecture and simultaneously compiling the selected peripheral components and the selected player carrier to generate a new player.
In a fourth aspect, an embodiment of the present invention provides an operating method of a plug-in player, including: starting the plug-in player in response to a received instruction for running the player; running a video player driver of the plug-in player to drive all components; the plug-in player drives the user interface component to operate according to the player state, and plays the multimedia file; the plug-in player comprises a player carrier, a peripheral component and a preset basic player; the player carrier passes signals between peripheral components and the video player drive.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the plug-in player implementation method of any one of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the plug-in player implementation method described in any one of the first aspects.
According to the plug-in player implementation method, device and electronic equipment provided by the embodiment of the invention, the player loader required by the target player to be generated is determined; determining peripheral components required by the target player; generating a target player comprising a preset base player and the player carrier and the peripheral component. By adopting the idea of modularization, the player development process is changed into pluggable modular operation, and developers can add, delete and create any required components according to needs, so that the purposes of reducing the difficulty of player development, improving the diversity of player products, quickly developing, quickly iterating and reducing the development and maintenance cost are achieved.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a flow diagram for one embodiment of a plug-in player implementation method in accordance with the present invention;
FIG. 2 is a flow diagram of another embodiment of a plug-in player implementation method in accordance with the present invention;
FIG. 3 is a schematic architecture diagram of a plug-in player implemented according to the embodiment shown in FIG. 1 or FIG. 2;
FIG. 4 is a schematic block diagram of one embodiment of a plug-in player implementation apparatus according to the present invention;
FIG. 5 is a schematic diagram of an embodiment of a plug-in player implementation system according to the present invention;
FIG. 6 is a flow diagram of one embodiment of a method of operating a plug-in player in accordance with the present invention;
fig. 7 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding. They should be considered as merely exemplary. It will therefore be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, a flowchart of an embodiment of a plug-in player implementation method according to the present invention is shown. As shown in fig. 1, the method for implementing the plug-in player includes the following steps:
step 101, determining a player carrier.
In this embodiment, the player carrier required by the target player to be generated may be determined.
In some application scenarios, the player carrier may include a user interface carrier and a video player driver.
The player carrier may carry signals between peripheral components and the video player drive.
In this embodiment, different types of players may correspond to different player carriers. Furthermore, different types of players may correspond to the same player carrier. When different types of players correspond to different player carriers, a player carrier that matches the type of the target player to be generated may be selected from the plurality of player carriers.
The player carrier herein may be used to receive information of the peripheral component and then transfer the information of the peripheral component to a preset base player. In addition, the preset basic player can transmit the playing progress information to the player carrier, and the player carrier sends the playing progress information to the user interface component, so that the user interface component displays the playing progress in a progress bar of an interface interacted with the user. In addition, when the user adjusts the playing progress in the progress bar, for example, when the user drags the progress bar, the user interface component may send the adjustment operation of the user to the player carrier, and the player carrier sends the adjustment operation to the preset basic player, and then the preset basic player may adjust the playing progress according to the adjustment operation.
The preset basic player can be a player only containing a basic framework, and can also be a brand new player. The preset base player may be a player provided by an operating system. Developers can continue to develop based on the underlying player. The target player can be customized according to the requirements of users.
At step 102, peripheral components are determined.
In this embodiment, peripheral components required by the target player to be generated may be determined.
The determining of the peripheral components required by the target player to be generated includes various implementation manners: according to selection operation executed by a user on a component library comprising a plurality of preset peripheral components, adding the peripheral components specified by the selection operation; and/or deleting redundant peripheral components in the base player according to the selection operation of the user; and/or generating the peripheral component according to an instruction input by a user and used for generating the peripheral component.
Any peripheral component required by the target player can be added, deleted and created according to the requirement by adopting the mode. The development speed of the player can be improved, and the customized player can be quickly realized.
The peripheral component at least comprises one of the following components: the device comprises a user interface component, a gesture component, a full screen component, a monitoring component and an earphone processing component.
In some alternative implementations, the library of user interface components includes at least one of: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, a container video other component, a play start component, a play pause component, a play stop component, and other user interface components.
The gesture component library comprises at least one of the following: a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding/displaying user interface component, a double-clicking pause component, and other gesture components.
In some optional implementations, the listening component library includes at least one of: a full screen monitoring component, a user interface monitoring component, a player progress monitoring component and other monitoring components; the components of the earphone processing component library control playing states according to states of connected earphones, wherein the playing states at least comprise one of the following states: fast forward, fast backward, increase volume, decrease volume, mute or not, stop, play, pause; the full screen component library controls the full screen state of the video player.
It is to be understood that the order between the above steps 101 and 102 may be exchanged.
Step 103, generating a target player comprising the preset base player and the player carrier and the peripheral components.
The peripheral components may be registered into the framework of the predictive base player while the syndicated player carrier is compiled to generate the new player. Wherein the player carrier is used for transferring signals between components and between the components and the video player driver. In some application scenarios, the player carrier may include a user interface component carrier and a video player driver. The video player driver may drive all peripheral components to run. The user interface bearer organizes and renders displays of user interface components, coordinates communication of the gesture components with the user interface components, and coordinates communication between the user interface components and the video player driver.
The preset peripheral components may be stored in a component library. The component library at least comprises a user interface component library, a gesture component library, a full screen component library, a monitoring component library and an earphone processing component library.
The user interface component library includes at least one of: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, a container video other component, a play start component, a play pause component, a play stop component, and other user interface components.
The gesture component library comprises at least one of the following components: a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding/displaying user interface component, a double-clicking pause component, and other gesture components.
The full screen component library controls the full screen state of the video player, and comprises full screen monitoring components and other full screen components.
The monitoring component library at least comprises one of the following components: a full screen monitoring component, a user interface monitoring component, a player progress monitoring component and other monitoring components.
The components of the earphone processing component library control the playing state according to the state of the connected earphone, wherein the playing state control at least comprises one of the following states: fast forward, fast backward, increase volume, decrease volume, mute or not, stop, play, pause.
In the plug-in player implementation manner provided by this embodiment, a player carrier required by a target player to be generated is determined; determining peripheral components required by the target player; generating a target player comprising a preset base player and the player carrier and the peripheral component. By adopting the idea of modularization, the player development process is changed into pluggable modular operation, and developers can add, delete and create any required components according to needs, so that the purposes of reducing the difficulty of player development, improving the diversity of player products, quickly developing, quickly iterating and reducing the development and maintenance cost are achieved.
Referring to fig. 2, a flow chart of another embodiment of a plug-in player implementation method according to the present invention is shown. As shown in fig. 2, the method for implementing the plug-in player includes the following steps:
firstly, according to a selection instruction of a user, determining a player carrier corresponding to a target player to be generated.
Secondly, a base player of the target player to be generated is determined. The base player is the development base for the target player, providing a choice of peripheral components and/or player carriers.
In this embodiment, the determined base player may be an already-generated previous-generation player, may be a player having only a basic architecture, or may be a completely new player. The developer can continue to develop the target player based on the underlying player. The target player can be customized according to the requirements of the user.
The target player includes some functionality that the base player cannot implement. Such as new user interface controls, new gesture operation components, new listening functions, etc.
In some embodiments, the developer may omit this step, selecting the component or player carrier of the desired operation directly from the component library.
Thirdly, peripheral components required by the target player to be generated are determined.
In this embodiment, determining peripheral components required by a target player to be generated includes multiple implementation manners, and may add peripheral components specified by a selection operation according to the selection operation performed by a user on a component library including multiple preset components; and/or deleting redundant peripheral components in the base player according to the selection operation of the user; and/or editing and modifying the selected components according to selection operations executed by a user on a component library comprising a plurality of preset components or selection operations executed on existing peripheral components of the basic player and program codes input by the user for generating the peripheral components to generate the peripheral components; and/or generating the peripheral component directly from program code input by a user for generating the peripheral component. By adopting the mode, any required assembly can be added, deleted and created according to the requirement, the peripheral assembly can be quickly obtained with low difficulty, and customization is realized.
After the specific editing operation on the current component is completed, whether the currently edited component is to be placed in the player is selected, and whether a new component is generated in the specific editing operation can be determined. If yes, further judging whether the user needs to save the new component. If the new component needs to be saved, the new component is selected to be saved in a component library of different types. And making type marks for the components; if the new component is generated, the user selects not to store or the new component is not generated in the specific editing operation, the step of judging whether to continue developing the new component is directly carried out.
The new component selection may be stored in a library of different types of components, including: the new component selection is saved in the user's private component library, a shared component library that the user shares with other limited users, or a public component library that the user shares with all users. The private component library comprises a private User Interface (UI) component library, a private gesture component library, a private full screen component library, a private monitoring component library and a private earphone processing component library. The shared component library comprises a shared User Interface (UI) component library, a shared gesture component library, a shared full screen component library, a shared monitoring component library and a shared earphone processing component library. The public component library comprises a public User Interface (UI) component library, a public gesture component library, a public full screen component library, a public monitoring component library and a public earphone processing component library.
After selecting and storing the new component in the component libraries of different types, if selecting and storing the new component in the private component library, the step of judging whether to continue operating other components can be carried out; if the new component is selected to be stored in the shared component library or the public component library, a new component notification message can be sent to a user corresponding to the shared component library or the public component library, and then the step of judging whether to continue operating other components is carried out.
The component library comprises: a User Interface (UI) component library, a gesture component library, a full screen component library, a listening component library, and a headphone processing component library.
The User Interface (UI) component library includes a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, container video other components, a start playing component, a pause playing component, a stop playing component, and other User Interface (UI) components.
The gesture component library comprises a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding User Interface (UI)/displaying User Interface (UI) component, a double-click pause component and other gesture components.
The full screen component library controls the full screen state of the video player, and comprises full screen monitoring components and other full screen components.
The monitoring component library comprises a full screen monitoring component, a User Interface (UI) monitoring component, a player progress monitoring component and other monitoring components.
The playing state of the components of the earphone processing component library is controlled according to the state of the connected earphones, and the playing state is controlled according to the state of the connected earphones, wherein the playing state comprises fast forward, fast backward, volume increasing, volume reducing, mute, stopping, playing and pausing.
When the development of the plug-in player component is finished, a user can be asked to select and store an editing result for the player in the editing state; or selecting and confirming the determined components to be registered into the player framework, and simultaneously compiling to generate a new player by combining with the player kernel. The player kernel is a player carrier, including a user interface carrier and a video player driver, and the player carrier transfers signals between the components and the video player driver. The video player driver is a core driving device of the player and drives all peripheral components to run; the user interface carrier organizes display of the user interface components, coordinates communication of the gesture components with the user interface components, and coordinates communication between the user interface components and the video player driver.
Referring to fig. 3, a schematic architecture diagram of a plug-in player implemented according to the embodiment shown in fig. 1 or the embodiment shown in fig. 2 is shown.
As shown in fig. 3, the plug-in player includes: a player carrier, a peripheral plug-in and a pre-set base player (not shown in the figure). The player carrier includes a video play driver and a user interface carrier (UI carrier). The peripheral component includes: user Interface (UI) component groups, gesture component groups, headset processing component groups, full screen component groups, monitoring component groups, and the like.
The UI component group may include that the UI component may be used for an interface display.
And the gesture component group comprises gesture components. The gesture component is used for controlling the display and playing states of the interface according to the gesture actions.
And the monitoring component group comprises a monitoring component. The listening component is used for listening to special events of the player.
And the full screen component group comprises full screen components. The full screen component is used for controlling the full screen state of the video player.
A headset processing component group comprises a headset processing component. The headphone processing component is configured to control a playback state according to a state of the connected headphones.
The video player driver is a core driving device and drives all the components to operate; a User Interface (UI) bearer organizes display of the User Interface (UI) components, coordinates communication of the gesture components with the User Interface (UI) components, coordinates communication between the User Interface (UI) components and a player driver.
A User Interface (UI) component group includes: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, a container video other component, a start play component, a pause play component, a stop play component, and other User Interface (UI) components.
The gesture component group comprises: a slide fast forward component, a slide fast backward component, a slide up volume component, a slide down volume component, a click player hide User Interface (UI)/display User Interface (UI) component, a double click pause component, and other gesture components.
The monitoring component group comprises: a full screen listening component, a User Interface (UI) listening component, a player progress listening component, and other listening components.
The full screen component group comprises a full screen monitoring component and other full screen components.
The earphone processing assembly controls the playing state according to the state of the connected earphone, including fast forward, fast backward, volume increase, volume decrease, mute or not, stop, play and pause.
Referring to fig. 4, a schematic structural diagram of an embodiment of a plug-in player implementation apparatus according to the present invention is shown.
As shown in fig. 4, the plug-in player implementation apparatus of the present embodiment includes a first determination unit 401, a second determination unit 402, and a generation unit 403. The first determining unit 401 is configured to determine peripheral components required by a target player to be generated; a second determining unit 402, configured to determine peripheral components required by the target player; a generating unit 403, configured to generate a target player including a preset base player, the player carrier, and the peripheral components, where the player carrier transfers signals between the peripheral components and the video player driver.
In this embodiment, the first determining unit 401, the second determining unit 402, and the generating unit 403 of the implementation system of the plug-in player may refer to the related descriptions of step 101, step 102, and step 103 in the embodiment of fig. 1, which are not described herein again.
In some optional implementations, the second determining unit 402 is further configured to: according to selection operation executed by a user on a component library comprising a plurality of preset peripheral components, adding the peripheral components specified by the selection operation; and/or deleting redundant peripheral components in the base player according to the selection operation of the user; and/or generating the peripheral component according to an instruction input by a user and used for generating the peripheral component.
In some optional implementations, the first determining unit 401 is further configured to: when the players have multiple types, determining the player carrier matched with the target player type from multiple preset player carriers.
In some alternative implementations, the peripheral component includes at least one of: the system comprises a user interface component library, a gesture component library, a full screen component library, a monitoring component library and an earphone processing component library.
In some alternative implementations, the library of user interface components includes at least one of: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, other components of the container video, a play start component, a play pause component, a play stop component and other user interface components; the gesture component library comprises at least one of the following: a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding/displaying user interface component, a double-clicking pause component, and other gesture components.
In some optional implementations, the listening component library includes at least one of: a full screen monitoring component, a user interface monitoring component, a player progress monitoring component and other monitoring components; the components of the earphone processing component library control playing states according to states of connected earphones, wherein the playing states at least comprise one of the following states: fast forward, fast backward, increase volume, decrease volume, mute or not, stop, play, pause; the full screen component library controls the full screen state of the video player.
Referring to fig. 5, a schematic structural diagram of an embodiment of a plug-in player implementation system according to the present invention is shown.
As shown in fig. 5, the system for implementing the plug-in player includes: the device comprises an input module, a display module, a kernel module, a component library module, a selection module, an editing component module and a player compiling and generating module. The input module is used for developing user input operation information and actions; the display module is used for displaying the interactive information; the kernel module is used for storing a player kernel; the component library module is used for storing a component library, wherein the component library comprises preset peripheral components; the selection module is used for selecting the peripheral component and the player loader; the editing component module is used for carrying out editing operation on the peripheral components; and the player compiling and generating module is used for registering the selected peripheral components into the player architecture and simultaneously compiling the selected peripheral components and the selected player carrier to generate a new player.
In this embodiment, the player core may include a player carrier. The player carrier is responsible for passing signals between components and the video player drive. The player carrier may include a User Interface (UI) carrier and a video player driver.
The video player driver may drive all components to run. The User Interface (UI) bearer is responsible for controlling the display of User Interface (UI) components, coordinating communication of the gesture components with the User Interface (UI) components, and coordinating communication between the User Interface (UI) components and the player driver.
The editing component module can add peripheral components specified by selection operation according to the selection operation executed by a user on a component library comprising a plurality of preset components; and/or deleting redundant peripheral components in the base player according to the selection operation of the user; and/or generating the peripheral component directly from program code input by a user for generating the peripheral component. By adopting the mode, any required assembly can be added, deleted and created according to the requirement, the peripheral assembly can be quickly obtained with low difficulty, and customization is realized.
The editing component module can judge whether a new component is generated in the specific editing operation after the user finishes the specific editing operation on the current component. If a new component is generated and a user needs to store the new component, the new component can be stored in component libraries of different types according to the path selection operation executed by the user; if a new component is generated, the user selects not to save or not to generate the new component, and the display module can be accessed. And then judging whether to continue operating other components.
The above-mentioned storing of new components in different types of component libraries includes: and storing the new component in a private component library of the user, a shared component library shared by the user and other limited users or a public component library shared by the user and all users according to the operation of the user. The private component library comprises a private User Interface (UI) component library, a private gesture component library, a private full screen component library, a private monitoring component library and a private earphone processing component library; the shared component library comprises a shared User Interface (UI) component library, a shared gesture component library, a shared full screen component library, a shared monitoring component library and a shared earphone processing component library. The public component library comprises a public User Interface (UI) component library, a public gesture component library, a public full screen component library, a public monitoring component library and a public earphone processing component library.
In some embodiments, the plug-in player implementation system further comprises a notification module configured to: after the new component selection is stored in the component libraries of different types, judging the type of the component library stored in the new component: if the new component is stored in the private component library, the system is informed to transfer back to the display module; and if the new component is stored in the shared component library or the public component library, sending a new component notification message to a user corresponding to the shared component library or the public component library, and notifying a system to transfer back to the display module.
The component library module may include a private component library, a shared component library, and a public component library.
The private component library may include a private UI component library, a private gesture component library, a private full screen component library, a private listening component library, a private headphone processing component library.
The shared component library may include: the system comprises a shared UI component library, a shared gesture component library, a shared full screen component library, a shared monitoring component library and a shared earphone processing component library.
The common component library may include: the system comprises a public UI component library, a public gesture component library, a public full screen component library, a public monitoring component library and a public earphone processing component library.
Referring to fig. 6, a flow chart of one embodiment of a method for operating a plug-in player according to the present invention is shown.
As shown in fig. 6, the method for operating the plug-in player includes the following steps
Step 601, responding to the received instruction for operating the player, and starting the plug-in player.
The plug-in player comprises a player carrier, a peripheral component and a preset basic player; the player carrier passes signals between peripheral components and the video player drive.
And after the plug-in player is started, executing initialization operation. An initialization operation to initialize the plug-in player, including initializing a User Interface (UI) component of a User Interface (UI) component group, the User Interface (UI) component configured for interface display; initializing a gesture component of a gesture component group, wherein the gesture component is configured to control the display and play state of an interface according to a gesture action; initializing a monitoring component of a monitoring component group, wherein the monitoring component is configured to monitor a special event of a player; initializing a full screen component of a full screen component group, wherein the full screen component is configured to control a full screen state of a video player; initializing a headphone processing component of a headphone processing component group, the headphone processing component configured to control a play state according to a state of a connected headphone; and initializing a player carrier, the player carrier including a User Interface (UI) carrier and a video player driver, the player carrier being responsible for passing signals between components and the video player driver.
In step 602, a video player driver of a plug-in player is run to drive all components.
The video player driver is a core driving device and drives all the components to operate; the User Interface (UI) carrier organizes display of the User Interface (UI) components, coordinates communication of the gesture components with the User Interface (UI) components, coordinates communication between User Interface (UI) components and a player driver.
And step 603, the plug-in player drives the user interface component to operate according to the player state, and plays the multimedia file.
The operation method of the plug-in player further comprises the following steps: in the playing process, if the plug-in player monitors a special event or the state of the player needs to be changed, the plug-in player operation component changes the playing state of the plug-in player.
Referring to fig. 7, a schematic diagram of a basic structure of an electronic device according to an embodiment of the invention is shown.
As shown in fig. 7, an electronic device may include one or more processors 701, a storage 702. The storage 702 stores one or more programs. One or more programs in storage 702 may be executed by the one or more processors 701. The one or more programs, when executed by the one or more processors, enable the one or more processors to implement the above-described functions defined in the method of the present invention.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a first determination unit, a second determination unit, and a generation unit. Where the names of these modules do not in some cases constitute a limitation of the module itself, for example, the first determination unit may also be described as "a unit that determines peripheral components required for a target player to be generated".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: determining a player carrier required by a target player to be generated; determining peripheral components required by a target player; generating a target player comprising a predetermined base player and a player carrier and peripheral components, wherein the player carrier passes signals between the peripheral components and a video player driver.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A plug-in player implementation method, the method comprising:
determining a player carrier required by a target player to be generated;
determining peripheral components required by the target player;
generating a target player comprising a preset base player and the player carrier and the peripheral components, wherein the player carrier transmits signals between the peripheral components and the video player driver.
2. The method of claim 1, wherein the determining peripheral components required for the target player to be generated comprises:
according to selection operation executed by a user on a component library comprising a plurality of preset peripheral components, adding the peripheral components specified by the selection operation; and/or
Deleting redundant peripheral components in the basic player according to selection operation of a user; and/or
And generating the peripheral component according to an instruction which is input by a user and used for generating the peripheral component.
3. The method of claim 1 or 2, wherein prior to the generating a target player comprising a preset base player and the player carrier and the peripheral component, the method further comprises:
when the players have multiple types, determining the player carrier matched with the target player type from multiple preset player carriers.
4. The method of claim 3, wherein the peripheral component comprises at least one of:
the system comprises a user interface component library, a gesture component library, a full screen component library, a monitoring component library and an earphone processing component library.
5. The method of claim 4, wherein:
the user interface component library includes at least one of: a mask component, a main container component, a container top component, a container middle component, a container bottom component, a container video progress component, other components of the container video, a play start component, a play pause component, a play stop component and other user interface components;
the gesture component library comprises at least one of the following: a sliding fast forward component, a sliding fast backward component, a sliding volume up component, a sliding volume down component, a clicking player hiding/displaying user interface component, a double-clicking pause component, and other gesture components.
6. The method of claim 4,
the monitoring component library at least comprises one of the following components: a full screen monitoring component, a user interface monitoring component, a player progress monitoring component and other monitoring components;
the components of the earphone processing component library control playing states according to states of connected earphones, wherein the playing states at least comprise one of the following states: fast forward, fast backward, increase volume, decrease volume, mute or not, stop, play, pause;
the full screen component library controls the full screen state of the video player.
7. A plug-in player implementation apparatus, comprising:
the first determining unit is used for determining peripheral components required by a target player to be generated;
a second determination unit, configured to determine peripheral components required by the target player;
a generating unit, configured to generate a target player including a preset base player, the player carrier, and the peripheral component, where the player carrier transfers signals between the peripheral components and the video player driver.
8. An implementation system of a plug-in player, comprising:
the input module is used for developing user input operation information and actions;
the display module is used for displaying the interactive information;
the kernel module is used for storing a player carrier;
the component library module is used for storing a component library, wherein the component library comprises preset peripheral components;
the selection module is used for selecting the peripheral component and the player loader;
the editing component module is used for carrying out editing operation on the determined peripheral components;
and the player compiling and generating module is used for registering the selected peripheral components into the player architecture and simultaneously compiling the selected peripheral components and the selected player carrier to generate a new player.
9. A method of operating a plug-in player, the method comprising:
starting the plug-in player in response to a received instruction for running the player;
running a video player driver of the plug-in player to drive all components;
the plug-in player drives the user interface component to operate according to the player state, and plays the multimedia file; wherein
The plug-in player comprises a player carrier, a peripheral component and a preset basic player; the player carrier passes signals between peripheral components and the video player drive.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
11. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201910473114.0A 2019-05-31 2019-05-31 Plug-in player implementation method and device and electronic equipment Pending CN112015407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910473114.0A CN112015407A (en) 2019-05-31 2019-05-31 Plug-in player implementation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910473114.0A CN112015407A (en) 2019-05-31 2019-05-31 Plug-in player implementation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112015407A true CN112015407A (en) 2020-12-01

Family

ID=73506725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910473114.0A Pending CN112015407A (en) 2019-05-31 2019-05-31 Plug-in player implementation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112015407A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364415A (en) * 2003-07-07 2009-02-11 巨视股份有限公司 Reprogrammable security for controlling piracy and enabling interactive content
CN102075337A (en) * 2009-11-20 2011-05-25 腾讯科技(深圳)有限公司 Instant communication message display method and related device
CN105100916A (en) * 2015-07-09 2015-11-25 北京奇虎科技有限公司 Method and device for creating video player
CN105453179A (en) * 2013-07-09 2016-03-30 搜诺思公司 Systems and methods to provide play/pause content
CN107665136A (en) * 2016-07-28 2018-02-06 湖南移商动力网络技术有限公司 A kind of ios platform Online Music player APP designs and realization
AU2017208216A1 (en) * 2016-07-28 2018-02-15 Accenture Global Solutions Limited Video-integrated user interfaces
CN109634549A (en) * 2018-10-23 2019-04-16 中国平安人寿保险股份有限公司 Audio frequency playing method, audio player, computer installation and readable storage medium storing program for executing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364415A (en) * 2003-07-07 2009-02-11 巨视股份有限公司 Reprogrammable security for controlling piracy and enabling interactive content
CN102075337A (en) * 2009-11-20 2011-05-25 腾讯科技(深圳)有限公司 Instant communication message display method and related device
CN105453179A (en) * 2013-07-09 2016-03-30 搜诺思公司 Systems and methods to provide play/pause content
CN105100916A (en) * 2015-07-09 2015-11-25 北京奇虎科技有限公司 Method and device for creating video player
CN107665136A (en) * 2016-07-28 2018-02-06 湖南移商动力网络技术有限公司 A kind of ios platform Online Music player APP designs and realization
AU2017208216A1 (en) * 2016-07-28 2018-02-15 Accenture Global Solutions Limited Video-integrated user interfaces
CN109634549A (en) * 2018-10-23 2019-04-16 中国平安人寿保险股份有限公司 Audio frequency playing method, audio player, computer installation and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
JP7387891B2 (en) Video file generation method, device, terminal, and storage medium
KR102204606B1 (en) Sound to haptic effect conversion system using multiple actuators
EP2612439B1 (en) Dynamic adjustment of master and individual volume controls
WO2009038264A1 (en) Method for inputting user command using user's motion and multimedia apparatus thereof
US10468004B2 (en) Information processing method, terminal device and computer storage medium
CN104520924A (en) Encoding and rendering of object based audio indicative of game audio content
WO2019068959A1 (en) Grouping and transport of audio objects
KR20120139897A (en) Method and apparatus for playing multimedia contents
WO2012140525A1 (en) Translating user interface sounds into 3d audio space
US20230079893A1 (en) Multi-Viewpoint Multi-User Audio User Experience
KR20160040770A (en) Method and apparatus for searching contents
KR20150117797A (en) Method and Apparatus for Providing 3D Stereophonic Sound
KR20180122451A (en) Interactive audio metadata handling
EP1818934A1 (en) Apparatus for playing back audio files and method of navigating through audio files using the apparatus
CN104469513A (en) Display method and electronic device
JP6478162B2 (en) Mobile terminal device and content distribution system
KR20170030487A (en) Electronic device and method for providing contents thereof
CN112015407A (en) Plug-in player implementation method and device and electronic equipment
EP4339759A1 (en) Music playing method and device
JP2004178558A (en) Computer system and its control method
JP6051075B2 (en) A communication karaoke system that can continue duet singing in the event of a communication failure
US20150373472A1 (en) Data processing device and data processing program
JP2018194683A (en) Audio device and program
KR20190081163A (en) Method for selective providing advertisement using stereoscopic content authoring tool and application thereof
CN113347459B (en) Android system-based autonomous audio source switching method and device and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination