CN111045674A - Interactive method and device of player - Google Patents

Interactive method and device of player Download PDF

Info

Publication number
CN111045674A
CN111045674A CN201911296488.6A CN201911296488A CN111045674A CN 111045674 A CN111045674 A CN 111045674A CN 201911296488 A CN201911296488 A CN 201911296488A CN 111045674 A CN111045674 A CN 111045674A
Authority
CN
China
Prior art keywords
interface control
player
interface
script
instance
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.)
Granted
Application number
CN201911296488.6A
Other languages
Chinese (zh)
Other versions
CN111045674B (en
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 IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and 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 IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN201911296488.6A priority Critical patent/CN111045674B/en
Publication of CN111045674A publication Critical patent/CN111045674A/en
Application granted granted Critical
Publication of CN111045674B publication Critical patent/CN111045674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an interaction method and device of a player, wherein the method comprises the following steps: loading a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server; and in the process of playing multimedia contents by the player, analyzing the layout file by executing the dynamic interface control script, generating an interface control in a preset player interface, acquiring an interaction event of a user acting on the interface control in the player interface, responding to the interaction event, and displaying the interaction contents in the player interface. According to the player interaction method, the interface control is generated through the dynamic interface control script and the layout file. And the server issues the dynamic interface control script and the layout file, so that the updating of the interface control can be completed, the interaction event of the user is responded, and the flexibility of the interface control is improved.

Description

Interactive method and device of player
Technical Field
The present invention relates to the technical field of multimedia playing, and in particular, to an interactive method and an interactive apparatus for a player.
Background
In the prior art, in the process of playing multimedia by a player, a user may execute a preset action in the player to perform multimedia playing control on the player. For example, the user may double click on the center of the screen during playback to pause the multimedia playback. The user can also double click the left side of the screen during the playing process to back the multimedia for 10 seconds. The user can also slide the multimedia during the playing process to enable the player to play the next multimedia.
However, the operations that a user can perform in a player are typically client-side preset. When the operation which can be executed by the user needs to be updated, the client needs to be updated correspondingly, and the flexibility is low. Moreover, the operation performed by the current user in the player generally only includes the control of the player multimedia playing by the user, resulting in fewer functions that can be operated by the user.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide an interactive method of a player and an interactive apparatus of a player, which overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses an interactive method for a player, including:
loading a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server;
in the process that the player plays multimedia contents, analyzing the layout file by executing the dynamic interface control script, and generating an interface control in a preset player interface;
and acquiring an interactive event of the interface control acted on the player interface by a user, responding to the interactive event, and displaying interactive content in the player interface.
Optionally, the step of analyzing the layout file by executing the dynamic interface control script and generating an interface control on a preset player interface includes:
analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
and loading the interface control example, and displaying the interface control corresponding to the interface control example on a preset player interface.
Optionally, a host program of the player is provided with a virtual machine program;
the step of analyzing the layout file and generating the interface control on a preset player interface by executing the dynamic interface control script comprises the following steps:
executing the dynamic interface control script by adopting the virtual machine program, analyzing the layout file, and generating an interface view instance and an event node instance;
binding the event node instance to the interface view instance by adopting the virtual machine program, and generating an interface control instance adapted to the virtual machine environment;
and adopting a preset environment conversion object to convert the interface control instance adapted to the virtual machine environment into the interface control instance adapted to the host environment.
And loading the interface control instance by adopting the host program, and displaying the interface control corresponding to the interface control instance on a preset player interface.
Optionally, the step of presenting interactive content in the player interface in response to the interactive event includes:
responding to the interaction event by executing the dynamic interface control script;
determining script fragments corresponding to the interaction events in the dynamic interface control scripts;
and displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the multimedia content newly played by the player.
The embodiment of the invention also discloses an interactive device of the player, which comprises:
the loading module is used for loading the dynamic interface control script and the layout file of the interface control; the dynamic interface control script and the layout file are issued by a preset server;
the generating module is used for analyzing the layout file by executing the dynamic interface control script in the process of playing the multimedia content by the player and generating an interface control on a preset player interface;
and the interaction module is used for acquiring an interaction event of a user acting on the interface control in the player interface, responding to the interaction event and displaying interaction content in the player interface.
Optionally, the generating module includes:
the first instance generation submodule is used for analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
and the control generation sub-module is used for loading the interface control example and displaying the interface control corresponding to the interface control example on a preset player interface.
Optionally, a host program of the player is provided with a virtual machine program;
the generation module comprises:
the second instance generation submodule is used for executing the dynamic interface control script by adopting the virtual machine program, analyzing the layout file and generating an interface view instance and an event node instance;
a third instance generation submodule, configured to bind the event node instance to the interface view instance by using the virtual machine program, and generate an interface control instance adapted to a virtual machine environment;
the conversion sub-module is used for converting the interface control instance adapted to the virtual machine environment into the interface control instance adapted to the host environment by adopting a preset environment conversion object;
and the display sub-module is used for loading the interface control instance by adopting the host program and displaying the interface control corresponding to the interface control instance on a preset player interface.
Optionally, the interaction module includes:
the response submodule is used for responding to the interaction event by executing the dynamic interface control script;
the determining submodule is used for determining a script segment corresponding to the interaction event in the dynamic interface control script;
and the execution submodule is used for displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the newly played multimedia content of the player. .
The embodiment of the invention also discloses a device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more methods as described in embodiments of the invention.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more methods as described in embodiments of the invention.
The embodiment of the invention has the following advantages:
according to the player interaction method, the layout file is analyzed by executing the dynamic interface control script, and the interface control is generated on the preset player interface. Therefore, the interface control can be generated through the dynamic interface control script and the layout file without updating the player. And the server issues the dynamic interface control script and the layout file, so that the updating of the interface control can be completed, and the flexibility of the interface control is improved. Meanwhile, the interaction event of the user acting on the player interface can be acquired through the interface control, the interaction content is correspondingly displayed, the interaction between the interface control and the user is realized, and more operable functions are provided for the user.
Drawings
FIG. 1 is a flow chart of the steps of an interactive method embodiment of a player of the present invention;
FIG. 2 is a flow chart of the steps of another player interaction method embodiment of the present invention;
FIG. 3 is a schematic diagram of an example interface control of the present invention;
FIG. 4 is a block diagram of a player according to the present invention;
FIG. 5 is a block diagram of an embodiment of an interactive apparatus of a player according to the present invention;
fig. 6 is a schematic diagram of an electronic device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flow chart of steps of an interactive method embodiment of a player of the present invention is shown. In order to implement dynamically generating an interface of a player, an embodiment of the present invention provides an interaction method of a player, which specifically includes the following steps:
step 101, loading a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server;
in an embodiment of the present invention, the player may be used to play multimedia content. The multimedia content may include video, audio, pictures, etc. The player may be disposed in an electronic device, and the electronic device may be a desktop computer, a notebook computer, a tablet computer, a mobile phone, a television, and the like, which is not limited in this respect.
In the embodiment of the present invention, the dynamic interface control script may be used to generate an interface control. The layout file can be used for describing the layout mode of the interface control on the player interface and the response mode of the event.
In this embodiment of the present invention, the dynamic interface control script and the layout file may be applicable to all multimedia contents, or may be specific to at least one specific multimedia content, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, a server may be preset, and the server may perform data transmission with the player through a network, so that the server may issue the dynamic interface control script and the layout file to the player.
In the embodiment of the present invention, the server may actively issue the dynamic interface control script and the layout file to the player. The server can also respond to an interface control updating request sent by a player and issue the dynamic interface control script and the layout file to the player.
As an example of the present invention, after the dynamic interface control script and the layout file stored in the server are updated, the server may issue the updated dynamic interface control script and the updated layout file to the player.
As an example of the present invention, the server may obtain a multi-media content loading request of the player, and issue the dynamic interface control script and the layout file to the player in a process of returning multimedia content to the player.
As an example of the present invention, when the player is started or when a multimedia content is ready to be loaded in response to a multimedia playing operation of a user, the player may send an interface control update request to the server, and obtain the dynamic interface control script and the layout file returned by the server.
In the embodiment of the present invention, after obtaining the dynamic interface control script and the layout file, the player may load the dynamic interface control script and the layout file, so that the player may dynamically load the interface control by executing the dynamic interface control script.
And 102, analyzing the layout file by executing the dynamic interface control script in the process of playing the multimedia content by the player, and generating an interface control in a preset player interface.
In the embodiment of the present invention, in the process of playing multimedia content by the player, the player may analyze the layout file by executing the dynamic interface control script, so as to generate an interface control on a preset player interface. So that the player can dynamically load the interface control without being limited by the version update of the player. When the interface control of the player is expected to change, a server can issue a new dynamic interface control script and a layout file, and then the update of the interface control of the player can be completed.
In the embodiment of the present invention, at least one time point may be preset in the dynamic interface control script. The player may execute the dynamic interface control script and parse the layout file. In the process of playing multimedia content by the player, an interface control can be generated in the preset player interface when the time point specified by the dynamic interface control script is reached. Further, if the player continues to play the multimedia content and another time point specified by the dynamic interface control script is reached, a new interface control can be generated on the preset player interface. Therefore, in the process that the player continues to play the multimedia content, the player can also dynamically update the interface control, and dynamic interface display and richer operation functions are provided for the user.
As an optional implementation manner of the present invention, the dynamic interface display may include: displaying a movable interface control on a player interface; displaying an interface control operable by a user on a player interface; displaying interface controls with corresponding styles on a player interface according to the types of the multimedia contents; according to the requirements of current affair hotspots, content promotion and the like, the interface displays the interface control and the like of corresponding content during playing, and the method is not limited to the method.
As an example of the present invention, the player may load a dynamic interface control script and a layout file of an interface control, and when the player plays a natural-type documentary, the dynamic interface control script is executed to analyze the layout file, so as to generate a natural-style play control on a preset player interface for a user to operate.
As an example of the present invention, the player may load a dynamic interface control script and a layout file of an interface control, analyze the layout file by executing the dynamic interface control script in a process that the player plays a criminal investigation type tv series, analyze the layout file by executing the dynamic interface control script when the tv series plays content related to a professional term, and generate the interface control on a preset player interface. The interface control can display text and/or animation on the player interface to explain the professional terms.
As an example of the present invention, the player may load a dynamic interface control script and a layout file of an interface control, and in the process of playing a live webcast, the player may execute the dynamic interface control script, analyze the layout file, and generate the interface control on a player interface to display a dynamic pattern, such as a dancing heart-shaped pattern, a dynamic filter, or the like, or display a dynamic text.
As an example of the present invention, the player may load a dynamic interface control script and a layout file of an interface control, and in the process of playing multimedia content by the player, the player may execute the dynamic interface control script to analyze the layout file, and generate the interface control on the player interface to display current hotspot information, advertisement information, or other multimedia content recommendation information similar to the currently played multimedia content.
As an example of the present invention, the player may load a dynamic interface control script and a layout file of an interface control, determine, by executing the dynamic interface control script, a next multimedia content played by the player based on user attribute information corresponding to the player, a region where a user is located, a current network environment, and other information, analyze the layout file, and generate an interface control at a player interface, where the interface control is used to display profile information of the next multimedia content to be played by the player.
Step 103, acquiring an interaction event of the user acting on the interface control in the player interface, responding to the interaction event, and displaying the interaction content in the player interface.
In the embodiment of the present invention, the interface control may respond to an operation of a user, and the user may input an operation for the interface control through an input device connected to the electronic device, such as a keyboard, a mouse, a touch screen, a microphone, and the like. So that the player can obtain the interaction event of the user acting on the interface control in the player interface.
In the embodiment of the present invention, the operation on the interface control may be clicking, sliding, long-pressing, inputting a text, inputting a voice, and the like, which is not limited in this respect.
In the embodiment of the invention, the player can respond to the interaction event, the interactive content is displayed on the player interface, the content displayed by the player can be correspondingly changed along with the operation of the user, and more control functions are provided for the user.
In an embodiment of the present invention, the interactive content may include content visible by a user in an interface of a player. For example, interface controls in the player interface, multimedia content played by the player, etc.
As an example of the present invention, the interface control may be a voting interface, and the player may display a voting result interface to inform the user of a voting result in response to a voting option applied to the voting interface by the user.
As an example of the present invention, the interface control may be a heart-shaped icon, and the player may display a dynamic bubble pattern flying in the player interface in response to a click operation performed on the heart-shaped icon by a user to provide feedback of the click operation.
As an example of the present invention, the player interface may present a multimedia content recommendation related to the currently playing multimedia content through an interface control. The player may determine the interactive multimedia content selected by the user in response to an operation performed by the user on the multimedia content recommendation, and determine the interactive multimedia content as a new played multimedia content of the player in the player interface, thereby implementing selection of a next played multimedia content according to the user operation.
According to the player interaction method, the layout file is analyzed by executing the dynamic interface control script, and the interface control is generated on the preset player interface. Therefore, the interface control can be generated through the dynamic interface control script and the layout file without updating the player. And the server issues the dynamic interface control script and the layout file, so that the updating of the interface control can be completed, and the flexibility of the interface control is improved. Meanwhile, the interaction event of the user acting on the player interface can be acquired through the interface control, the interaction content is correspondingly displayed, the interaction between the interface control and the user is realized, and more operable functions are provided for the user.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of an interaction method of a player according to the present invention is shown, which may specifically include the following steps:
step 201, loading a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server;
in an embodiment of the present invention, the player may be used to play multimedia content. The multimedia content may include video, audio, pictures, etc. The player may be disposed in an electronic device, and the electronic device may be a desktop computer, a notebook computer, a tablet computer, a mobile phone, a television, and the like, which is not limited in this respect.
In the embodiment of the present invention, the dynamic interface control script may be used to generate an interface control. The layout file can be used for describing the layout mode of the interface control on the player interface and the response mode of the event.
In this embodiment of the present invention, the dynamic interface control script and the layout file may be applicable to all multimedia contents, or may be specific to at least one specific multimedia content, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, a server may be preset, and the server may perform data transmission with the player through a network, so that the server may issue the dynamic interface control script and the layout file to the player.
In the embodiment of the present invention, the server may actively issue the dynamic interface control script and the layout file to the player. The server can also respond to an interface control updating request sent by a player and issue the dynamic interface control script and the layout file to the player.
In the embodiment of the present invention, after obtaining the dynamic interface control script and the layout file, the player may load the dynamic interface control script and the layout file, so that the player may dynamically load the interface control by executing the dynamic interface control script.
Step 202, analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
in the embodiment of the present invention, the interface control instance may be information for generating an interface control in a player interface. Specifically, the interface control instance may be Document Object Model (DOM) tree structure information.
In an embodiment of the present invention, the layout file may include configuration information of the interface control. The interface control may be a combination of graphical and/or textual elements. The configuration information may include layout position information of the interface control, information of a graphic element and/or a text element included in the interface control, layout position information of the graphic element and/or the text element, event node information corresponding to the interface control, and the like, which is not limited in this invention.
In the embodiment of the present invention, the player may analyze the layout file by executing the dynamic interface control script, obtain configuration information of the interface control in the layout file, and generate an interface control instance that can be understood by a graphic rendering engine.
And 203, loading the interface control instance, and displaying the interface control corresponding to the interface control instance on a preset player interface.
In the embodiment of the present invention, the player may load the interface control instance by executing the dynamic interface control script, and generate the interface control corresponding to the interface control instance in the player interface. Therefore, the interface control can be dynamically displayed through the dynamic interface control script and the layout file.
In an embodiment of the present invention, a virtual machine program is set in a host program of the player;
in this embodiment of the present invention, the host program may be an application program of the player itself. In the host program, a virtual machine program may be provided, so that programs belonging to different language environments may be run in the host program by embedding the virtual machine program.
In the embodiment of the present invention, the language environment of the host program may be a host environment, and the language environment of the virtual machine program may be a virtual machine environment. The host environment and the virtual machine environment are different language environments. As an example of the present invention, the virtual environment may be a lua language environment and the native environment may be an objective c language environment. The virtual environment and the native environment may also be other language environments. For example, the virtual environment may also be a Java language environment, a C # language environment, a C + + language environment, a Python language environment, a PHP language environment, a Ruby language environment, a Swift language environment, a Haskell language environment, and the like. The native environment may also be an ava language environment, a C # language environment, a C + + language environment, a Python language environment, a PHP language environment, a Ruby language environment, a Swift language environment, a Haskell language environment, and the like. The invention is not limited in this regard.
Preferably, when the virtual environment is a lua language environment, the virtual machine is a lua virtual machine, and the dynamic interface control script may be a lua script. Because the lua virtual machine has the characteristics of small size and high efficiency, the lua virtual machine can quickly complete the execution of the lua script under the condition of occupying smaller hardware resources. Therefore, the dynamic generation of the interface control can be realized under the condition of not obviously increasing the hardware resources occupied by the player, and the generation speed is high.
The step of analyzing the layout file and generating the interface control on a preset player interface by executing the dynamic interface control script comprises the following steps:
s11, executing the dynamic interface control script by the virtual machine program, analyzing the layout file, and generating an interface view instance and an event node instance;
in this embodiment of the present invention, the interface view instance may be information describing a layout position of the interface control in the player interface. The event node instance may be information describing an event to which the interface control may respond.
In the embodiment of the present invention, the dynamic interface control script and the layout file may be run in the virtual machine program. Therefore, the player can execute the dynamic interface control script by adopting the virtual machine program, analyze the layout file and generate an interface view instance and an event node instance.
In a specific implementation, the player may create an interface control object tree during the process of parsing the layout file by using the dynamic interface control script, and add a layout node corresponding to each interface control to a root directory of the interface control object tree. The layout node may be configured to set information indicating coordinates of the interface control on a player interface, a size of the interface control, a graphic element and/or a text element used by the interface control, and the like. Thus, an interface control object tree comprising at least one layout node of the interface control can be obtained, and the interface control object tree can be the interface view instance.
In the embodiment of the present invention, the event node instance may include a user operation event node and a data backhaul event node. The user operation event node may be configured to obtain an operation performed by a user on the interface control, and return data to the virtual machine program. The data backhaul node may be configured to obtain data in the host program and return the data to the virtual machine program.
S12, binding the event node instance to the interface view instance by adopting the virtual machine program, and generating an interface control instance adapted to the virtual machine environment;
in the embodiment of the present invention, the interface control corresponding to the event node instance may be determined by using the virtual machine program, and the event node is bound to the layout node of the corresponding interface control, so that the event node instance is bound to the interface view instance, and an interface control instance adapted to the virtual machine environment is generated.
As an example of the present invention, FIG. 3 is a diagram illustrating an example of an interface control according to the present invention. The interface control instance comprises a root directory, and the root directory can comprise a layout node 1, a layout node 2 and a layout node 3. Each layout node may correspond to an interface control. The layout node 1 may further include a layout sub-node 1, a layout sub-node 2, and a layout sub-node 3. The layout sub-node may be configured to indicate position information and size information of a graphic element and/or a text element included in the interface control. The layout sub-node 1 may include an event node 1, an event node 2, and an event node 3. The event node may be an event bound to a graphic element or a text element in the interface control. So that the graphical or textual element can be used to return data to the virtual machine program.
S13, converting the interface control instance adapted to the virtual machine environment into an interface control instance adapted to the host environment by adopting a preset environment conversion object;
in the embodiment of the present invention, an environment conversion object may be set. The environment conversion object may be used to provide an interactive interface between the host environment and the virtual machine environment, and may be used for language conversion between the host environment and the virtual machine environment.
In the embodiment of the present invention, the player may perform language conversion on the interface control instance by using a preset environment conversion object, and send the interface control instance from the virtual machine program to the host program, so as to convert the interface control instance adapted to the virtual machine environment into the interface control instance adapted to the host environment.
In a particular implementation, the virtual machine program may traverse the interface control instance adapted to the virtual machine environment. The interface control instance adapted to the virtual machine environment may include a layout node and an event node. If the layout node is traversed, the information in the layout node can be adopted, and the information of the layout node can be sent to the host program after being converted by the environment conversion object, so that the host program can obtain the converted information of the layout node. The host program may preset an interface control instance adapted to the host environment, and the host program may load the converted layout node information into the interface control instance adapted to the host environment. If the event node is traversed, the information of the event node can be transmitted to the host program after being converted by the environment conversion object, so that the host program can acquire the converted event node information. The host program may load the converted event node information into an interface control instance of the adapted host environment to bind an event that transmits data back to the virtual machine program. The virtual machine program can set a corresponding return response node in the dynamic interface control script, and trigger an event corresponding to the return response node when the host program returns corresponding data.
In a specific implementation, further, the interface control may adopt a Flexbox layout, and a main idea of the Flexbox layout is that elements may change in size to adapt to an available space, and when the available space becomes larger, the Flex elements will expand in size to fill the available space, and when the Flex elements exceed the available space, the Flex elements will automatically shrink. When the interface control is in a Flexbox layout, the interface control may have a parent layout node and several child layout nodes in the interface control instance of the virtual machine environment. The parent layout node may specify the location and size of the interface control in the player interface. The position and size may vary depending on the size of the player interface. The child layout node can correspondingly determine the position and the size of the graphic element and/or the text element in the player interface according to the position and the size of the interface control specified by the parent layout node in the player interface.
In the process of traversing the interface control instance adapted to the virtual machine environment, if the layout node is traversed by the Flexbox layout, the information of the layout node can be converted by the environment conversion object and then sent to the host program, so that the host program can obtain the converted layout node information. The host program may preset an interface control instance adapted to the host environment, and the host program may load the converted layout node information into the interface control instance adapted to the host environment. Thereafter, the host program may execute a parent layout node and a child layout node of the layout nodes, determine a position and a size of the interface control based on the size of the player interface, and further determine a position and a size of a graphic element and/or a text element of the interface control in the player interface. And then, binding the information of the position and the size of the graphic element and/or the text element in the interface control in the player interface to the interface control instance adapted to the host environment, so that the interface control instance can be loaded with the information of the position and the size of the interface control.
And S14, loading the interface control instance by using the host program, and displaying the interface control corresponding to the interface control instance on a preset player interface.
In the embodiment of the present invention, the player may adopt a preset graphics rendering engine to render the interface control instance, and display the interface control corresponding to the interface control instance on the interface of the player. So that the player can dynamically load the interface control without being limited by the version update of the player.
Step 204, acquiring an interaction event of the user acting on the interface control in the player interface, responding to the interaction event, and displaying the interaction content in the player interface.
In the embodiment of the present invention, the interface control may respond to an operation of a user, and the user may input an operation for the interface control through an input device connected to the electronic device, such as a keyboard, a mouse, a touch screen, a microphone, and the like. So that the player can obtain the interaction event of the user acting on the interface control in the player interface.
In the embodiment of the present invention, the operation on the interface control may be clicking, sliding, long-pressing, inputting a text, inputting a voice, and the like, which is not limited in this respect.
In the embodiment of the invention, the player can respond to the interaction event, the interactive content is displayed on the player interface, the content displayed by the player can be correspondingly changed along with the operation of the user, and more control functions are provided for the user.
In an embodiment of the present invention, the interactive content may include content visible by a user in an interface of a player. For example, interface controls in the player interface, multimedia content played by the player, etc.
In an embodiment of the present invention, the presenting interactive contents in the player interface in response to the interactive event includes:
s21, responding the interaction event by executing the dynamic interface control script;
in the embodiment of the present invention, after acquiring the interaction event, the player may respond to the interaction event by executing the dynamic interface control script. Specifically, after the host program of the player obtains the interaction event, the host program may trigger an event node corresponding to the interaction event, and return data to the virtual machine program to respond to the interaction event.
S22, determining script fragments corresponding to the interaction events in the dynamic interface control scripts;
in the embodiment of the present invention, after acquiring the returned data, the virtual machine program may search, in the dynamic interface control script, a returned response node corresponding to the returned data based on the returned data. The backhaul response node may have a corresponding script segment in the dynamic interface control script, so that the script segment corresponding to the interaction event may be determined.
S23, displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the multimedia content newly played by the player.
In the embodiment of the present invention, the interactive content may include interactive interface content and interactive multimedia content. The interactive interface content may be an interface control corresponding to the interactive event. The interactive multimedia content may be multimedia content that can be played by the player.
In the embodiment of the present invention, the interactive interface content in the interactive content may be displayed in the player interface by executing the script segment corresponding to the feedback response node in the dynamic interface control script, and/or the interactive multimedia content in the interactive content is determined as the multimedia content newly played by the player.
In a specific implementation, the player may respond to the interaction event, determine a script segment corresponding to the interaction event in the dynamic interface control script, and execute the script segment, so as to display the interface control corresponding to the interaction event in the player interface, so as to implement dynamic change of the interface control.
As a specific example of the present invention, the interface control may be a voting interface, and the player may display a voting result interface by executing the dynamic interface control script in response to a voting option acted on the voting interface by the user, so as to inform the user of a voting result.
As a specific example of the present invention, the interface control may be a heart-shaped icon, and the player may respond to a click operation performed by a user on the heart-shaped icon, and display a dynamic bubble pattern dancing in the player interface by executing a script segment corresponding to the click operation in the dynamic interface control script, so as to provide feedback of the click operation.
As a specific example of the present invention, the player interface may display an interactive game through an interface control, and a user may dynamically change the interface control in the interactive game by clicking the interface control serving as a control button in the interactive game and executing a script segment corresponding to a user operation in the dynamic interface control script, so as to implement a game function. For example, the operation mode of the interface control as the control role is changed, so as to change the walking mode of the control role. As another example, an interface control that is a game view is changed to expose a dynamic game view.
In a specific implementation, the player may respond to the interaction event, determine a script segment corresponding to the interaction event in the dynamic interface control script, and execute the script segment, so that the interactive multimedia content is determined as the newly played multimedia content of the player in the player interface, thereby implementing changing the currently played content of the player through the interface control.
As a specific example of the present invention, the player interface may show a multimedia content recommendation related to a currently playing multimedia content through an interface control. The player can respond to the operation acted on the multimedia content recommendation by the user by executing the script segment corresponding to the user operation in the dynamic interface control script, and determine the interactive multimedia content selected by the user, and in the player interface, the interactive multimedia content is determined as the newly played multimedia content of the player, so that the next played multimedia content can be selected according to the user operation.
As a specific example of the present invention, the player interface may show summary information of current breaking hot news through an interface control. The player can respond to the operation of the user on the abstract information by executing the script segment corresponding to the user operation in the dynamic interface control script, the sudden hot news is used as the interactive multimedia content selected by the user, and the interactive multimedia content is determined as the newly played multimedia content of the player in the player interface, so that the sudden hot news can be displayed according to the user operation.
In a specific implementation, the player may respond to the interaction event, determine a script segment corresponding to the interaction event in the dynamic interface control script, and execute the script segment, so as to display the interaction interface content in the player interface, and determine the interaction multimedia content as a multimedia content newly played by the player.
As a specific example of the present invention, the player interface may display a selection interface through the interface control, where the selection interface may be related to the multimedia content currently played by the player. For example, the currently played multimedia content is that the lead actor is pursuing the role a, and the road has the switch a and the switch B, the selection interface may be used to provide the user with the switch a option and the switch B option. The player can respond to the operation of the user on the selection interface by executing the script segment corresponding to the user operation in the dynamic interface control script, determine the option selected by the user, take the multimedia content corresponding to the option selected by the user as the interactive multimedia content, and determine the interactive multimedia content as the newly played multimedia content of the player in the player interface. Meanwhile, the player can also display a selection result interface by executing the dynamic interface control script so as to inform a user of a selection result. For example, if the user currently selects the fork a, the multimedia content corresponding to the fork a is played by executing the dynamic interface control script, and the selection result interface is displayed on the player interface to inform the user that the currently played multimedia content is the content corresponding to the fork a option.
In the embodiment of the invention, on the basis that the player can dynamically load the interface control in the process of playing the multimedia content, the player can further respond to the interaction event acted on the player interface by the user, so that the interface control of the player interface and the multimedia content played by the player correspondingly change, thereby realizing the interaction between the player and the user, further enriching the control function of the player, and enabling the player to have more and more flexible multimedia content display modes.
In the embodiment of the present invention, at least one time point may be preset in the dynamic interface control script. The player may execute the dynamic interface control script and parse the layout file. In the process of playing multimedia content by the player, an interface control can be generated in the preset player interface when the time point specified by the dynamic interface control script is reached. Further, if the player continues to play the multimedia content and another time point specified by the dynamic interface control script is reached, a new interface control can be generated on the preset player interface. Therefore, in the process that the player continues to play the multimedia content, the player can also dynamically update the interface control, and dynamic interface display and richer operation functions are provided for the user.
According to the interface control generation method provided by the embodiment of the invention, the layout file is analyzed by executing the dynamic interface control script to generate an interface control instance, and the interface control is generated on a preset player interface by adopting the interface control instance. Therefore, the interface control can be generated through the dynamic interface control script and the layout file without updating the player. And the server issues the dynamic interface control script and the layout file, so that the updating of the interface control can be completed, and the flexibility of the interface control is improved. Meanwhile, the interaction event of the user acting on the player interface can be acquired through the interface control, the interaction content is correspondingly displayed, the interaction between the interface control and the user is realized, and more operable functions are provided for the user.
As a specific example of the present invention, the present invention provides another player interaction method, which is applied to the player 400 shown in fig. 4. The player 400 has an Objective-C host program 401, and a LUA virtual machine program 402 can be run in the Objective-C host program 401. The LUA virtual machine program 402 and the Objective-C host program 401 may interact with each other through an environment conversion object 403. The Objective-C host program 401 is further provided with a player control interface 404, and the player control interface 404 can perform data interaction with the server 410. The Objective-C host program 401 is further provided with a player private interface 405 and a player kernel 406. The player can call the player private interface 405 and the player kernel 406 through the player control interface 404 to control the player to play multimedia content.
The method comprises the following steps:
s31, the server 410 issues a dynamic interface control script and a layout file to the player control interface 404. The dynamic interface control script is an LUA script, and the layout file is an XML file.
S32, the player control interface 404 sends the dynamic interface control script to the LUA virtual machine program 402 through the environment conversion object 403;
s33, at a preset time point, the LUA virtual machine program 402 loads a dynamic interface control script and a layout file of the interface control. The preset time point may be a certain time point in the process of playing the multimedia content by the player. The time point may be set by sending a message to the LUA virtual machine program 402 in advance, or may be set by dynamically issuing a message through the server, so as to control the LUA virtual machine program 402 to load a dynamic interface control script and a layout file of the interface control when acquiring the message issued by the server, which is not limited in the present invention.
And S34, the LUA virtual machine program 402 analyzes the layout file by executing the dynamic interface control script and adopting a preset script base library to obtain an interface control instance adapted to the LUA virtual environment. The interface control instance adapted to the LUA virtual environment may be document object model tree structure information.
S35, the LUA virtual machine program 402 converts the interface control instance adapted to the LUA virtual environment into the interface control instance adapted to the Objective-C host environment by executing the dynamic interface control script.
In particular, the LUA virtual machine program 402 may traverse the interface control instance of the adapted LUA virtual environment. The interface control instance adapted to the LUA virtual environment may include a layout node and an event node.
If traversing to the layout node, the LUA virtual machine program 402 may adopt the information in the layout node, and then send the information of the layout node after being converted by the environment conversion object 403 to the Objective-C host program 401, so that the host program may obtain the converted layout node information. The host program may preset an interface control instance adapted to the host environment, and the host program may load the converted layout node information into the interface control instance adapted to the host environment.
Further, if the unit of the information in the layout node is different from the unit of the information in the Objective-C host program 401, unit conversion may be performed on the information in the layout node. For example, when the graphic elements and/or the text elements in the layout nodes are expressed in units of pixel (px), percentage (%), aspect ratio (vw/vh), and the host program is expressed in units of dp (density independent pixel) and sp (scalable pixel), the LUA virtual machine program 402 may perform unit conversion on the information in the layout nodes, convert the information in the layout nodes through the environment conversion object 403, and send the converted information to the object-C host program 401.
Further, the interface control can adopt a Flexbox layout, and the main idea of the Flexbox layout is that the elements can change in size to adapt to the available space, when the available space becomes larger, the Flex elements will expand in size to fill the available space, and when the Flex elements exceed the available space, the Flex elements will automatically shrink. When the interface control is in a Flexbox layout, the interface control may have a parent layout node and several child layout nodes in the interface control instance of the virtual machine environment. The parent layout node may specify the location and size of the interface control in the player interface. The position and size may vary depending on the size of the player interface. The child layout node can correspondingly determine the position and the size of the graphic element and/or the text element in the player interface according to the position and the size of the interface control specified by the parent layout node in the player interface.
In the process of traversing the interface control instance adapted to the virtual machine environment by the LUA virtual machine program 402 through the dynamic interface control script, if the layout node configured by the Flexbox is traversed, the information of the layout node may be transmitted to the Objective-C host program 401 after being converted by the environment conversion object 403, so that the Objective-C host program 401 may acquire the converted layout node information. The Objective-C host program 401 may preset an interface control instance adapted to the host environment, and the Objective-C host program 401 may load the converted layout node information into the interface control instance adapted to the host environment. Thereafter, the Objective-C host program 401 may execute a parent layout node and a child layout node in the layout nodes, determine the position and the size of the interface control based on the size of the player interface, and further determine the position and the size of a graphic element and/or a text element in the interface control in the player interface. And then, binding the information of the position and the size of the graphic element and/or the text element in the interface control in the player interface to the interface control instance adapted to the host environment, so that the interface control instance can be loaded with the information of the position and the size of the interface control.
If the event node is traversed, the information of the event node may be converted by the environment conversion object 403 and then sent to the Objective-C host program 401, so that the Objective-C host program 401 may obtain the converted event node information. The Objective-C host program 401 may load the converted event node information into an interface control instance of the adapted host environment to bind an event that transmits data back to the LUA virtual machine program 402. The LUA virtual machine program 402 may set a corresponding backhaul response node in the dynamic interface control script, and trigger an event corresponding to the backhaul response node when the Objective-C host program transmits corresponding data.
Further, the event node may include a user operation event node and a data backtransmission event node. The user operation event node may be configured to obtain an operation performed by a user on the interface control, and return data to the virtual machine program. The data backhaul node may be configured to obtain data in the Objective-C host program 401 and return the data to the LUA virtual machine program 402 via the environment conversion object 403.
S36, acquiring an interaction event of a user acting on the interface control in the player interface;
specifically, the user may input an operation for the interface control through an input device connected to the electronic device, such as a keyboard, a mouse, a touch screen, a microphone, and the like. So that the Objective-C host program 401 can obtain the interaction event of the user acting on the interface control in the player interface. Then, the Objective-C host program 401 may trigger an event node corresponding to the interaction event, and return data to the LUA virtual machine program 402 through the environment conversion object 403, so as to trigger a response node returned in the dynamic interface control script.
S37, responding the interaction event, and displaying the interaction content in the player interface.
Specifically, the LUA virtual machine program 402 may obtain data returned by the Objective-C host program 401 through the environment conversion object 403, the LUA virtual machine program 402, in response to the interaction event, executes a script fragment corresponding to the returned response node in the dynamic interface control script based on the returned data, and sends information of corresponding interaction interface content and/or information of interaction multimedia content to the Objective-C host program 401 through the environment conversion object 403. The information of the interactive interface content may be to send a new interface control instance to the Objective-C host program 401 through the environment conversion object 403 to change the content of the interface control displayed by the player interface. The interactive multimedia content information may be a play control message sent to the Objective-C host program 401 through the environment conversion object 403, and the play control message controls the player control interface 404 to call the player private interface 405 and the player kernel 406 to change the multimedia content played by the player.
The interactive multimedia content may be determined based on user attribute information corresponding to the player, a region where the user is located, a current network environment, and the like, or may be determined based on user operation.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of an interactive apparatus of a player according to an embodiment of the present invention is shown, which may specifically include the following modules:
a loading module 501, configured to load a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server;
a generating module 502, configured to analyze the layout file by executing the dynamic interface control script in a process of playing multimedia content by the player, and generate an interface control on a preset player interface;
an interaction module 503, configured to obtain an interaction event that a user acts on the interface control in the player interface, and display an interaction content in the player interface in response to the interaction event.
In one embodiment of the present invention, the generating module includes:
the first instance generation submodule is used for analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
and the control generation sub-module is used for loading the interface control example and displaying the interface control corresponding to the interface control example on a preset player interface.
In an embodiment of the present invention, a host program of the player is provided with a virtual machine program;
the generation module comprises:
the second instance generation submodule is used for executing the dynamic interface control script by adopting the virtual machine program, analyzing the layout file and generating an interface view instance and an event node instance;
a third instance generation submodule, configured to bind the event node instance to the interface view instance by using the virtual machine program, and generate an interface control instance adapted to a virtual machine environment;
the conversion sub-module is used for converting the interface control instance adapted to the virtual machine environment into the interface control instance adapted to the host environment by adopting a preset environment conversion object;
and the display sub-module is used for loading the interface control instance by adopting the host program and displaying the interface control corresponding to the interface control instance on a preset player interface.
In one embodiment of the present invention, the interaction module includes:
the response submodule is used for responding to the interaction event by executing the dynamic interface control script;
the determining submodule is used for determining a script segment corresponding to the interaction event in the dynamic interface control script;
and the execution submodule is used for displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the newly played multimedia content of the player.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the following steps when executing the program stored in the memory 603:
loading a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server;
in the process that the player plays multimedia contents, analyzing the layout file by executing the dynamic interface control script, and generating an interface control in a preset player interface;
and acquiring an interactive event of the interface control acted on the player interface by a user, responding to the interactive event, and displaying interactive content in the player interface.
In an embodiment of the present invention, the step of analyzing the layout file by executing the dynamic interface control script and generating an interface control on a preset player interface includes:
analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
and loading the interface control example, and displaying the interface control corresponding to the interface control example on a preset player interface.
In an embodiment of the present invention, a host program of the player is provided with a virtual machine program;
the step of analyzing the layout file and generating the interface control on a preset player interface by executing the dynamic interface control script comprises the following steps:
executing the dynamic interface control script by adopting the virtual machine program, analyzing the layout file, and generating an interface view instance and an event node instance;
binding the event node instance to the interface view instance by adopting the virtual machine program, and generating an interface control instance adapted to the virtual machine environment;
and adopting a preset environment conversion object to convert the interface control instance adapted to the virtual machine environment into the interface control instance adapted to the host environment.
And loading the interface control instance by adopting the host program, and displaying the interface control corresponding to the interface control instance on a preset player interface.
In an embodiment of the present invention, the step of presenting interactive contents in the player interface in response to the interactive event includes:
responding to the interaction event by executing the dynamic interface control script;
determining script fragments corresponding to the interaction events in the dynamic interface control scripts;
and displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the multimedia content newly played by the player.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM), or may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
An embodiment of the present invention further provides an apparatus, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform methods as described in embodiments of the invention.
Embodiments of the invention also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in embodiments of the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for the player interaction method and the player interaction apparatus, and the principle and the implementation of the present invention are explained by applying specific examples, and the descriptions of the above examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An interactive method of a player, comprising:
loading a dynamic interface control script and a layout file of an interface control; the dynamic interface control script and the layout file are issued by a preset server;
in the process that the player plays multimedia contents, analyzing the layout file by executing the dynamic interface control script, and generating an interface control in a preset player interface;
and acquiring an interactive event of the interface control acted on the player interface by a user, responding to the interactive event, and displaying interactive content in the player interface.
2. The method according to claim 1, wherein the step of generating an interface control at a preset player interface by executing the dynamic interface control script, parsing the layout file, comprises:
analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
and loading the interface control example, and displaying the interface control corresponding to the interface control example on a preset player interface.
3. The method according to claim 1 or 2, wherein a virtual machine program is provided in a host program of the player;
the step of analyzing the layout file and generating the interface control on a preset player interface by executing the dynamic interface control script comprises the following steps:
executing the dynamic interface control script by adopting the virtual machine program, analyzing the layout file, and generating an interface view instance and an event node instance;
binding the event node instance to the interface view instance by adopting the virtual machine program, and generating an interface control instance adapted to the virtual machine environment;
adopting a preset environment conversion object to convert the interface control instance adapted to the virtual machine environment into an interface control instance adapted to the host environment;
and loading the interface control instance by adopting the host program, and displaying the interface control corresponding to the interface control instance on a preset player interface.
4. The method of claim 1, wherein the step of presenting interactive content in the player interface in response to the interactive event comprises:
responding to the interaction event by executing the dynamic interface control script;
determining script fragments corresponding to the interaction events in the dynamic interface control scripts;
and displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the multimedia content newly played by the player.
5. An interactive method of a player, comprising:
the loading module is used for loading the dynamic interface control script and the layout file of the interface control; the dynamic interface control script and the layout file are issued by a preset server;
the generating module is used for analyzing the layout file by executing the dynamic interface control script in the process of playing the multimedia content by the player and generating an interface control on a preset player interface;
and the interaction module is used for acquiring an interaction event of a user acting on the interface control in the player interface, responding to the interaction event and displaying interaction content in the player interface.
6. The apparatus of claim 5, wherein the generating module comprises:
the first instance generation submodule is used for analyzing the layout file by executing the dynamic interface control script to generate an interface control instance;
and the control generation sub-module is used for loading the interface control example and displaying the interface control corresponding to the interface control example on a preset player interface.
7. The apparatus according to claim 5 or 6, wherein a virtual machine program is provided in the host program of the player;
the generation module comprises:
the second instance generation submodule is used for executing the dynamic interface control script by adopting the virtual machine program, analyzing the layout file and generating an interface view instance and an event node instance;
a third instance generation submodule, configured to bind the event node instance to the interface view instance by using the virtual machine program, and generate an interface control instance adapted to a virtual machine environment;
the conversion sub-module is used for converting the interface control instance adapted to the virtual machine environment into the interface control instance adapted to the host environment by adopting a preset environment conversion object;
and the display sub-module is used for loading the interface control instance by adopting the host program and displaying the interface control corresponding to the interface control instance on a preset player interface.
8. The apparatus of claim 5, wherein the interaction module comprises:
the response submodule is used for responding to the interaction event by executing the dynamic interface control script;
the determining submodule is used for determining a script segment corresponding to the interaction event in the dynamic interface control script;
and the execution submodule is used for displaying the interactive interface content in the interactive content in the player interface by executing the script fragment, and/or determining the interactive multimedia content in the interactive content as the newly played multimedia content of the player.
9. An apparatus, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of one or more of claims 1-4.
10. One or more machine readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method of one or more of claims 1-4.
CN201911296488.6A 2019-12-16 2019-12-16 Interaction method and device of player Active CN111045674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911296488.6A CN111045674B (en) 2019-12-16 2019-12-16 Interaction method and device of player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911296488.6A CN111045674B (en) 2019-12-16 2019-12-16 Interaction method and device of player

