WO2023284295A1 - Method and system for processing webpage video background of mobile end, and storage medium - Google Patents

Method and system for processing webpage video background of mobile end, and storage medium Download PDF

Info

Publication number
WO2023284295A1
WO2023284295A1 PCT/CN2022/076306 CN2022076306W WO2023284295A1 WO 2023284295 A1 WO2023284295 A1 WO 2023284295A1 CN 2022076306 W CN2022076306 W CN 2022076306W WO 2023284295 A1 WO2023284295 A1 WO 2023284295A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
browser
interface
background
frame
Prior art date
Application number
PCT/CN2022/076306
Other languages
French (fr)
Chinese (zh)
Inventor
魏陈南
唐斌
Original Assignee
稿定(厦门)科技有限公司
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 稿定(厦门)科技有限公司 filed Critical 稿定(厦门)科技有限公司
Publication of WO2023284295A1 publication Critical patent/WO2023284295A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Definitions

  • the invention relates to the field of webpage video background processing, and specifically refers to a mobile terminal webpage video background processing method, system, and storage medium.
  • Webpage video background is that the browser uses dynamic video as the background of text, title, etc., showing a dynamic effect.
  • the present invention provides a method, system, and storage medium for processing the video background of a mobile web page, which can effectively solve the above-mentioned problems in the prior art.
  • a mobile terminal webpage video background processing method comprising the following steps:
  • step S2 acquire the userAgent attribute of the browser, if the browser supports standard video elements and the video format type belongs to the first video format collection, go to step S3, otherwise, go to step S4;
  • step S4 the video file is decoded and drawn into multiple pictures frame by frame through the Canvas interface.
  • step S4 the decoding of the video file and rendering the video file frame by frame into multiple pictures is specifically:
  • the browser capability detection is performed on the browser, and an appropriate browser interface supported by the browser is selected to decode the video file and draw it into multiple pictures frame by frame.
  • the browser capability detection is performed on the browser, and the support of the browser to the Web Workers interface and the WebGL interface is obtained.
  • the browser interface supported by the selected browser is specifically:
  • the browser decodes the video file through the main program
  • the browser If the browser supports the Web Workers interface, the browser decodes the video file through the Web Workers interface.
  • Canvas WebGI interface is rendered by GPU.
  • the first set of video formats includes at least MP4 format
  • the second set of video formats includes at least TS format.
  • a mobile terminal webpage video background processing system including:
  • An acquisition module configured to acquire a video file and a video format type of the video file, wherein the video format type includes a first video format collection and a second video format collection;
  • the browser attribute judging module is used to obtain the browser userAgent attribute, judge whether the browser supports standard video elements and the video format type belongs to the first video format collection, if so, go to step S3, otherwise go to step S4 ;
  • a standard video element playback module used to call the standard video element to play the video file as the video background if the browser supports the standard video element
  • the drawing and playing module is used to decode the video file and draw it into multiple pictures frame by frame if the browser does not support standard video elements, and play the pictures in time sequence as the video background.
  • the present invention provides following effect and/or advantage:
  • the present invention adopts different video processing strategies for different browsers by acquiring the browser userAgent attribute. In this way, it is compatible with mobile browsers and realizes webpage video background.
  • the present invention decodes the video file and draws it into multiple pictures frame by frame, plays the pictures in time sequence, realizes the webpage video background, and can support different browsers and different video file formats , Different hardware devices realize web page video background.
  • the visual effect of the present invention is better, but the video is not limited by this, it can use complete RGB24 bit color (16777216 kinds of colors) to represent the picture, so the visual effect of the video background will be better.
  • the present invention can be used for playback control, but GIF pictures cannot be used for playback control, but the present invention can realize the playback control of the video background through operations such as video playback and pause.
  • the present invention can use WebGL to directly generate the texture of video images for browsers that support WebGL capabilities, and can directly use GPU rendering capabilities to improve the efficiency of image rendering and rendering, thereby reducing resource production.
  • WebGL to directly generate the texture of video images for browsers that support WebGL capabilities
  • GPU rendering capabilities to improve the efficiency of image rendering and rendering, thereby reducing resource production.
  • GIF video resources it has richer resources and lower production costs.
  • optimization operations such as compression, frame extraction, cropping, etc., which greatly reduces the threshold for generation.
  • the present invention can transfer the work of video decoding to the Web Workers thread for browsers that support Web Workers, so as to reduce the resource occupation of the browser's main process and improve the efficiency of program execution.
  • the work of video decoding can be handed over to the main program to ensure the generation of background video.
  • Figure 1 is a screenshot of the webpage video background displayed by different mobile browsers.
  • Fig. 2 is a schematic diagram of the main flow of the present invention.
  • Fig. 3 is a schematic diagram of the overall flow of the present invention.
  • FIG. 4 is a schematic diagram of a frame picture set.
  • a mobile webpage video background processing method includes the following steps:
  • the video format type includes a first video format collection and a second video format collection; in this embodiment, after the video file is obtained, the video file is parsed
  • the information includes at least the type of video format, such as MP4, TS, AVI, etc.
  • This embodiment does not require the format of the video file, and the format of the video file is obtained to facilitate the subsequent adoption of corresponding strategies.
  • standard Video elements can be directly decoded Video files in MP4 format, but cannot decode video files in TS format for example, so further confirming the format of the video file in this step is beneficial for subsequent processing steps to carry out different distinguishing processes for different video files.
  • the browser userAgent attribute refers to the information of the browser, including hardware platform, system software, application software, and user personal preferences.
  • the browser name, browser version number, rendering engine, and operating system can be analyzed through the browser userAgent attribute.
  • the method of use can be directly opened and viewed, or the browser userAgent attribute of other browsers can be copied for analysis.
  • the browser userAgent attribute for iphone6 For example, if you get the browser userAgent attribute for iphone6, you can get, for example: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143Safari/601.1"
  • a row of data, including the hardware platform is iPhone, using AppleWebKit, Version/9.0 mobile terminal, and the browser is Safari/601.1.
  • Different browsers have different capabilities to support the format of video files. Different browsers can be distinguished through the browser userAgent attribute to determine whether the browser supports standard video elements, and different backgrounds are used for browsers that support and do not support Video implementation strategy.
  • the video format is TS format, and the video is decoded and drawn into multiple pictures frame by frame.
  • a frame picture set is obtained, and the frame picture set is named according to the frame order.
  • this embodiment there is no need to adjust the resolution of the picture, and it only needs to be the same as the original resolution of the video file.
  • this embodiment is not limited to the fact that the GIF format can only use 8-bit colors (256 colors) to represent pictures, so as to achieve better visual effects.
  • step S4 the video file is decoded and drawn into multiple pictures frame by frame through the Canvas interface.
  • the Canvas interface enables users to draw various graphics in the Web.
  • the Canvas interface is a pixel-based drawing, which is equivalent to the HTML5 node of the sketchpad. Users can operate the drawing with JS and save the resulting image in .png or .jpg format.
  • step S4 the decoding of the video file and rendering the video file frame by frame into multiple pictures is specifically:
  • the browser capability detection is performed on the browser, and an appropriate browser interface supported by the browser is selected to decode the video file and draw it into multiple pictures frame by frame.
  • the browser capability detection is carried out to the browser, and the support situation of the browser to the Web Workers interface and the WebGL interface is obtained.
  • Browser capability detection can also be called feature detection. Its goal is to identify browser capabilities. For example, IE8 browsers and below are not compatible with getElementsByClassName. In order to determine whether the current browser supports getElementsByClassName, perform capability detection on the browser. Create a getElementsByClassName element that returns true if the browser is compatible with the element. Through browser capability detection, it is possible to detect browser support for various elements and interfaces.
  • the browser capability detection method belongs to the prior art, and does not belong to the core improvement point of this application, so it will not be expanded here in detail.
  • This embodiment obtains the support situation of described browser to Web Workers interface, WebGL interface by browser ability detection, and Web Worker interface provides a kind of simple method for Web content running script in background thread, and thread can carry out task and Do not interfere with the user interface.
  • the resource occupation of the browser's main process can be reduced through the Web Worker interface.
  • WebGL can invoke the rendering capabilities of the GPU to improve the efficiency of image rendering. Therefore, different strategies are made for the browser's support for the Web Workers interface and the WebGL interface. The specific strategies are as follows.
  • the browser interface supported by the selected browser is specifically:
  • the browser decodes the video file through the main program
  • the browser If the browser supports the Web Workers interface, the browser decodes the video file through the Web Workers interface.
  • the browser needs to create and select a corresponding process to run the corresponding task. Choosing the right thread can perform tasks without interfering with the user interface. For the situation that the browser supports the Web Workers interface, the browser can create and select a corresponding process to decode the video file through the Web Workers interface, so as to optimize the decoding video efficiency. And for the situation that does not support described Web Workers interface, need browser to select main program to decode described video file, thereby guarantee the carrying out of decoding.
  • Canvas WebGI interface is rendered by GPU.
  • the first set of video formats includes at least MP4 format
  • the second set of video formats includes at least TS format.
  • the first video format collection belongs to the video format supported by the standard video element, such as MP4, and some browsers may also support formats such as WebM
  • the second video format is a video that is not supported by the standard video element Formats, such as TS, AVI and other formats.
  • a mobile webpage video background processing system comprising:
  • An acquisition module configured to acquire a video file and a video format type of the video file, wherein the video format type includes a first video format collection and a second video format collection;
  • the browser attribute judging module is used to obtain the browser userAgent attribute, judge whether the browser supports standard video elements and the video format type belongs to the first video format collection, if so, go to step S3, otherwise go to step S4 ;
  • a standard video element playback module used to call the standard video element to play the video file as the video background if the browser supports the standard video element
  • the drawing and playing module is used to decode the video file and draw it into multiple pictures frame by frame if the browser does not support standard video elements, and play the pictures in time sequence as the video background.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the webpage video background processing method described in Embodiment 1 is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a method and system for processing a webpage video background of a mobile end, and a storage medium. The method includes the following steps: S1, acquiring a video file and a video format type of the video file, wherein the video format type comprises a first video format set and a second video format set; S2, acquiring a userAgent attribute of a browser, and if the browser supports a standard video element and the video format type belongs to the first video format set, proceeding to step S3, otherwise, proceeding to step S4; S3, calling the standard video element to play the video file, such that same serves as a video background; and S4, decoding the video file and drawing same into a plurality of pictures frame by frame, and playing the pictures according to a time sequence, such that same serve as the video background. By means of the present invention, a userAgent attribute of a browser is acquired, such that different video processing strategies are taken for different browsers. Therefore, a video is compatible with a mobile-end browser, thereby realizing a webpage video background.

