CN116166251A - Media file display method and device, media and electronic equipment - Google Patents

Media file display method and device, media and electronic equipment Download PDF

Info

Publication number
CN116166251A
CN116166251A CN202310183956.9A CN202310183956A CN116166251A CN 116166251 A CN116166251 A CN 116166251A CN 202310183956 A CN202310183956 A CN 202310183956A CN 116166251 A CN116166251 A CN 116166251A
Authority
CN
China
Prior art keywords
script
target
media file
target node
file
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
CN202310183956.9A
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 Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju 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 Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202310183956.9A priority Critical patent/CN116166251A/en
Publication of CN116166251A publication Critical patent/CN116166251A/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/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The disclosure relates to a media file display method, a device, a medium and an electronic device, wherein the method comprises the following steps: responding to configuration operation of a script aiming at a target node in a media file, displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized; when a target node corresponding to a media file is rendered, parameter values set on a configuration form based on an interface are obtained, a script is initialized based on the parameter values, a target script instance is obtained, and the target script instance corresponding to the target node is executed so as to update the display effect of the target node in the media file and/or enhance interaction capability. Because the logic of the script can be controlled by the user-defined parameters, the setting of the parameters can be configured by the visual interface, thereby realizing the multiplexing of the script and further improving the development efficiency.

Description