Publications (2)

Publication Number Publication Date
CN111045674A true CN111045674A (en) 2020-04-21
CN111045674B CN111045674B (en) 2023-07-21

Family

ID=70236861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911296488.6A Active CN111045674B (en) 2019-12-16 2019-12-16 Interaction method and device of player

Country Status (1)

Country Link
CN (1) CN111045674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099694A (en) * 2020-09-24 2020-12-18 维沃移动通信有限公司 Desktop control processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242937A (en) * 2014-06-27 2016-01-13 中兴通讯股份有限公司 Method for dynamically updating application interface, terminal and system
CN106126263A (en) * 2016-07-04 2016-11-16 傲讯全通科技(深圳)有限公司 A kind of fast custom user interface and the method for function
CN106844066A (en) * 2017-01-22 2017-06-13 腾讯科技(深圳)有限公司 One kind application operation method, apparatus and system
US10013273B1 (en) * 2016-06-22 2018-07-03 Amazon Technologies, Inc. Virtual machine termination management
CN108279932A (en) * 2018-01-22 2018-07-13 北京奇艺世纪科技有限公司 A kind of mobile terminal dynamic configuration user interface method and device
CN108881202A (en) * 2018-06-08 2018-11-23 北京联合众为科技发展有限公司 A kind of video monitoring system and method
US20190034213A1 (en) * 2016-10-03 2019-01-31 App Onboard, Inc. Application reproduction in an application store environment
CN109831456A (en) * 2019-03-14 2019-05-31 腾讯科技(深圳)有限公司 Information push method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242937A (en) * 2014-06-27 2016-01-13 中兴通讯股份有限公司 Method for dynamically updating application interface, terminal and system
US10013273B1 (en) * 2016-06-22 2018-07-03 Amazon Technologies, Inc. Virtual machine termination management
CN106126263A (en) * 2016-07-04 2016-11-16 傲讯全通科技(深圳)有限公司 A kind of fast custom user interface and the method for function
US20190034213A1 (en) * 2016-10-03 2019-01-31 App Onboard, Inc. Application reproduction in an application store environment
CN106844066A (en) * 2017-01-22 2017-06-13 腾讯科技(深圳)有限公司 One kind application operation method, apparatus and system
CN108279932A (en) * 2018-01-22 2018-07-13 北京奇艺世纪科技有限公司 A kind of mobile terminal dynamic configuration user interface method and device
CN108881202A (en) * 2018-06-08 2018-11-23 北京联合众为科技发展有限公司 A kind of video monitoring system and method
CN109831456A (en) * 2019-03-14 2019-05-31 腾讯科技(深圳)有限公司 Information push method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
有一颗椰子树: "VBScript脚本运用(脚本程序与宿主程序的交互)" *
赵林: "调度自动化系统多视图人机交互界面设计" *
金安: "基于区块链技术的游戏生态系统框架研究与设计" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099694A (en) * 2020-09-24 2020-12-18 维沃移动通信有限公司 Desktop control processing method and device
CN112099694B (en) * 2020-09-24 2022-06-03 维沃移动通信有限公司 Desktop control processing method and device

