Automatic video playing method and device implemented based on React framework

An automatic playback and video technology, applied in image communication, selective content distribution, electrical components, etc., can solve the problems of increasing labor cost and time consumption, and achieve the effect of reducing labor development cost, saving development time, and facilitating judgment.

Active Publication Date: 2018-10-26
ZHEJIANG KOUBEI NETWORK TECH CO LTD
View PDF17 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] But in the prior art, when realizing automatic video playback, the code of automatic video playback is subject to different limitations of the system framework, such as Android system and IOS system, different codes need to be written in different systems to realize automatic video playback, resulting in the need for video playback codes. Writing according to the system increases the labor cost and time spent on code development and debugging

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic video playing method and device implemented based on React framework
  • Automatic video playing method and device implemented based on React framework
  • Automatic video playing method and device implemented based on React framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0080] figure 1 A flow chart of a method for automatically playing video based on a React framework is shown according to an embodiment of the present invention. Such as figure 1 As shown, the video autoplay method implemented based on the React framework specifically includes the following steps:

[0081] Step S101, encapsulating the original video component in the page to obtain a React video component.

[0082] The React fram...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an automatic video playing method and device implemented based on a React framework. The method comprises the following steps: packaging an original video component in a page to obtain a React video component, wherein the React video component has first specified attribute information of video elements; obtaining all video elements by using the first specified attribute information; sequentially judging whether video elements in the video elements is located in a current window of the page; and if it is judged that the video elements are located in the current window ofthe page, changing the video state of the first video element located in the current window into a playing state. According to the automatic video playing method and device disclosed by the invention, the original video component is packaged by using the React framework, so that the automatic video playing method implemented by the React framework is not affected by the system framework, a code is multiplexed in different systems, the manpower development cost is reduced, and the development time is shortened. Moreover, all video elements can be obtained by using the first specified attributeinformation in the React video component at one time, which is convenient for the subsequent judgment.

Description

technical field [0001] The invention relates to the field of software, in particular to a method and device for automatically playing video based on a React framework. Background technique [0002] Compared with pictures and text descriptions, videos can display information more clearly and attract viewers' attention. Therefore, video is used to display information in many applications. When using video to display information, when the video is in the current window of the application, the video will be played automatically, and the user does not need to manually trigger the playback, which improves the user experience and interaction effect. [0003] But in the prior art, when realizing automatic video playback, the code of automatic video playback is subject to different limitations of the system framework, such as Android system and IOS system, different codes need to be written in different systems to realize automatic video playback, resulting in the need for video pla...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/431H04N21/433H04N21/485
CPCH04N21/4312H04N21/4333H04N21/4334H04N21/4858
Inventor 高敏
Owner ZHEJIANG KOUBEI NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products