Media file display method and device, media and electronic equipment
Technical Field
The disclosure relates to the technical field of electronic information, in particular to a media file display method, a device, a medium and electronic equipment.
Background
In a business scenario supporting the display effect of the user personalized configuration visual file, the script needs to be developed and embedded to support the user personalized configuration, but because the development of the script has a large degree of dependence on professional ability, the difficulty of realizing the display effect of the personalized configuration visual file for a user without professional ability or with low professional ability is large.
The user can realize personalized configuration of the display effect or interaction capability of the nodes in the visual file based on the visual interface by developing the script and visually defining the interface of the script without accessing the script at the bottom layer, so that the dependence of the display effect of the personalized configuration visual file on professional capability is reduced. However, the current manner of implementing the visual interface is complex, resulting in low development efficiency.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides a media file display method, including:
responding to configuration operation of a script aiming at a target node in a media file, and displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of all parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized;
when rendering a target node corresponding to the media file, acquiring a parameter value set on the configuration form based on the interface, and initializing the script based on the parameter value to obtain a target script instance;
and executing the target script instance corresponding to the target node to update the display effect of the target node in the media file and/or enhance the interaction capability.
In a second aspect, the present disclosure provides a media file display apparatus comprising:
the first display module is used for responding to the configuration operation of the script aiming at the target node in the media file, and displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of all parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized;
the initialization module is used for acquiring parameter values set on the configuration form based on the interface when rendering the target node corresponding to the media file, and initializing the script based on the parameter values to obtain a target script instance;
and the second display module is used for executing the target script instance corresponding to the target node so as to update the display effect of the target node in the media file and/or enhance the interaction capability.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which when executed by a processing device performs the steps of the method described in the first aspect above.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method described in the first aspect above.
According to the technical scheme, the configuration operation of the script aiming at the target node in the media file is responded, the configuration form corresponding to the script is displayed, wherein an interface for configuring parameter values of all parameters in the script is provided in the configuration form, and the interface is defined through a predefined function; when a target node corresponding to a media file is rendered, acquiring parameter values set on a configuration form based on an interface, and initializing a script based on the parameter values to obtain a target script instance; executing a target script instance corresponding to the target node to update the display effect and/or the interaction capability of the target node in the media file, thereby realizing the purpose of personalized configuration of the display effect and/or the interaction capability of different nodes in the media file by a user; the definition and the use of functions corresponding to different interfaces are standardized, so that development difficulty is simplified for a developer when the interfaces are defined or visualized; in addition, as the logic in the script can be controlled through the custom parameters, the setting of the parameters can be configured through the visual interface, so that the multiplexing of the script is realized, and the development efficiency is further improved.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart illustrating a media file display method according to an exemplary embodiment.
FIG. 2 is a schematic diagram of a media file shown according to an example embodiment.
Fig. 3 is a schematic diagram illustrating a configuration form corresponding to node 3 in fig. 2 according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating step S11 according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a media file display device according to an exemplary embodiment.
Fig. 6 is a schematic diagram of an electronic device according to an exemplary embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
Meanwhile, it can be understood that the data (including but not limited to the data itself, the acquisition or the use of the data) related to the technical scheme should conform to the requirements of the corresponding laws and regulations and related regulations.
As to the background technology, a developer performs visual definition on an interface of the script by developing the script, and a user can realize personalized configuration of the display effect or interaction capability of the nodes in the visual file based on the visual interface without accessing the script at the bottom layer, so that the dependence of the display effect of the personalized configuration visual file on the professional capability is reduced. However, the definition and visualization of the interface are realized by adopting the decorator at present, but the decorator does not have unified grammar standard, the use rule is relatively complex, and the decorator cannot realize the inference of the type of the parameter, so that the mode of defining and visualizing the interface is relatively complex, and the development efficiency of the interface is affected.
In addition, after the interface is defined, the definition of the interface needs to be resolved to perform parameter configuration of the form, and regular expressions or AST (abstract syntax code, abstract syntax tree) are generally adopted to analyze the interface, but the regular expressions and the AST have low flexibility and larger limitation, and are not beneficial to the development of the interface.
In view of the above, the present disclosure provides a method, an apparatus, a medium, and an electronic device for displaying a media file, so as to achieve the purpose of personalized configuration of display effects and/or interaction capabilities of different nodes in the media file by a user; and because the definition and the use of the functions corresponding to different interfaces are standardized, for a developer, when the interfaces are defined or visualized, the development difficulty is simplified, the logic in the script can be controlled through the custom parameters, and the parameters can be set and configured through the visualized interfaces, so that the multiplexing of the script is realized, and the development efficiency is further improved.
The disclosure is further explained below with reference to the drawings.
Fig. 1 is a flowchart illustrating a media file display method according to an exemplary embodiment. The media file display method may be applied to an electronic device, which may be, for example, a mobile terminal, such as a mobile phone, a tablet, etc., which may be, for example, a fixed terminal, such as a server, a desktop computer, etc. Referring to fig. 1, the method may include the steps of:
step S11, responding to the configuration operation of the script aiming at the target node in the media file, displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of all parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized. The media file may be a file having an animation effect, for example, a file applied to make interactive advertisements. When creating the file of the interactive advertisement, the user triggers an operation of creating the file of the interactive advertisement based on the visual interface of the electronic device, the operation being such as the configuration operation described above. A plurality of nodes having a hierarchical relationship may be included in the media file, each node may include a picture, an audio-visual, a text, or a container, etc., which may include at least one picture, an audio-visual, or a text, etc. The hierarchical relationship between nodes may be used to characterize the relative positions of the nodes on the picture. For example, referring to the schematic diagram of one media file shown in fig. 2, the media file shown in fig. 2 includes at least node 1, node 2 and node 3, where node 1 and node 2 are both pictures, node 3 is text, and the hierarchical relationship between node 3 and node 2 is used to characterize that node 3 is located above node 2 or node 2 is located below node 3.
The target node may be any node that composes the media file. For example, a user may select any node in a media file as a target node based on a visualization interface of an electronic device, and click on a control provided by the visualization interface for the target node to trigger a configuration operation of a script of the target node, where the script is used to update a display effect and/or enhance interaction capability of the target node when executed.
The parameters of the target node may be the vertical coordinates of the node, the horizontal coordinates of the node, the size of the node, the source of the node, the name of the node, and so on.
Referring to the schematic diagram of the configuration form corresponding to the node 3 in fig. 2 shown in fig. 3, taking the example that the parameter is the vertical coordinate of the node, X in fig. 3 illustrates the vertical coordinate of the node, the parameter value of X is 157, and the value of the vertical coordinate of the node can be configured through the interface corresponding to X.
Wherein the function includes semantic information describing an interface corresponding to the function. Referring to fig. 3, in fig. 3, the semantic information describing the interface corresponding to the function is used by the width, height, rotation angle, etc., so that a user can determine how to configure parameter values, thereby improving usability of the script, wherein the usability is represented by a form input component capable of defining a proper parameter, a semantic prompt description information and a clear form grouping and layout information. For an explanation of the script, reference may be made to the following related embodiments.
Wherein the type of the parameter includes at least one of a category type, a number type, a string type, an Array type, an enum type, and an Object type, and a plurality of types of parameters can be defined, so that applicability of the script can be improved, and explanation of the script can be referred to in the following related embodiments.
Step S12, when the target node corresponding to the media file is rendered, parameter values set on the configuration form based on the interface are obtained, and the script is initialized based on the parameter values, so that a target script instance is obtained.
As can be seen from the above, when the configuration form corresponding to the script is displayed, the user may configure the parameter values of the parameters based on the interface provided by the configuration form for configuring the parameter values of each parameter in the script, and after the configuration is completed, the electronic device may store the configured parameter values, so that when rendering the target node corresponding to the media file, the electronic device may obtain the corresponding parameter values from the stored data.
The Script (Script) is an executable file written according to a certain format by using a specific descriptive language, and by running the executable file, the display effect and/or interaction capability of the nodes in the media file can be enhanced.
It should be noted that, the difference of the display effect and/or interaction capability of the target node configured by the user is realized by setting different parameter values of the parameters of the target node, for example, the parameter values of the vertical coordinates of the target node are different, and the positions of the nodes are different, so that the display effect is different; the interactive capability is used for representing that the electronic equipment can support interactive operation of a user on the electronic equipment, and the more the supported interactive operation is, the stronger the interactive capability is. The electronic device may perform different actions based on the interaction. The interaction may be achieved by adding different events, each event corresponding to an interaction, such that the electronic device performs a respective action when performing the respective event, e.g. a single click event, a double click event, etc., and the action may also be playing video, playing audio, etc.
Step S13, executing the target script instance corresponding to the target node to update the display effect of the target node in the media file and/or enhance the interaction capability.
The target node corresponding to the rendering media file may be implemented through a rendering browser built in the electronic device, and a specific implementation process of the rendering browser may refer to a related technology, which is not described herein in detail.
Through the mode, the aim of personalized configuration of the display effect and/or interaction capability of different nodes in the media file by the user is fulfilled; and because the definition and the use of the functions corresponding to different interfaces are standardized, for a developer, when the interfaces are defined or visualized, the development difficulty is simplified, the logic in the script can be controlled through the custom parameters, and the parameters can be set and configured through the visualized interfaces, so that the multiplexing of the script is realized, and the development efficiency is further improved.
Fig. 4 is a flowchart illustrating step S11 according to an exemplary embodiment. Referring to fig. 4, step S11 includes the steps of:
step S41, responding to configuration operation of a script aiming at a target node in a media file, and obtaining a target compiling file capable of supporting a native JavaScript engine, wherein the target compiling file is obtained by compiling the script, and the script comprises a function corresponding to a definition interface.
It is worth to say that, the developer is used for generating the executable file of the configuration form by developing the script and visually defining the interface of the script, and the user realizes the multiplexing of the script through the configuration form.
And S42, analyzing the target compiled file through the original JavaScript engine to obtain an analysis result.
The purpose of the native JavaScript engine to parse the target compiled file is to support the form rendering engine.
And step S43, rendering the analysis result through a form rendering engine to display a configuration form corresponding to the script.
By the method, when the original JavaScript engine dynamically analyzes the target compiled file, the characteristics of the eval function and the Proxy function can be utilized, the whole implementation is simple, various original expressions can be supported to the greatest extent to define grammar, the limitation is low, and the analysis method only triggers a structure method of a class and does not need other methods of triggering the class, so that higher safety can be ensured.
In addition, the reusability of the script can be improved by defining various parameters through functions.
In some embodiments, the method may further comprise: acquiring at least one sub-script input based on a preset editor; packaging and compiling at least one sub-script in real time to obtain a target compiling file supporting a native JavaScript engine; at least one sub-script and a target compilation file are saved.
Wherein at least one of the sub-scripts constitutes a script.
The preset editor comprises a TypeScript editor, the TypeScript editor can realize self-derivation of the function type, and a developer does not need to define the type of the function.
The packing and compiling can be realized by utilizing weback, which is a static module packing and compiling tool for JavaScript application programs.
By the method, the compiled result is stored, the requirement that a user needs to use a target compiled file for personalized configuration can be responded in time, and the efficiency of personalized configuration is improved; the script is stored, so that the maintenance of the script by a developer can be facilitated.
Fig. 5 is a block diagram illustrating a media file display device according to an exemplary embodiment. Referring to fig. 5, the media file display apparatus 500 includes:
a first display module 501, configured to respond to a configuration operation for a script of a target node in a media file, and display a configuration form corresponding to the script, where an interface for configuring parameter values of each parameter in the script is provided in the configuration form, the interface is defined by a predefined function, and definition and use of functions corresponding to different interfaces are standardized;
an initialization module 502, configured to obtain a parameter value set on the configuration form based on the interface when rendering a target node corresponding to the media file, and initialize the script based on the parameter value, to obtain a target script instance;
and the second display module 503 is configured to execute a target script instance corresponding to the target node, so as to update a display effect of the target node in the media file and/or enhance interaction capability.
In some embodiments, the first display module 501 includes:
the obtaining submodule is used for responding to configuration operation of a script aiming at a target node in a media file and obtaining a target compiling file capable of supporting a native JavaScript engine, wherein the target compiling file is obtained by compiling the script, and the script comprises a function corresponding to the definition interface;
the analysis submodule is used for analyzing the target compiling file through the original JavaScript engine to obtain an analysis result;
and the display sub-module is used for rendering the analysis result through a form rendering engine so as to display a configuration form corresponding to the script.
In some embodiments, the media file display device 500 further comprises:
the acquisition module is used for acquiring at least one sub-script input based on the preset editor;
the compiling module is used for packaging and compiling the at least one sub-script in real time to obtain a target compiling file supporting the original JavaScript engine;
and the storage module is used for storing the at least one sub-script and the target compiling file.
In some embodiments, the pre-set editor comprises a TypeScript editor.
In some embodiments, the function includes semantic information describing an interface corresponding to the function.
In some embodiments, the type of parameter includes at least one of a byte type, a number type, a string type, an Array type, an enum type, and an Object type.
The disclosed embodiments also provide a computer readable medium having stored thereon a computer program which when executed by a processing device realizes the steps of the method described above.
The embodiment of the disclosure also provides an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method described above.
Referring now to fig. 6, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the electronic device may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to configuration operation of a script aiming at a target node in a media file, and displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of all parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized; when rendering a target node corresponding to the media file, acquiring a parameter value set on the configuration form based on the interface, and initializing the script based on the parameter value to obtain a target script instance; and executing the target script corresponding to the target node to update the display effect of the target node in the media file and/or enhance the interaction capability.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of a module does not in some cases define the module itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims. The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.

