Playing method and device of video elements in web page
A technology for video elements and web pages, which is applied in the browser field and can solve problems such as users being unable to watch video content
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] refer to figure 1 , which shows a method for playing video elements in a web page of the present invention, which may specifically include:
[0034] Step 110, obtaining the webpage document for loading from the webpage server side;
[0035] In practical applications, after receiving the URL (Uniform Resource Locator, Uniform Resource Locator) input by the user, the browser of the embodiment of the present invention can send a corresponding HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol) request to obtain the URL from the web server. HTML (that is, HyperText Mark-up Language) document, the HTML is used to be loaded into the tab page of the browser for display.
[0036] Step 120, judging that the webpage document is a specific webpage with playable video elements, injecting a display control script for controlling the display of the video elements into the webpage document by the browser;
[0037] In the embodiment of the present invention, for the webpa...
Embodiment 2
[0081] refer to figure 2 , which shows a method for playing video elements in a web page of the present invention, which may specifically include:
[0082] Step 210, obtaining the webpage document for loading from the webpage server side;
[0083] Step 220, judging that the webpage document is a specific webpage with playable video elements, injecting a display control script for controlling the display of the video elements into the webpage document by the browser;
[0084] Step 230, the display control script determines that the video element is partially displayed or completely not displayed in the current browser display window;
[0085] When the user drags the webpage to move, the logic module loaded by the display control script judges whether the video elements displayed in the webpage are partially displayed or not completely displayed in the current browser display window. If it is determined that the video element is partially displayed or completely not displayed...
Embodiment 3
[0157] refer to image 3 , which shows a method for playing video elements in a web page of the present invention, which may specifically include:
[0158] Step 310, obtaining the webpage document for loading from the webpage server side;
[0159] Step 320, judging that the webpage document is a specific webpage with playable video elements, injecting a display control script for controlling the display of the video elements into the webpage document by the browser;
[0160] Such as Figure 3A , is an example of loading and displaying a web page document for a browser; S312 is a browser display window, S313 is a display window of a video element, S314 is a scroll bar, and S315 is a scroll groove, and other components of the browser are omitted here. In the embodiment of the present invention, Figure 3A It is a schematic diagram of the initial state when the webpage document is loaded and the user has not been dragged by the user, that is, the browser has loaded ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 