CN116567347A - Video playing method, device, computer equipment and storage medium - Google Patents

Video playing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116567347A
CN116567347A CN202310353614.7A CN202310353614A CN116567347A CN 116567347 A CN116567347 A CN 116567347A CN 202310353614 A CN202310353614 A CN 202310353614A CN 116567347 A CN116567347 A CN 116567347A
Authority
CN
China
Prior art keywords
video
target
configuration parameters
template
initial
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
CN202310353614.7A
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.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software 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 Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202310353614.7A priority Critical patent/CN116567347A/en
Publication of CN116567347A publication Critical patent/CN116567347A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface

Abstract

The application relates to a video playing method, a video playing device, computer equipment and a storage medium. The method comprises the following steps: acquiring preset video configuration parameters and at least two initial video end templates; determining page static resources; the page static resource comprises at least two preset video formats; determining a target video format corresponding to the video configuration parameters from preset video formats by using page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end template; and generating a video playing result according to the target video format and the target video end template. The method can solve the problem of higher video playing cost.

Description

Video playing method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of digital information transmission technologies, and in particular, to a video playing method, a video playing device, a computer device, and a storage medium.
Background
With rapid development of technology, video application scenes are becoming wider, and enterprises, families and individuals of each unit have different consumption demands on video. The browser is used as an important tool for retrieving, displaying and transmitting information resources, and can present webpages, pictures or videos, but the compatibility of the browsers at all ends to video formats is different nowadays, and the requirements of developers cannot be directly met by the playing components of the browsers, so that secondary development is needed. However, in the related art, it is difficult to provide a playing component compatible with all playing formats and all video playing ends, and most video playing plug-ins can only play one format or type of video, so that a browser is usually required to install multiple video playing plug-ins, which results in higher cost of video playing.
At present, for the problem of high cost of video playing in the related art, no effective solution has been proposed.
Disclosure of Invention
Based on this, it is necessary to provide a video playing method, apparatus, computer device and storage medium in order to address the above technical problems.
In a first aspect, the present application provides a video playing method. The method comprises the following steps:
acquiring preset video configuration parameters and at least two initial video end templates;
determining page static resources; the page static resource comprises at least two preset video formats;
determining a target video format corresponding to the video configuration parameters from preset video formats by using page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end template;
and generating a video playing result according to the target video format and the target video end template.
In one embodiment, the video playing result includes at least two pieces of function information, and after the video playing result is generated according to the target video format and the target video end template, the method further includes:
acquiring a preset operation instruction, triggering corresponding target function information in the function information according to the operation instruction, and generating control information of a video playing result according to the target function information.
In one embodiment, determining, based on the video configuration parameters, a target video format corresponding to the video configuration parameters from the preset video formats includes:
acquiring an initial address corresponding to the page static resource;
and translating the video configuration parameters into initial address suffixes, generating a target address according to the initial address and the initial address suffixes, and determining a target video format corresponding to the video configuration parameters from preset video formats according to the target address.
In one embodiment, after generating the target address from the initial address and the initial address suffix, the method further comprises,
calling the page static resource according to the target address, and acquiring successful callback information generated by the page static resource under the condition that successful calling of the page static resource is detected;
responding to the obtained successful callback information, and obtaining video end template indication information;
and determining a corresponding target video end template from the initial video end templates according to the video segment template indication information and the video configuration parameters.
In one embodiment, the target video-side template includes default attribute parameters, the video configuration parameters include target attribute parameters, and the method further includes:
determining an initial video end template corresponding to the video configuration parameters from the initial video end templates based on the video configuration parameters;
when the default attribute parameters are detected to be the same as the target attribute parameters, carrying out template updating operation on the initial video end template according to the default attribute parameters, and generating a target video end template;
when the default attribute parameter is detected to be different from the target attribute parameter, performing template updating operation on the initial video end template according to the target attribute parameter, and generating a target video end template.
In one embodiment, generating the video play result according to the target video format and the target video end template includes:
acquiring at least one player function corresponding to the player component, and packaging the player function to generate a player function set;
and calling a player function set according to the video configuration parameters and the target video end template, and generating a video playing result according to the target video format by utilizing the player function set.
In a second aspect, the present application further provides a video playing device. The device comprises:
the acquisition module acquires preset video configuration parameters and at least two initial video end templates; determining page static resources; the page static resource comprises at least two preset video formats;
the computing module is used for determining a target video format corresponding to the video configuration parameters from preset video formats by utilizing page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end template;
and the generation module is used for generating a video playing result according to the target video format and the target video end template.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring preset video configuration parameters and at least two initial video end templates;
determining page static resources; the page static resource comprises at least two preset video formats;
determining a target video format corresponding to the video configuration parameters from preset video formats by using page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end template;
and generating a video playing result according to the target video format and the target video end template.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring preset video configuration parameters and at least two initial video end templates;
determining page static resources; the page static resource comprises at least two preset video formats;
determining a target video format corresponding to the video configuration parameters from preset video formats by using page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end template;
and generating a video playing result according to the target video format and the target video end template.
According to the video playing method, the video playing device, the computer equipment and the storage medium, firstly, the video configuration parameters input by a user are acquired, then the target video format is determined from the preset video formats according to the video configuration parameters, the target video end template is determined from the preset video end templates, finally, the video playing result is generated according to the target video format and the target video end template, and the adaptation to different video formats and different video playing ends can be realized based on the basic player.
Drawings
FIG. 1 is a flowchart of a video playing method according to an embodiment;
FIG. 2 is a flowchart of a video playing method according to another embodiment;
FIG. 3 is a flowchart of a video playing method according to another embodiment;
FIG. 4 is a schematic diagram of a video playing method in a preferred embodiment;
FIG. 5 is a block diagram of a video playback device according to an embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a video playing method is provided, and fig. 1 is a flowchart of the video playing method according to an embodiment of the present application, including the following steps:
step S110, obtaining preset video configuration parameters and at least two initial video end templates; determining page static resources; the page static resource comprises at least two preset video formats;
the method comprises the steps of obtaining preset video configuration parameters input by a user, wherein the video configuration parameters are used for indicating a video stream format required under a current video playing application scene, personalized information of the user and the like; the preset video end templates comprise an H5 end template, a web end template and the like, and if other types of templates are needed, the templates can be added; the page static resource is applied to the application in the form of a video player, wherein the video player comprises a plurality of preset video formats, such as HLS, FLV, rtsp and the like, and if other types of templates are needed, the addition processing can be performed.
Step S120, based on the video configuration parameters, determining a target video format corresponding to the video configuration parameters from preset video formats by using the page static resources, and determining a target video end template corresponding to the video configuration parameters from the initial video end templates.
And selecting a corresponding target video format from a plurality of video formats of the base player which are the static resources of a plurality of pages based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from preset video end templates. Specifically, in practical application, the page static resource is applied in the form of a base player, the video end templates are deployed in a template layer, wherein the template layer comprises a plurality of preset video end templates, new video end templates can be added according to practical requirements, a developer can monitor the state of the base player at the moment through the template layer, the template layer and the base player are connected through an inline frame element shaped as an iframe, a corresponding target video format is selected from a plurality of video formats of the base player according to the video configuration parameters, and a corresponding target video end template is selected from the template layer based on the video configuration parameters. The step selects the video format and the video end template through the video configuration parameters, thereby not only realizing the same play of a plurality of video protocols and reducing the integration of a plurality of additional player library components by developers due to different video stream protocols, but also realizing the autonomous adaptation of the template layer without special consideration of the application environment of the video end, thereby being convenient for the developers to apply rapidly.
Step S130, generating a video playing result according to the target video format and the target video end template.
The video playing result is provided for a user to play the video with the corresponding format under the corresponding video end environment.
Through steps S110 to S130, the target video format corresponding to the video configuration parameter and the target video end template corresponding to the video configuration parameter are determined by utilizing the page static resource, so that different video formats and adaptation to different video playing ends can be realized based on a basic player, a video playing mode compatible with various video stream formats and various playing ends is provided, the phenomenon of high video playing cost caused by the fact that one browser needs to install various video playing plug-ins is avoided, the development cost is reduced, the docking cost of a developer is also directly reduced, the efficiency of the developer is effectively improved, the problem of high video playing cost is solved, and the low-cost and high-efficiency video playing method is realized.
In one embodiment, the video playing method further includes: the video playing result comprises at least two pieces of function information;
acquiring a preset operation instruction, triggering corresponding target function information in the function information according to the operation instruction, and generating control information of a video playing result according to the target function information.
Specifically, taking actual operation as an example, multiple video end templates are deployed in a template layer, a base player is deployed in a server for page static resources, further, the template layer comprises multiple preset video end templates, the base player comprises multiple preset video formats, and the template layer and the base player are connected through an inline frame element like an iframe. On the one hand, after the basic player acquires an operation instruction input by a user, the operation instruction is converted into specified message information, and the message information is transferred to a template layer through a channel shaped as an iframe to trigger corresponding function information, wherein the operation instruction comprises playing, pausing, closing sound and the like, and the function information is deployed in a video end template and is used for realizing functions corresponding to the operation instruction. On the other hand, the template layer can expose the relevant configuration of the playing component to the user, so that the user can monitor the working state of the player component at the moment and flexibly call the functions of the player component, and also can translate the message information sent by the basic player into corresponding function functions and expose the function functions to the developer for use in combination with other services. Therefore, the basic player and the template layer in the application are clear, wherein the basic layer is used for generating a video playing result according to the video configuration parameters and acquiring an operation instruction input by a user, the operation instruction is sent to the template layer, the template layer is used for establishing connection with the basic player, and corresponding function information is triggered according to the operation instruction, so that the generation of the video playing result and the execution of the user operation instruction can be efficiently realized. Furthermore, the method provides higher flexibility for the operation of the user, and the user can not only input the operation instruction into the base player, but also directly and flexibly call the functions of the base player and monitor the base player in the template layer.
In one embodiment, a method for playing video is provided, fig. 2 is a flowchart of another method for playing video in the present application, and as shown in the figure, the flowchart includes the following steps:
step S210, obtaining an initial address corresponding to the page static resource; and translating the video configuration parameters into initial address suffixes, generating a target address according to the initial address and the initial address suffixes, and determining a target video format corresponding to the video configuration parameters from preset video formats according to the target address.
Specifically, in actual operation, the base player is deployed in the server as a page static resource, after the template layer obtains an initial address corresponding to the base player, video configuration parameters input by a user are translated into an initial address suffix, the initial address and the initial address suffix are spliced to obtain a target address, the target address is used for pointing to the corresponding base player, further, the base player obtains a query parameter in the target address, videos in different formats are generated according to the query parameter, and function functions of different video players are packaged into the same API function. Therefore, the function of directly accessing through the target address is provided, and by adopting the method, the user can directly use the provided address to complete the basic video playing requirement, so that the access efficiency of the developer and the user is improved. And the corresponding target video format can be selected from the preset basic player according to the video configuration parameters input by the user, so that the problem that all playing formats cannot be compatible in the prior art is solved.
In one embodiment, a method for playing video is provided, fig. 3 is a flowchart of another method for playing video in the present application, and as shown in the figure, the flowchart includes the following steps:
step S220, calling the page static resource according to the target address, and acquiring successful callback information generated by the page static resource under the condition that successful calling of the page static resource is detected; responding to the obtained successful callback information, and obtaining video end template indication information; and determining a corresponding target video end template from the initial video end templates according to the video segment template indication information and the video configuration parameters.
Specifically, after generating a target address, the template layer creates a channel in the form of an iframe to connect the target address, after the connection is successful, the basic player triggers a successful callback and sends successful callback information, the template layer receives the successful callback information and acquires video end template indication information, the video end template indication information can be used for indicating the environment type of a video playing end such as a current browser, the environment type of the playing end corresponds to the target video end template, template generation is carried out according to the environment type of the browser and video configuration parameters, and corresponding functions are added to a control of a template style. Furthermore, the static page resource in the application can be directly provided for users in the form of the target address or URL, and each user can watch live video on multi-terminal applications such as small programs, weChat, APP and web, or provide NPM package, original JS file and the like for users to adapt to secondary development of business. Therefore, the method and the device can be used for uniformly packaging different video formats (h 265, h254 and the like) and different video stream formats (HLS, FLV, rtsp and the like) by using the target address, namely the URL parameter, and provide the same set of access interface, so that the access efficiency of a developer is improved, and the access cost of the developer is reduced.
In one embodiment, the target video side template includes default attribute parameters, the video configuration parameters include target attribute parameters, and the video playing method further includes:
determining an initial video end template corresponding to the video configuration parameters from the initial video end templates based on the video configuration parameters;
when the default attribute parameters are detected to be the same as the target attribute parameters, carrying out template updating operation on the initial video end template according to the default attribute parameters, and generating a target video end template;
when the default attribute parameter is detected to be different from the target attribute parameter, performing template updating operation on the initial video end template according to the target attribute parameter, and generating a target video end template.
Specifically, the default attribute parameter and the target attribute parameter are used for indicating personalized settings of the video playing interface, such as color, key size, etc., wherein the default attribute parameter is a plurality of attributes in the video end template, and the target attribute parameter is a personalized parameter setting selected by a user from video configuration parameters input by the user. When the default attribute parameter is the same as the target attribute parameter, the target video end template can be directly generated according to the default attribute parameter, and when the default attribute parameter is different from the target attribute parameter, the default attribute parameter can be replaced by the corresponding target attribute parameter, namely, the template updating operation is performed on the initial video end template according to the target attribute parameter, so as to generate the target video end template. According to the method and the device, the basic playing library can be introduced by providing the set of template player, the set of formed template is exposed to the user, the developer can generate the personalized player component style meeting the requirements of the developer by using only a few configurations, an external unified interface is provided for the developer, the developer is allowed to pull the substitution code for secondary development, and the access difficulty and the access cost of the developer are greatly reduced.
In one embodiment, the video playing method further includes:
acquiring at least one player function corresponding to the player component, and packaging the player function to generate a player function set;
and calling a player function set according to the video configuration parameters and the target video end template, and generating a video playing result according to the target video format by utilizing the player function set.
Specifically, the base player includes a plurality of player components, such as an HLS player, an rtsp player, and an FLV player, to provide a playing function, and a plurality of player functions corresponding to the plurality of player components are encapsulated to obtain a player function group. When the template layer calls a player function corresponding to the video configuration parameter, the basic player calls the player function corresponding to the stream format according to the player of the stream format, and generates a video playing result according to the target video format. In the step, for the template layer, the corresponding playing function in the basic player is called, so that the function calling efficiency is improved, and the function calling method is convenient to use.
The embodiment also provides a specific embodiment of the video playing method, as shown in fig. 4, and fig. 4 is a schematic structural diagram of the video playing method in a preferred embodiment.
Firstly, taking actual operation as an example, a plurality of video end templates are deployed in a template layer, a base player is deployed in a server for page static resources, further, the template layer comprises a plurality of preset video end templates, the base player comprises a plurality of preset video formats, and the template layer and the base player are connected through an inline frame element like an iframe. The core function of the playing template layer is that, on one hand, the iframe is used for introducing url of the basic player, namely a target address, and relevant configuration of the playing component is exposed to a developer, so that the developer can monitor the state of the player component at the moment, and flexibly call the function of the player component, for example, a preset operation document is given to a user, the user can control the player according to the operation document, on the other hand, template style controls with different themes are generated according to the configuration of the user and the difference of the browser, and corresponding function response functions are added to the corresponding controls.
Secondly, after the template layer acquires the video configuration parameters input by the user, analyzing the video configuration parameters, translating the video configuration parameters into initial address suffixes, splicing the initial address suffixes to initial addresses corresponding to the basic player, obtaining target addresses corresponding to the video configuration parameters, and creating a channel like an iframe to connect the target addresses. The template layer continuously monitors the state of the basic player, if successful callback information sent by the basic player is obtained, namely the basic player triggers the successful callback, the template layer automatically obtains the environment of the current browser, namely the video end template indication information, determines a corresponding target video end template from the initial video end template according to the video end template indication information and the video configuration parameters, and adds a corresponding function to a control of the template style; if the connection between the basic player and the template layer fails, connection failure information is sent to a port corresponding to a preset related technician, and the related technician is reminded to process. After the connection is successful, the basic player acquires access parameters, such as query parameters, in the target address, determines a corresponding target video format from preset video formats according to the access parameters, and packages the function functions of different video players into the same API function, so that the access is convenient. After the basic player acquires an operation instruction (such as start, pause, screenshot and the like) input by a user, the operation instruction is converted into preset message information and the message information is transmitted to a template layer, the template layer triggers target function information of drinking according to the message information, the operation of the user is achieved, further, the user or a developer can monitor the state of the basic player at the moment through the template layer, and the function of the basic player can be directly and flexibly called.
Finally, when operations such as maintenance and upgrading are needed, the template layer and the basic player are not perceived by an external user or an external developer, namely the external user or the external developer can directly use the latest basic library code without modifying the service code, and code change cost caused by the operations such as updating and maintenance of the developer is reduced.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a video playing device for realizing the video playing method designed above. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the video playing device provided below may refer to the limitation of the video playing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, there is provided a video playing apparatus including: an acquisition module 51, a calculation module 52 and a generation module 53, wherein:
the acquisition module 51 acquires preset video configuration parameters and at least two initial video end templates; determining page static resources; the page static resource comprises at least two preset video formats;
the calculation module 52 determines a target video format corresponding to the video configuration parameter from the preset video formats by using the page static resource based on the video configuration parameter, and determines a target video end template corresponding to the video configuration parameter from the initial video end template;
the generating module 53 generates a video playing result according to the target video format and the target video end template.
Specifically, the obtaining module 51 is connected to the calculating module 52, where the obtaining module 51 is configured to obtain preset video configuration parameters, where the video configuration parameters are used to indicate a required video stream format and preset video end templates such as personalized information of a user, including an H5 end template and a web end template, and if other types of templates are required to be added, the page static resource is applied to the application in the form of a video player, and the video player includes multiple preset video formats, such as HLS, FLV, rtsp, and the like, and if other types of templates are required to be added, the application can be performed. The obtaining module 51 sends the video configuration parameters to the calculating module 52, and the calculating module 52 selects a corresponding target video format from a plurality of page static resources, that is, a plurality of video formats of the base player according to the video configuration parameters, and determines a target video end template corresponding to the video configuration parameters from preset video end templates. The calculation module 52 sends the target video format and the target video end template to the generation module 53, and the generation module 53 generates a video playing result according to the target video format and the target video end template.
By the video playing device, on one hand, differences used in different port environments do not need to be considered in advance, all playing formats and playing components at all ends can be compatible, so that the docking cost of a developer can be directly reduced, and the efficiency of the developer is improved; on the other hand, the video configuration parameters input by the user can prescribe the requirements of the user in multiple aspects, so that the flexibility is high, and furthermore, the scheme provides multiple adaptive port environments and multiple adaptive video formats, so that a developer can generate a version conforming to the service through simple configuration, and the access difficulty and the access cost of the user or the developer are greatly reduced.
The modules in the video playing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a video playback method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the video playback device to which the present application is applied, and that a particular video playback device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A video playing method, the method comprising:
acquiring preset video configuration parameters and at least two initial video end templates;
determining page static resources; the page static resource comprises at least two preset video formats;
determining a target video format corresponding to the video configuration parameters from the preset video formats by utilizing the page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end template;
and generating a video playing result according to the target video format and the target video end template.
2. The method of claim 1, wherein the video play result includes at least two pieces of function information, and wherein after generating the video play result according to the target video format and the target video end template, the method further comprises:
acquiring a preset operation instruction, and triggering corresponding objective function information in the function information according to the operation instruction And generating control information for the video playing result according to the target function information.
3. The method of claim 1, wherein the determining, based on the video configuration parameters, a target video format from the preset video formats that corresponds to the video configuration parameters comprises:
acquiring an initial address corresponding to the page static resource;
and translating the video configuration parameters into initial address suffixes, generating a target address according to the initial address and the initial address suffixes, and determining a target video format corresponding to the video configuration parameters from the preset video formats according to the target address.
4. The method of claim 3, wherein after generating the target address from the initial address and the initial address suffix, the method further comprises,
calling the page static resource according to the target address, and acquiring successful callback information generated by the page static resource under the condition that successful calling of the page static resource is detected;
responding to the obtained successful callback information, and obtaining video end template indication information;
and determining the corresponding target video end template from the initial video end templates according to the video end template indication information and the video configuration parameters.
5. The method of claim 1, wherein the target video-side template includes default attribute parameters, the video configuration parameters include target attribute parameters, the method further comprising:
determining an initial video end template corresponding to the video configuration parameter from the initial video end templates based on the video configuration parameter;
when the default attribute parameters are detected to be the same as the target attribute parameters, carrying out template updating operation on the initial video end template according to the default attribute parameters, and generating the target video end template;
and when the default attribute parameters are detected to be different from the target attribute parameters, performing template updating operation on the initial video end template according to the target attribute parameters, and generating the target video end template.
6. The method of any one of claims 1 to 5, wherein generating a video play result from the target video format and the target video side template comprises:
acquiring at least one player function corresponding to a player component, and packaging the player function to generate a player function set;
and calling the player function set according to the video configuration parameters and the target video end template, and generating a video playing result according to the target video format by utilizing the player function set.
7. A video playback device, the device comprising:
the acquisition module acquires preset video configuration parameters and at least two initial video end templates; determining page static resources; the page static resource comprises at least two preset video formats;
the calculation module is used for determining a target video format corresponding to the video configuration parameters from the preset video formats by utilizing the page static resources based on the video configuration parameters, and determining a target video end template corresponding to the video configuration parameters from the initial video end templates;
and the generation module is used for generating a video playing result according to the target video format and the target video end template.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310353614.7A 2023-03-31 2023-03-31 Video playing method, device, computer equipment and storage medium Pending CN116567347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310353614.7A CN116567347A (en) 2023-03-31 2023-03-31 Video playing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310353614.7A CN116567347A (en) 2023-03-31 2023-03-31 Video playing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116567347A true CN116567347A (en) 2023-08-08

Family

ID=87486954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310353614.7A Pending CN116567347A (en) 2023-03-31 2023-03-31 Video playing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116567347A (en)

Similar Documents

Publication Publication Date Title
JP6740373B2 (en) Page component dynamic layout
JP2020511711A (en) Message processing method, storage medium, and computer device
US20230362430A1 (en) Techniques for managing generation and rendering of user interfaces on client devices
CN111580879A (en) Applet running method and device, electronic equipment and computer storage medium
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
US9906626B2 (en) Resource demand-based network page generation
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN111475754B (en) Page loading method, device, terminal and storage medium
CN112121411A (en) Vibration control method, device, electronic equipment and computer readable storage medium
EP3125541A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
CN114168853A (en) Data visualization display method, device, medium and electronic equipment
CN112214250A (en) Application program assembly loading method and device
JP2005228183A (en) Program execution method and computer system for executing the program
CN113727189A (en) Media playing method and system supporting multiple streaming media transmission protocols
JP2012079188A (en) Style information processor and method
CN116567347A (en) Video playing method, device, computer equipment and storage medium
CN114862470A (en) Advertisement resource adaptation method and device, computer equipment and storage medium
CN113709541A (en) WEB-based multi-terminal equipment interaction method, system and terminal equipment
CN112330760A (en) Picture transcoding method, device, equipment and storage medium
CN113467776A (en) Access method and device of equipment, storage medium and electronic device
CN111857782A (en) Interface updating method and device, computer equipment and storage medium
JP2005070924A (en) Service providing system, service providing method, service providing device, and attribute information providing device
EP3872630B1 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN112306324B (en) Information processing method, apparatus, device and medium
CN109725887B (en) Data interaction method and device based on message research and development framework and terminal equipment

Legal Events

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