Also Published As

Publication number Publication date
CN111045674B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
KR101454950B1 (en) Deep tag cloud associated with streaming media
US9665965B2 (en) Video-associated objects
US11245951B2 (en) Display device and content providing method thereof
CN110798501B (en) Data processing method and device and readable storage medium
JP5850833B2 (en) Apparatus and method for transmitting and receiving a user interface in a communication system
US20150026573A1 (en) Media Editing and Playing System and Method Thereof
US20150248722A1 (en) Web based interactive multimedia system
CN104484193A (en) Method and device for rapidly starting application program
US11481948B2 (en) Method, device and storage medium for generating animation group by synthesizing animation layers based on tree structure relation between behavior information and sub-behavior information
CN109154943A (en) Conversion based on server of the automatic broadcasting content to click play content
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
US20220310125A1 (en) Method and apparatus for video production, device and storage medium
EP3055791A1 (en) Content stitching templates
CN113253880B (en) Method and device for processing pages of interaction scene and storage medium
CN110784753B (en) Interactive video playing method and device, storage medium and electronic equipment
CN104461512A (en) Method and device for starting application program quickly
CN108810132B (en) Animation display method, device, terminal, server and storage medium
CN111949908A (en) Media information processing method and device, electronic equipment and storage medium
CN113688341B (en) Dynamic picture decomposition method and device, electronic equipment and readable storage medium
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN111818279A (en) Subtitle generating method, display method and interaction method
CN111045674B (en) Interaction method and device of player
US10673771B2 (en) Platform-agnostic thick-client system for combined delivery of disparate streaming content and dynamic content by combining dynamic data with output from a continuous queue transmitter
US10055508B1 (en) Platform-agnostic thick-client system for combined delivery of disparate streaming content and dynamic content by combining dynamic data with output from a continuous queue transmitter
JP2021056989A (en) Voice skill recommendation method, apparatus, device, and storage medium

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
GR01 Patent grant
GR01 Patent grant