Description

一种移动端网页视频背景处理方法、系统、储存介质A method, system, and storage medium for processing the video background of a mobile web page 技术领域technical field
本发明涉及网页视频背景处理领域,具体指有一种移动端网页视频背景处理方法、系统、储存介质。The invention relates to the field of webpage video background processing, and specifically refers to a mobile terminal webpage video background processing method, system, and storage medium.
背景技术Background technique
网页视频背景是浏览器以动态视频作为文字、标题等的背景,呈现出动态效果。Webpage video background is that the browser uses dynamic video as the background of text, title, etc., showing a dynamic effect.
目前移动端浏览器对于Web标准实现并不统一,使用原生的video元素实现网页的视频背景会有很多兼容性问题,诸如:视频无法自动播放、视频元素作为弹窗元素无法被覆盖、无法隐藏播放按钮、视频会默认全屏播放等,从而导致网页视频背景在移动端浏览器失效。如图1所示,图1中左侧的图片为网页视频背景正常显示的移动端截图,中间和右边的图片为出现兼容性问题导致图层错位或无法自动播放出现的情况的移动端截图。At present, mobile browsers are not uniform in the implementation of web standards. Using native video elements to implement video backgrounds on web pages will have many compatibility issues, such as: videos cannot be played automatically, video elements cannot be covered as pop-up elements, and playback cannot be hidden Buttons and videos will be played in full screen by default, which will cause the webpage video background to fail in mobile browsers. As shown in Figure 1, the picture on the left in Figure 1 is a screenshot of the mobile terminal where the background of the webpage video is displayed normally, and the pictures in the middle and right are screenshots of the mobile terminal where compatibility issues cause layers to be misplaced or cannot be played automatically.
针对上述的现有技术存在的问题设计一种移动端网页视频背景处理方法、系统、储存介质是本发明研究的目的。It is the purpose of the present invention to design a mobile terminal webpage video background processing method, system, and storage medium for the above-mentioned problems in the prior art.
发明内容Contents of the invention
针对上述现有技术存在的问题,本发明在于提供一种移动端网页视频背景处理方法、系统、储存介质,能够有效解决上述现有技术存在的问题。In view of the above-mentioned problems in the prior art, the present invention provides a method, system, and storage medium for processing the video background of a mobile web page, which can effectively solve the above-mentioned problems in the prior art.
本发明的技术方案是:Technical scheme of the present invention is:
一种移动端网页视频背景处理方法,包含以下步骤:A mobile terminal webpage video background processing method, comprising the following steps:
S1,获取视频文件及所述视频文件的视频格式类型,所述视频格式类型包括第一视频格式合集、第二视频格式合集;S1. Obtain a video file and a video format type of the video file, where the video format type includes a first video format collection and a second video format collection;
S2,获取浏览器userAgent属性,若所述浏览器支持标准video元素且所述视频格式类型属于第一视频格式合集,转至步骤S3,其它,转至步骤S4;S2, acquire the userAgent attribute of the browser, if the browser supports standard video elements and the video format type belongs to the first video format collection, go to step S3, otherwise, go to step S4;
S3,调用标准video元素播放所述视频文件作为视频背景;S3, calling the standard video element to play the video file as the video background;
S4,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片作为视频背景。S4. Decode the video file and draw it frame by frame into multiple pictures, and play the pictures in time sequence as the video background.
进一步地,步骤S4中,所述视频文件解码并通过Canvas接口逐帧绘制成多张图片。Further, in step S4, the video file is decoded and drawn into multiple pictures frame by frame through the Canvas interface.
进一步地,步骤S4中,所述将所述视频文件解码并逐帧绘制成多张图片具体为:Further, in step S4, the decoding of the video file and rendering the video file frame by frame into multiple pictures is specifically:
对所述浏览器进行浏览器能力检测,选用浏览器支持且合适的浏览器接口将所述视频文件解码并逐帧绘制成多张图片。The browser capability detection is performed on the browser, and an appropriate browser interface supported by the browser is selected to decode the video file and draw it into multiple pictures frame by frame.
进一步地,对所述浏览器进行浏览器能力检测,获取所述浏览器对Web Workers接口、WebGL接口的支持支持情况。Further, the browser capability detection is performed on the browser, and the support of the browser to the Web Workers interface and the WebGL interface is obtained.
进一步地,所述选用浏览器支持且合适的浏览器接口具体为:Further, the browser interface supported by the selected browser is specifically:
若所述浏览器不支持所述Web Workers接口也不支持所述WebGL接口,选用所述浏览器的Canvas 2d接口;If described browser does not support described Web Workers interface and also does not support described WebGL interface, select the Canvas 2d interface of described browser for use;
若所述浏览器不支持所述Web Workers接口、支持所述WebGL接口,选用所述浏览器的Canvas WebGI接口;If described browser does not support described Web Workers interface, supports described WebGL interface, selects the Canvas WebGI interface of described browser for use;
若所述浏览器支持所述Web Workers接口、不支持所述WebGL接口,选 用所述浏览器的Canvas 2d接口;If described browser supports described Web Workers interface, does not support described WebGL interface, selects the Canvas 2d interface of described browser for use;
若所述浏览器支持所述Web Workers接口也支持所述WebGL接口,选用所述浏览器的Canvas WebGI接口。If the browser supports the Web Workers interface and also supports the WebGL interface, select the Canvas WebGI interface of the browser.
进一步地,further,
若所述浏览器不支持所述Web Workers接口,所述浏览器通过主程序解码所述视频文件;If the browser does not support the Web Workers interface, the browser decodes the video file through the main program;
若所述浏览器支持所述Web Workers接口,所述浏览器通过Web Workers接口解码所述视频文件。If the browser supports the Web Workers interface, the browser decodes the video file through the Web Workers interface.
进一步地,所述Canvas WebGI接口通过GPU渲染。Further, the Canvas WebGI interface is rendered by GPU.
进一步地,所述第一视频格式合集至少包含MP4格式,所述第二视频格式合集至少包含TS格式。Further, the first set of video formats includes at least MP4 format, and the second set of video formats includes at least TS format.
进一步提供一种移动端网页视频背景处理系统,包含:Further provide a mobile terminal webpage video background processing system, including:
获取模块,用于获取视频文件及所述视频文件的视频格式类型,所述视频格式类型包括第一视频格式合集、第二视频格式合集;An acquisition module, configured to acquire a video file and a video format type of the video file, wherein the video format type includes a first video format collection and a second video format collection;
浏览器属性判断模块,用于获取浏览器userAgent属性,判断所述浏览器是否支持标准video元素且所述视频格式类型属于第一视频格式合集,若是则转至步骤S3,若否则转至步骤S4;The browser attribute judging module is used to obtain the browser userAgent attribute, judge whether the browser supports standard video elements and the video format type belongs to the first video format collection, if so, go to step S3, otherwise go to step S4 ;
标准video元素播放模块,用于若所述浏览器支持标准video元素,调用标准video元素播放所述视频文件作为视频背景;A standard video element playback module, used to call the standard video element to play the video file as the video background if the browser supports the standard video element;
绘图播放模块,用于若所述浏览器不支持标准video元素,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片作为视频背景。The drawing and playing module is used to decode the video file and draw it into multiple pictures frame by frame if the browser does not support standard video elements, and play the pictures in time sequence as the video background.
进一步提供一种计算机可读存储介质,存储有计算机程序,所述计算机程 序被处理器执行时实现上述所述的网页视频背景处理处理方法。Further provide a kind of computer-readable storage medium, store computer program, when described computer program is executed by processor, realize above-mentioned web page video background processing processing method.
因此,本发明提供以下的效果和/或优点:Therefore, the present invention provides following effect and/or advantage:
本发明通过获取浏览器userAgent属性,对不同的浏览器采取不同的视频处理策略。从而兼容移动端浏览器,实现网页视频背景。The present invention adopts different video processing strategies for different browsers by acquiring the browser userAgent attribute. In this way, it is compatible with mobile browsers and realizes webpage video background.
本发明对不兼容的移动端浏览器,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片,实现网页视频背景,能够对不同的浏览器、不同的视频文件格式、不同的硬件设备实现网页视频背景。For incompatible mobile browsers, the present invention decodes the video file and draws it into multiple pictures frame by frame, plays the pictures in time sequence, realizes the webpage video background, and can support different browsers and different video file formats , Different hardware devices realize web page video background.
本发明的视觉效果更好,而视频则不受此限制,其可以使用完整的RGB24位色(16777216种颜色)来表示图片,所以视频背景的视觉效果会更好。本发明可以做播放控制,GIF图片无法做播放控制,而本发明可以通过视频的播放暂停等操作来实现视频背景的播放控制。The visual effect of the present invention is better, but the video is not limited by this, it can use complete RGB24 bit color (16777216 kinds of colors) to represent the picture, so the visual effect of the video background will be better. The present invention can be used for playback control, but GIF pictures cannot be used for playback control, but the present invention can realize the playback control of the video background through operations such as video playback and pause.
本发明通过对不同的浏览器的能力情况,对于支持WebGL能力的浏览器,可使用WebGL来直接生成视频图片的纹理,可直接使用GPU渲染的能力以提高图片绘制渲染的效率,从而降低资源生产成本,相对与GIF视频资源更丰富且生产成本更低。而GIF在生产过程往需要考虑体积的影响需要做很多诸如:压缩、抽帧、裁剪等优化操作,大大降低了生成门槛。According to the capabilities of different browsers, the present invention can use WebGL to directly generate the texture of video images for browsers that support WebGL capabilities, and can directly use GPU rendering capabilities to improve the efficiency of image rendering and rendering, thereby reducing resource production. Compared with GIF video resources, it has richer resources and lower production costs. However, in the production process of GIF, it is often necessary to consider the impact of volume and to do a lot of optimization operations such as compression, frame extraction, cropping, etc., which greatly reduces the threshold for generation.
本发明通过对于支持Web Workers的浏览器可将视频解码的工作交由Web Workers线程来完成,减小对浏览器主程的资源占用,以提升程序执行的效率,对于不支持Web Workers的浏览器可将视频解码的工作交由主程序来完成,保证背景视频的生成。The present invention can transfer the work of video decoding to the Web Workers thread for browsers that support Web Workers, so as to reduce the resource occupation of the browser's main process and improve the efficiency of program execution. For browsers that do not support Web Workers The work of video decoding can be handed over to the main program to ensure the generation of background video.
应当明白,本发明的上文的概述和下面的详细说明是示例性和解释性的,并且意在提供对如要求保护的本发明的进一步的解释。It is to be understood that both the foregoing general description and the following detailed description of the invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.
附图说明Description of drawings
图1为不同的移动端浏览器显示的网页视频背景截图。Figure 1 is a screenshot of the webpage video background displayed by different mobile browsers.
图2为本发明的主流程示意图。Fig. 2 is a schematic diagram of the main flow of the present invention.
图3为本发明的总流程示意图。Fig. 3 is a schematic diagram of the overall flow of the present invention.
图4为帧图片集的示意图。FIG. 4 is a schematic diagram of a frame picture set.
具体实施方式detailed description
为了便于本领域技术人员理解,现将实施例结合附图对本发明的结构作进一步详细描述:In order to facilitate the understanding of those skilled in the art, the structure of the present invention will be further described in detail with the embodiments in conjunction with the accompanying drawings:
参考图2-3,一种移动端网页视频背景处理方法,包含以下步骤:Referring to Figure 2-3, a mobile webpage video background processing method includes the following steps:
S1,获取视频文件及所述视频文件的视频格式类型,所述视频格式类型包括第一视频格式合集、第二视频格式合集;本实施例中,获取所述视频文件后,解析所述视频文件的信息,信息至少包括视频格式类型,例如MP4、TS、AVI等,本实施例对视频文件的格式没有要求,获取视频文件的格式是为了便于后续采用相应的策略,例如标准Video元素可以直接解码MP4格式的视频文件,而不能解码例如TS格式的视频文件,因此在此步骤进一步确认视频文件的格式,有利于后续的处理步骤对不同的视频文件进行不同的区别处理。S1. Obtain a video file and the video format type of the video file. The video format type includes a first video format collection and a second video format collection; in this embodiment, after the video file is obtained, the video file is parsed The information includes at least the type of video format, such as MP4, TS, AVI, etc. This embodiment does not require the format of the video file, and the format of the video file is obtained to facilitate the subsequent adoption of corresponding strategies. For example, standard Video elements can be directly decoded Video files in MP4 format, but cannot decode video files in TS format for example, so further confirming the format of the video file in this step is beneficial for subsequent processing steps to carry out different distinguishing processes for different video files.
S2,获取浏览器userAgent属性,若所述浏览器支持标准video元素且所述视频格式类型属于第一视频格式合集,转至步骤S3,其它,转至步骤S4。浏览器userAgent属性是指浏览器的信息,包括硬件平台、系统软件、应用软件和用户个人偏好,通过浏览器userAgent属性可以分析出浏览器名称、浏览器版本号、渲染引擎、操作系统。使用方法直接打开查看即可,也可以 把其它浏览器的浏览器userAgent属性复制过来进行分析。例如对iphone6获取浏览器userAgent属性,可得到例如:“Mozilla/5.0(iPhone;CPU iPhone OS 9_1like Mac OS X)AppleWebKit/601.1.46(KHTML,like Gecko)Version/9.0 Mobile/13B143Safari/601.1”这样的一排数据,其中包括了硬件平台是iPhone,采用AppleWebKit,版本Version/9.0移动端,浏览器是Safari/601.1。不同的浏览器对视频文件的格式支持的能力不同,通过浏览器userAgent属性可区分出不同的浏览器,判断浏览器是否支持标准的video元素,针对支持与不支持的浏览器分别走不同的背景视频实现策略。S2. Obtain the userAgent attribute of the browser. If the browser supports standard video elements and the video format type belongs to the first video format collection, go to step S3; otherwise, go to step S4. The browser userAgent attribute refers to the information of the browser, including hardware platform, system software, application software, and user personal preferences. The browser name, browser version number, rendering engine, and operating system can be analyzed through the browser userAgent attribute. The method of use can be directly opened and viewed, or the browser userAgent attribute of other browsers can be copied for analysis. For example, if you get the browser userAgent attribute for iphone6, you can get, for example: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143Safari/601.1" A row of data, including the hardware platform is iPhone, using AppleWebKit, Version/9.0 mobile terminal, and the browser is Safari/601.1. Different browsers have different capabilities to support the format of video files. Different browsers can be distinguished through the browser userAgent attribute to determine whether the browser supports standard video elements, and different backgrounds are used for browsers that support and do not support Video implementation strategy.
S3,调用标准video元素播放所述视频文件作为视频背景;支持标准Video元素行为的浏览器使用video元素播放MP4格式视频的方式实现视频背景。标准video元素是HTML5中专门用来播放网络上的视频或者电影,使用video元素进行播放时不再需要使用其他的插件,只要浏览器支持HTML5即可。mp4格式的视频在IE9.0以上、Safari3.1以上、iso5.0以上、Android4.0以上均可通过调用标准video元素播放,无需其他插件或代码。S3, calling the standard video element to play the video file as the video background; browsers that support the behavior of the standard Video element use the video element to play the video in MP4 format to implement the video background. The standard video element is specially used in HTML5 to play videos or movies on the Internet. When using the video element to play, no other plug-ins are needed, as long as the browser supports HTML5. Video in mp4 format can be played by calling the standard video element on IE9.0 or above, Safari3.1 or above, iso5.0 or above, and Android4.0 or above, without any other plug-ins or codes.
S4,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片作为视频背景。本实施例中,视频格式为TS格式,视频解码并逐帧绘制成多张图片,如图4所示,获得帧图片集,并且帧图片集按照帧顺序命名。本实施例中,无需对图片进行分辨率调整,和视频文件原始的分辨率相同即可。与传统的视频转换为GIF相比,本实施例不受限于GIF格式只能使用8位色(256种颜色)来表示图片,实现更好的视觉效果。S4. Decode the video file and draw it frame by frame into multiple pictures, and play the pictures in time sequence as the video background. In this embodiment, the video format is TS format, and the video is decoded and drawn into multiple pictures frame by frame. As shown in FIG. 4 , a frame picture set is obtained, and the frame picture set is named according to the frame order. In this embodiment, there is no need to adjust the resolution of the picture, and it only needs to be the same as the original resolution of the video file. Compared with the traditional conversion of video to GIF, this embodiment is not limited to the fact that the GIF format can only use 8-bit colors (256 colors) to represent pictures, so as to achieve better visual effects.
进一步地,步骤S4中,所述视频文件解码并通过Canvas接口逐帧绘制成多张图片。Canvas接口使得用户可以在Web中绘制各种图形。Canvas接口为 基于像素的绘图,相当于画板的HTML5节点,用户可以以JS操作绘图,能够以.png或.jpg格式保存结果图像。Further, in step S4, the video file is decoded and drawn into multiple pictures frame by frame through the Canvas interface. The Canvas interface enables users to draw various graphics in the Web. The Canvas interface is a pixel-based drawing, which is equivalent to the HTML5 node of the sketchpad. Users can operate the drawing with JS and save the resulting image in .png or .jpg format.
进一步地,步骤S4中,所述将所述视频文件解码并逐帧绘制成多张图片具体为:Further, in step S4, the decoding of the video file and rendering the video file frame by frame into multiple pictures is specifically:
对所述浏览器进行浏览器能力检测,选用浏览器支持且合适的浏览器接口将所述视频文件解码并逐帧绘制成多张图片。The browser capability detection is performed on the browser, and an appropriate browser interface supported by the browser is selected to decode the video file and draw it into multiple pictures frame by frame.
进一步地,对所述浏览器进行浏览器能力检测,获取所述浏览器对Web Workers接口、WebGL接口的支持情况。Further, the browser capability detection is carried out to the browser, and the support situation of the browser to the Web Workers interface and the WebGL interface is obtained.
浏览器能力检测又可以称为特性检测,它的目标是识别浏览器的能力,例如在IE8浏览器及以下,不兼容getElementsByClassName,那么为了判断当前浏览器是否支持getElementsByClassName,对浏览器进行能力检测,创建一个getElementsByClassName元素,若浏览器兼容该元素则返回true。通过浏览器能力检测,可以检测浏览器对各个元素、接口的支持情况。浏览器能力检测的方法属于现有技术,并且不属于本申请的核心改进点,在此不详细展开。本实施例通过浏览器能力检测获取所述浏览器对Web Workers接口、WebGL接口的支持支持情况,Web Worker接口为Web内容在后台线程中运行脚本提供了一种简单的方法,线程可以执行任务而不干扰用户界面。通过Web Worker接口可以减小对浏览器主程的资源占用。WebGL可以调用GPU的渲染能力以提高图片绘制渲染的效率。从而对浏览器对Web Workers接口、WebGL接口的支持情况做出不同的策略,具体策略如下所述。Browser capability detection can also be called feature detection. Its goal is to identify browser capabilities. For example, IE8 browsers and below are not compatible with getElementsByClassName. In order to determine whether the current browser supports getElementsByClassName, perform capability detection on the browser. Create a getElementsByClassName element that returns true if the browser is compatible with the element. Through browser capability detection, it is possible to detect browser support for various elements and interfaces. The browser capability detection method belongs to the prior art, and does not belong to the core improvement point of this application, so it will not be expanded here in detail. This embodiment obtains the support situation of described browser to Web Workers interface, WebGL interface by browser ability detection, and Web Worker interface provides a kind of simple method for Web content running script in background thread, and thread can carry out task and Do not interfere with the user interface. The resource occupation of the browser's main process can be reduced through the Web Worker interface. WebGL can invoke the rendering capabilities of the GPU to improve the efficiency of image rendering. Therefore, different strategies are made for the browser's support for the Web Workers interface and the WebGL interface. The specific strategies are as follows.
进一步地,所述选用浏览器支持且合适的浏览器接口具体为:Further, the browser interface supported by the selected browser is specifically:
若所述浏览器不支持所述Web Workers接口也不支持所述WebGL接口, 选用所述浏览器的Canvas 2d接口;If the browser does not support the Web Workers interface and does not support the WebGL interface, select the Canvas 2d interface of the browser;
若所述浏览器不支持所述Web Workers接口、支持所述WebGL接口,选用所述浏览器的Canvas WebGI接口;If described browser does not support described Web Workers interface, supports described WebGL interface, selects the Canvas WebGI interface of described browser for use;
若所述浏览器支持所述Web Workers接口、不支持所述WebGL接口,选用所述浏览器的Canvas 2d接口;If the browser supports the Web Workers interface and does not support the WebGL interface, select the Canvas 2d interface of the browser;
若所述浏览器支持所述Web Workers接口也支持所述WebGL接口,选用所述浏览器的Canvas WebGI接口。If the browser supports the Web Workers interface and also supports the WebGL interface, select the Canvas WebGI interface of the browser.
浏览器运行过程中,Canvas 2d接口比Canvas WebGI接口的渲染速度慢,因此对于支持Canvas WebGI接口的浏览器优先采用Canvas WebGI接口进行渲染。When the browser is running, the rendering speed of the Canvas 2d interface is slower than that of the Canvas WebGI interface. Therefore, browsers that support the Canvas WebGI interface are preferentially rendered using the Canvas WebGI interface.
进一步地,further,
若所述浏览器不支持所述Web Workers接口,所述浏览器通过主程序解码所述视频文件;If the browser does not support the Web Workers interface, the browser decodes the video file through the main program;
若所述浏览器支持所述Web Workers接口,所述浏览器通过Web Workers接口解码所述视频文件。If the browser supports the Web Workers interface, the browser decodes the video file through the Web Workers interface.
浏览器需要创建并选用相应的进程来运行相应的任务。选用合适的线程可以执行任务而不干扰用户界面。对于浏览器支持所述Web Workers接口的情况,浏览器可以通过Web Workers接口创建并选用相应的进程解码视频文件,优化解码视频效率。而对于不支持所述Web Workers接口的情况,需要浏览器选用主程序解码所述视频文件,从而保证解码的进行。The browser needs to create and select a corresponding process to run the corresponding task. Choosing the right thread can perform tasks without interfering with the user interface. For the situation that the browser supports the Web Workers interface, the browser can create and select a corresponding process to decode the video file through the Web Workers interface, so as to optimize the decoding video efficiency. And for the situation that does not support described Web Workers interface, need browser to select main program to decode described video file, thereby guarantee the carrying out of decoding.
进一步地,所述Canvas WebGI接口通过GPU渲染。Further, the Canvas WebGI interface is rendered by GPU.
进一步地,所述第一视频格式合集至少包含MP4格式,所述第二视频格 式合集至少包含TS格式。本实施例中,第一视频格式合集属于标准video元素所支持的视频格式,例如MP4,在某些浏览器中也可以支持WebM等格式,所述第二视频格式为标准video元素不支持的视频格式,例如TS、AVI等格式。Further, the first set of video formats includes at least MP4 format, and the second set of video formats includes at least TS format. In this embodiment, the first video format collection belongs to the video format supported by the standard video element, such as MP4, and some browsers may also support formats such as WebM, and the second video format is a video that is not supported by the standard video element Formats, such as TS, AVI and other formats.
实施例二Embodiment two
一种移动端网页视频背景处理系统,包含:A mobile webpage video background processing system, comprising:
获取模块,用于获取视频文件及所述视频文件的视频格式类型,所述视频格式类型包括第一视频格式合集、第二视频格式合集;An acquisition module, configured to acquire a video file and a video format type of the video file, wherein the video format type includes a first video format collection and a second video format collection;
浏览器属性判断模块,用于获取浏览器userAgent属性,判断所述浏览器是否支持标准video元素且所述视频格式类型属于第一视频格式合集,若是则转至步骤S3,若否则转至步骤S4;The browser attribute judging module is used to obtain the browser userAgent attribute, judge whether the browser supports standard video elements and the video format type belongs to the first video format collection, if so, go to step S3, otherwise go to step S4 ;
标准video元素播放模块,用于若所述浏览器支持标准video元素,调用标准video元素播放所述视频文件作为视频背景;A standard video element playback module, used to call the standard video element to play the video file as the video background if the browser supports the standard video element;
绘图播放模块,用于若所述浏览器不支持标准video元素,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片作为视频背景。The drawing and playing module is used to decode the video file and draw it into multiple pictures frame by frame if the browser does not support standard video elements, and play the pictures in time sequence as the video background.
实施例三Embodiment Three
一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现实施例一中所述的网页视频背景处理处理方法。A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the webpage video background processing method described in Embodiment 1 is implemented.
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属于本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