Claims (10)

1. A method for displaying a media file, comprising:
responding to configuration operation of a script aiming at a target node in a media file, and displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of all parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized;
when rendering a target node corresponding to the media file, acquiring a parameter value set on the configuration form based on the interface, and initializing the script based on the parameter value to obtain a target script instance;
and executing the target script instance corresponding to the target node to update the display effect of the target node in the media file and/or enhance the interaction capability.
2. The method of claim 1, wherein the displaying a configuration form corresponding to a script for a target node in a media file in response to a configuration operation of the script comprises:
responding to configuration operation of a script aiming at a target node in a media file, and acquiring a target compiling file capable of supporting a native JavaScript engine, wherein the target compiling file is obtained by compiling the script, and the script comprises a function corresponding to the definition interface;
analyzing the target compiling file through the original JavaScript engine to obtain an analysis result;
and rendering the analysis result through a form rendering engine so as to display a configuration form corresponding to the script.
3. The method according to claim 2, wherein the method further comprises:
acquiring at least one sub-script input based on a preset editor;
packaging and compiling the at least one sub-script in real time to obtain a target compiling file supporting a native JavaScript engine;
and storing the at least one sub-script and the target compiled file.
4. A method according to claim 3, wherein the pre-set editor comprises a TypeScript editor.
5. The method of any of claims 1-4, wherein the function includes semantic information describing an interface corresponding to the function.
6. The method of claim 1, wherein the type of parameter comprises at least one of a category type, a number type, a string type, an Array type, an enum type, and an Object type.
7. A media file display device, comprising:
the first display module is used for responding to the configuration operation of the script aiming at the target node in the media file, and displaying a configuration form corresponding to the script, wherein interfaces for configuring parameter values of all parameters in the script are provided in the configuration form, the interfaces are defined through predefined functions, and the definition and the use of functions corresponding to different interfaces are standardized;
the initialization module is used for acquiring parameter values set on the configuration form based on the interface when rendering the target node corresponding to the media file, and initializing the script based on the parameter values to obtain a target script instance;
and the second display module is used for executing the target script instance corresponding to the target node so as to update the display effect of the target node in the media file and/or enhance the interaction capability.
8. The method of claim 7, wherein the first display module comprises:
the obtaining submodule is used for responding to configuration operation of a script aiming at a target node in a media file and obtaining a target compiling file capable of supporting a native JavaScript engine, wherein the target compiling file is obtained by compiling the script, and the script comprises a function corresponding to the definition interface;
the analysis submodule is used for analyzing the target compiling file through the original JavaScript engine to obtain an analysis result;
and the display sub-module is used for rendering the analysis result through a form rendering engine so as to display a configuration form corresponding to the script.
9. A computer readable medium on which a computer program is stored, characterized in that the program, when being executed by a processing device, carries out the steps of the method according to any one of claims 1-6.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method according to any one of claims 1-6.
CN202310183956.9A 2023-02-17 2023-02-17 Media file display method and device, media and electronic equipment Pending CN116166251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310183956.9A CN116166251A (en) 2023-02-17 2023-02-17 Media file display method and device, media and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310183956.9A CN116166251A (en) 2023-02-17 2023-02-17 Media file display method and device, media and electronic equipment