Claims (10)

  1. 一种移动端网页视频背景处理方法,其特征在于:包含以下步骤:A mobile terminal webpage video background processing method, characterized in that: comprising the following steps:
    S1,获取视频文件及所述视频文件的视频格式类型,所述视频格式类型包括第一视频格式合集、第二视频格式合集;S1. Obtain a video file and a video format type of the video file, where the video format type includes a first video format collection and a second video format collection;
    S2,获取浏览器userAgent属性,判断所述浏览器是否支持标准video元素且所述视频格式类型属于第一视频格式合集,若是则转至步骤S3,若否则转至步骤S4;S2, obtaining the browser userAgent attribute, judging whether the browser supports standard video elements and the video format type belongs to the first video format collection, if so, go to step S3, otherwise go to step S4;
    S3,调用标准video元素播放所述视频文件作为视频背景;S3, calling the standard video element to play the video file as the video background;
    S4,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片作为视频背景。S4. Decode the video file and draw it frame by frame into multiple pictures, and play the pictures in time sequence as the video background.
  2. 根据权利要求1所述的一种移动端网页视频背景处理方法,其特征在于:步骤S4中,所述视频文件解码并通过Canvas接口逐帧绘制成多张图片。The method for processing the video background of a mobile web page according to claim 1, wherein in step S4, the video file is decoded and drawn into multiple pictures frame by frame through the Canvas interface.
  3. 根据权利要求1-2任意一条所述的一种移动端网页视频背景处理方法,其特征在于:步骤S4中,所述将所述视频文件解码并逐帧绘制成多张图片具体为:A method for processing a mobile webpage video background according to any one of claims 1-2, characterized in that: in step S4, said decoding the video file and drawing it into multiple pictures frame by frame is specifically:
    对所述浏览器进行浏览器能力检测,选用浏览器支持且合适的浏览器接口将所述视频文件解码并逐帧绘制成多张图片。The browser capability detection is performed on the browser, and an appropriate browser interface supported by the browser is selected to decode the video file and draw it into multiple pictures frame by frame.
  4. 根据权利要求3所述的一种移动端网页视频背景处理方法,其特征在于:对所述浏览器进行浏览器能力检测,获取所述浏览器对Web Workers接口、WebGL接口的支持支持情况。A kind of mobile terminal webpage video background processing method according to claim 3, is characterized in that: described browser is carried out browser ability detection, obtains described browser to the support situation of Web Workers interface, WebGL interface.
  5. 根据权利要求4所述的一种移动端网页视频背景处理方法,其特征在于:所述选用浏览器支持且合适的浏览器接口具体为:The method for processing the video background of a mobile webpage according to claim 4, wherein the browser interface supported by the selected browser is specifically:
    若所述浏览器不支持所述Web Workers接口也不支持所述WebGL接口, 选用所述浏览器的Canvas 2d接口;If the browser does not support the Web Workers interface and does not support the WebGL interface, select the Canvas 2d interface of the browser;
    若所述浏览器不支持所述Web Workers接口、支持所述WebGL接口,选用所述浏览器的Canvas WebGI接口;If described browser does not support described Web Workers interface, supports described WebGL interface, selects the Canvas WebGI interface of described browser for use;
    若所述浏览器支持所述Web Workers接口、不支持所述WebGL接口,选用所述浏览器的Canvas 2d接口;If the browser supports the Web Workers interface and does not support the WebGL interface, select the Canvas 2d interface of the browser;
    若所述浏览器支持所述Web Workers接口也支持所述WebGL接口,选用所述浏览器的Canvas WebGI接口。If the browser supports the Web Workers interface and also supports the WebGL interface, select the Canvas WebGI interface of the browser.
  6. 根据权利要求5所述的一种移动端网页视频背景处理方法,其特征在于:进一步地,A method for processing the video background of a mobile webpage according to claim 5, wherein: further,
    若所述浏览器不支持所述Web Workers接口,所述浏览器通过主程序解码所述视频文件;If the browser does not support the Web Workers interface, the browser decodes the video file through the main program;
    若所述浏览器支持所述Web Workers接口,所述浏览器通过Web Workers接口解码所述视频文件。If the browser supports the Web Workers interface, the browser decodes the video file through the Web Workers interface.
  7. 根据权利要求5所述的一种移动端网页视频背景处理方法,其特征在于:所述Canvas WebGI接口通过GPU渲染。A method for processing a mobile webpage video background according to claim 5, wherein the Canvas WebGI interface is rendered by GPU.
  8. 根据权利要求5所述的一种移动端网页视频背景处理方法,其特征在于:所述第一视频格式合集至少包含MP4格式,所述第二视频格式合集至少包含TS格式。The method for processing the video background of a mobile webpage according to claim 5, wherein the first video format collection includes at least MP4 format, and the second video format collection includes at least TS format.
  9. 一种移动端网页视频背景处理系统,其特征在于:包含:A mobile webpage video background processing system, characterized in that: comprising:
    获取模块,用于获取视频文件及所述视频文件的视频格式类型,所述视频格式类型包括第一视频格式合集、第二视频格式合集;An acquisition module, configured to acquire a video file and a video format type of the video file, wherein the video format type includes a first video format collection and a second video format collection;
    浏览器属性判断模块,用于获取浏览器userAgent属性,判断所述浏览器 是否支持标准video元素且所述视频格式类型属于第一视频格式合集,若是则转至步骤S3,若否则转至步骤S4;The browser attribute judging module is used to obtain the browser userAgent attribute, judge whether the browser supports standard video elements and the video format type belongs to the first video format collection, if so, go to step S3, otherwise go to step S4 ;
    标准video元素播放模块,用于若所述浏览器支持标准video元素,调用标准video元素播放所述视频文件作为视频背景;A standard video element playback module, used to call the standard video element to play the video file as the video background if the browser supports the standard video element;
    绘图播放模块,用于若所述浏览器不支持标准video元素,将所述视频文件解码并逐帧绘制成多张图片,按时序播放所述图片作为视频背景。The drawing and playing module is used to decode the video file and draw it into multiple pictures frame by frame if the browser does not support standard video elements, and play the pictures in time sequence as the video background.
  10. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1中所述的网页视频背景处理处理方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the webpage video background processing method described in claim 1 is implemented.
PCT/CN2022/076306 2021-07-13 2022-02-15 Method and system for processing webpage video background of mobile end, and storage medium WO2023284295A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110790645.X 2021-07-13
CN202110790645.XA CN113691740A (en) 2021-07-13 2021-07-13 Mobile terminal webpage video background processing method, system and storage medium

Publications (1)

Publication Number Publication Date
WO2023284295A1 true WO2023284295A1 (en) 2023-01-19

Family

ID=78577386

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/076306 WO2023284295A1 (en) 2021-07-13 2022-02-15 Method and system for processing webpage video background of mobile end, and storage medium

Country Status (2)

Country Link
CN (1) CN113691740A (en)
WO (1) WO2023284295A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691740A (en) * 2021-07-13 2021-11-23 稿定(厦门)科技有限公司 Mobile terminal webpage video background processing method, system and storage medium
CN115474074B (en) * 2022-08-29 2024-05-07 咪咕文化科技有限公司 Video background replacement method, device, computing equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080244740A1 (en) * 2007-03-06 2008-10-02 Wetpaint.Com, Inc. Browser-independent editing of content
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal
US20170091160A1 (en) * 2015-09-30 2017-03-30 Samsung Display Co. Ltd. Display system and virtual web device in the cloud
CN107277004A (en) * 2017-06-13 2017-10-20 重庆扬讯软件技术股份有限公司 A kind of browser is without plug-in unit net cast method
CN110225404A (en) * 2019-06-17 2019-09-10 深圳市正易龙科技有限公司 Video broadcasting method, terminal and computer readable storage medium
CN110430451A (en) * 2019-08-20 2019-11-08 北京豆萌信息技术有限公司 Video broadcasting method, player, server and system
CN110557670A (en) * 2019-09-17 2019-12-10 广州华多网络科技有限公司 Method, device, terminal and storage medium for playing video in webpage
CN112422508A (en) * 2020-10-19 2021-02-26 武汉烽火众智数字技术有限责任公司 Method and system for playing video in browser webpage
CN113691740A (en) * 2021-07-13 2021-11-23 稿定(厦门)科技有限公司 Mobile terminal webpage video background processing method, system and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201027999A (en) * 2009-01-14 2010-07-16 S & J Corp A method to provide online video browsing interface
US20140325323A1 (en) * 2013-04-28 2014-10-30 Tencent Technology (Shenzhen) Company Limited Online video playing method and apparatus and computer readable medium
CN106537925A (en) * 2014-08-04 2017-03-22 利奇传媒公司 System and methods that enable embedding, streaming, and displaying video advertisements and content on internet webpages accessed via mobile devices
KR101821123B1 (en) * 2016-04-04 2018-01-23 한화테크윈 주식회사 Method and apparatus for playing media stream on web-browser
CN111787399A (en) * 2020-07-23 2020-10-16 成都云盯科技有限公司 Video playing method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080244740A1 (en) * 2007-03-06 2008-10-02 Wetpaint.Com, Inc. Browser-independent editing of content
CN104581171A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Method and device for playing videos on browser as well as mobile terminal
US20170091160A1 (en) * 2015-09-30 2017-03-30 Samsung Display Co. Ltd. Display system and virtual web device in the cloud
CN107277004A (en) * 2017-06-13 2017-10-20 重庆扬讯软件技术股份有限公司 A kind of browser is without plug-in unit net cast method
CN110225404A (en) * 2019-06-17 2019-09-10 深圳市正易龙科技有限公司 Video broadcasting method, terminal and computer readable storage medium
CN110430451A (en) * 2019-08-20 2019-11-08 北京豆萌信息技术有限公司 Video broadcasting method, player, server and system
CN110557670A (en) * 2019-09-17 2019-12-10 广州华多网络科技有限公司 Method, device, terminal and storage medium for playing video in webpage
CN112422508A (en) * 2020-10-19 2021-02-26 武汉烽火众智数字技术有限责任公司 Method and system for playing video in browser webpage
CN113691740A (en) * 2021-07-13 2021-11-23 稿定(厦门)科技有限公司 Mobile terminal webpage video background processing method, system and storage medium