Publications (1)

Publication Number Publication Date
CN116166251A true CN116166251A (en) 2023-05-26

Family

ID=86416266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310183956.9A Pending CN116166251A (en) 2023-02-17 2023-02-17 Media file display method and device, media and electronic equipment

Country Status (1)

Country Link
CN (1) CN116166251A (en)

Similar Documents

Publication Publication Date Title
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN111796820B (en) Method and device for constructing front-end page based on integrated assembly and electronic equipment
CN111291244B (en) House source information display method, device, terminal and storage medium
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN111338623A (en) Method, device, medium and electronic equipment for developing user interface
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111367516A (en) Application interface generation method and device and electronic equipment
CN111324376B (en) Function configuration method, device, electronic equipment and computer readable medium
CN111190657A (en) Activity configuration method and device, readable medium and electronic equipment
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN107168738A (en) A kind of management method of application tool, device, equipment and storage medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
US20230137461A1 (en) Interaction method and apparatus, electronic device, and non-volatile computer readable storage medium
CN111324347A (en) Component construction method, device and system, page generation method, equipment and medium
CN113961280B (en) View display method and device, electronic equipment and computer readable storage medium
CN116166251A (en) Media file display method and device, media and electronic equipment
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113778566A (en) Native application calling method and device, electronic equipment and computer readable medium
CN112306469A (en) Barrier-free component construction method, device, equipment and storage medium
CN112346728B (en) Device adaptation method, apparatus, device and computer readable medium
CN112445517B (en) Inlet file generation method, device, electronic equipment and computer readable medium
CN112688863B (en) Gateway data processing method and device and electronic equipment
CN111641692B (en) Session data processing method and device and electronic equipment
CN109740100B (en) Webpage node sniffing method, device, equipment 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