Also Published As

Publication number Publication date
CN113691740A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11363091B2 (en) System and method for capturing interaction data relating to a host application
WO2023284295A1 (en) Method and system for processing webpage video background of mobile end, and storage medium
CN106060655B (en) Video processing method, server and terminal
US20220139353A1 (en) Display method, electronic device, and non-transitory computer-readable storage medium
CN111899322B (en) Video processing method, animation rendering SDK, equipment and computer storage medium
CN103310475B (en) animation playing method and device
WO2021008424A1 (en) Method and device for image synthesis, electronic apparatus and storage medium
CN106021421B (en) method and device for accelerating webpage rendering
CN109672902A (en) A kind of video takes out frame method, device, electronic equipment and storage medium
CN112256990B (en) Image processing method and device and computer readable storage medium
US20110125731A1 (en) Information processing apparatus, information processing method, program, and information processing system
CN104850388A (en) Method and apparatus for drafting webpage
CN110110152A (en) Processing method, device, computer equipment and the storage medium of mind map
CN110662080B (en) Machine-oriented universal coding method
CN112689197A (en) File format conversion method and device and computer storage medium
CN104008565B (en) System and method for playing Flash bitmap animation by using cocos2d-x and HE engines
CN112419456B (en) Special effect picture generation method and device
WO2023134625A1 (en) Special effect optimization method and apparatus, and storage medium and program product
TW201039628A (en) Subtitle generation system and method thereof
CN114222185B (en) Video playing method, terminal equipment and storage medium
US11176634B2 (en) Methods and devices of picture processing based on external storage device and user interface display
CN113546409B (en) Method for playing GIF format resource by Laya engine and storage medium
CN108235144B (en) Playing content obtaining method and device and computing equipment
CN110119380B (en) Storage and reading method and device for scalable vector graphics file
CN111179386A (en) Animation generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22840941

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE