CN113347487A - Low-power browser sequence diagram video method and terminal for automatic compatible equipment - Google Patents
Low-power browser sequence diagram video method and terminal for automatic compatible equipment Download PDFInfo
- Publication number
- CN113347487A CN113347487A CN202110673541.0A CN202110673541A CN113347487A CN 113347487 A CN113347487 A CN 113347487A CN 202110673541 A CN202110673541 A CN 202110673541A CN 113347487 A CN113347487 A CN 113347487A
- Authority
- CN
- China
- Prior art keywords
- picture
- browser
- timer
- frame rate
- display frame
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000010586 diagram Methods 0.000 title claims abstract description 19
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 238000012800 visualization Methods 0.000 claims description 4
- 238000007794 visualization technique Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 4
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44004—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a browser sequence diagram video method and a terminal with low electric quantity of automatic compatible equipment, wherein the terminal is used for executing the following steps: s1, obtaining an instance cache of the sequence pictures; s2, setting a browser timer callback function and a threshold value, and judging whether the image display frame rate of the input cache image resource is lower than the threshold value; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting; s3, acquiring the current cache picture from the output end of the timer, and displaying the picture on the browser; in a scene that a sequence picture needs to be displayed, a user can still obtain a video display effect with consistent picture display frame rate without concerning platform compatibility and whether equipment is in low power.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a browser sequence diagram video method and a terminal capable of being automatically compatible with low electric quantity of equipment.
Background
The internet has entered a new development stage through a long-term high-speed development since the appearance of the last century, and the traditional internet mainly based on static texts and pictures is developing to the interactive video next generation internet combining real-time interactive texts and pictures and high-definition video and audio. The existing terminal devices such as IOS mobile devices and the like can perform frame dropping processing on a timer module in a browser under the condition of low electric quantity, so that under two scenes of normal electric quantity and low electric quantity, the frame rates of playing sequence diagrams by the timer module are inconsistent, a phenomenon of unsmooth blocking can occur when people watch the video sequence diagrams, the watching experience of people is reduced, and the playing effect is poor.
Disclosure of Invention
The invention aims to provide a browser sequence chart video method and a terminal with automatic compatibility with low electric quantity of equipment, and under a scene that sequence pictures need to be displayed, a user can still obtain a video display effect with consistent picture display frame rate without concerning platform compatibility and whether the equipment is in low electric quantity.
In order to achieve the purpose, the invention adopts the following technical scheme:
a low-power browser sequence diagram visualization method for an automatic compatible device comprises the following steps:
s1, obtaining an instance cache of the sequence pictures;
s2, setting a browser timer callback function and a threshold value, and judging whether the image display frame rate of the input cache image resource is lower than the threshold value; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting;
and S3, acquiring the current cache picture from the output end of the timer, and displaying the picture on the browser.
Preferably, the specific process of step S2 is:
s21, setting a browser timer callback function, and setting a threshold FPS to be 30;
s22, if the picture display frame rate of the input timer is lower than 30FPS, setting the FPS to be 60 and sending a timing notice; if the picture display frame rate of the input timer is not lower than 30FPS, the FPS is still 30, and the picture display frame rate is sent to a timing notice;
and S23, sending a command by timing notification, executing a callback function, and acquiring the current cache picture.
Preferably, the specific process of step S1 is:
s11, obtaining sequence pictures corresponding to the video through a preloader, and obtaining picture addresses;
s12, initiating a picture request and an http request in sequence, and triggering a processing request response;
and S13, completing loading to obtain the cache picture resource.
Preferably, the specific process of step S3 is: and acquiring the current cache picture, playing the picture through a picture player and displaying the picture on a browser.
Preferably, the picture player further comprises an end timer for judging whether to end the picture display; if so, ending the picture display; if not, sending a command through the timing notice, and continuously executing the callback function.
A browser sequence diagram video terminal with low electric quantity of automatic compatible equipment comprises a preloader, a timer and a picture player;
the preloader is used for acquiring instance caches of the sequence pictures;
the timer is used for setting a callback function and a threshold value and judging whether the image display frame rate of the input cache image resource is lower than the threshold value or not; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting;
and the picture player is used for acquiring the current cache picture from the output end of the timer and displaying the picture on the browser.
Preferably, the timer when executed implements the steps of:
s21, setting a browser timer callback function, and setting a threshold FPS to be 30;
s22, if the picture display frame rate of the input timer is lower than 30FPS, setting the FPS to be 60 and sending a timing notice; if the picture display frame rate of the input timer is not lower than 30FPS, the FPS is still 30, and the picture display frame rate is sent to a timing notice;
and S23, sending a command by timing notification, executing a callback function, and acquiring the current cache picture.
Preferably, the preloader when executed performs the steps of:
s11, obtaining sequence pictures corresponding to the video through a preloader, and obtaining picture addresses;
s12, initiating a picture request and an http request in sequence, and triggering a processing request response;
and S13, completing loading to obtain the cache picture resource.
Preferably, the picture player implements the following steps when executed: and acquiring the current cache picture, playing the picture through a picture player and displaying the picture on a browser.
Preferably, an end timer is further disposed on the picture player, and the end timer is used for determining whether to end the end timer for displaying the picture; if so, ending the picture display; if not, sending a command through the timing notice, and continuously executing the callback function.
After the technical scheme is adopted, the invention has the following beneficial effects: aiming at the problem that the existing terminal equipment such as IOS mobile equipment and the like can perform frame reduction processing on a timer module in a browser under the condition of low electric quantity, and generally reduce the display frame rate of an input picture to half, the method comprises the steps of firstly obtaining sequence picture instance cache through a self-defined preloading module, then setting the picture display frame rate through the browser timer module, and finally enabling the browser to display the sequence picture cache instances according to the preset frame rate sequence; the video display method and the video display device have the advantages that under the scene that the sequence pictures need to be displayed, a user does not need to care about platform compatibility and whether the equipment is in a low power state, the video display effect with the consistent picture display frame rate can be still obtained, the video sequence pictures are smoothly played and are not jammed, and the watching experience of people can be improved.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a low-power browser sequence diagram visualization method for an automatic compatible device includes the following steps:
s1, obtaining an instance cache of the sequence pictures;
the specific process of step S1 is:
s11, obtaining sequence pictures corresponding to the video through a preloader, and obtaining picture addresses;
s12, initiating a picture request and an http request in sequence, and triggering a processing request response;
s13, completing loading to obtain cache picture resources;
s2, setting a browser timer callback function and a threshold value, and judging whether the image display frame rate of the input cache image resource is lower than the threshold value; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting;
the specific process of step S2 is:
s21, setting a browser timer callback function, and setting a threshold FPS to be 30;
s22, if the picture display frame rate of the input timer is lower than 30FPS, setting the FPS to be 60 and sending a timing notice; if the picture display frame rate of the input timer is not lower than 30FPS, the FPS is still 30, and the picture display frame rate is sent to a timing notice;
s23, sending a command by timing notification, executing a callback function, and acquiring a current cache picture;
s3, acquiring the current cache picture from the output end of the timer, and displaying the picture on the browser;
the specific process of step S3 is: acquiring a current cache picture, playing the picture through a picture player and displaying the picture on a browser;
the picture player also comprises an ending timer used for judging whether to end the picture display; if so, ending the picture display; if not, sending a command through the timing notice, and continuously executing the callback function to display the picture.
As shown in fig. 1, a low-power browser sequence diagram visualization terminal of an automatic compatible device includes a preloader, a timer and a picture player;
the preloader is used for acquiring instance caches of the sequence pictures;
the timer is used for setting a callback function and a threshold value and judging whether the image display frame rate of the input cache image resource is lower than the threshold value or not; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting;
and the picture player is used for acquiring the current cache picture from the output end of the timer and displaying the picture on the browser.
As shown in fig. 1, the timer, when executed, implements the following steps:
s21, setting a browser timer callback function, and setting a threshold FPS to be 30;
s22, if the picture display frame rate of the input timer is lower than 30FPS, setting the FPS to be 60 and sending a timing notice, because the input picture display frame rate is generally reduced to half under the condition of low power of the existing IOS mobile equipment and other terminal equipment, the actual picture display frame rate is still 30FPS after 60FPS is reduced; if the picture display frame rate of the input timer is not lower than 30FPS, the FPS is still 30 and is sent to a timing notice, namely the picture display frame rate is not adjusted when the power is normal;
and S23, sending a command by timing notification, executing a callback function, and acquiring the current cache picture.
As shown in fig. 1, the preloader when executed performs the steps of:
s11, obtaining sequence pictures corresponding to the video through a preloader, and obtaining picture addresses;
s12, initiating a picture request and an http request in sequence, and triggering a processing request response;
and S13, completing loading to obtain the cache picture resource.
As shown in fig. 1, the picture player, when executing, realizes the following steps: and acquiring the current cache picture, playing the picture through a picture player and displaying the picture on a browser.
As shown in fig. 1, the picture player is further provided with an end timer, and the end timer is used for determining whether to end the end timer for displaying the picture; if so, ending the picture display; if not, sending a command through the timing notice, and continuously executing the callback function
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A low-power browser sequence diagram visualization method for automatic compatibility equipment is characterized by comprising the following steps:
s1, obtaining an instance cache of the sequence pictures;
s2, setting a browser timer callback function and a threshold value, and judging whether the image display frame rate of the input cache image resource is lower than the threshold value; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting;
and S3, acquiring the current cache picture from the output end of the timer, and displaying the picture on the browser.
2. The method for visualizing the browser sequence diagram of the automatically compatible device with the low power as claimed in claim 1, wherein the specific process of step S2 is as follows:
s21, setting a browser timer callback function, and setting a threshold FPS to be 30;
s22, if the picture display frame rate of the input timer is lower than 30FPS, setting the FPS to be 60 and sending a timing notice; if the picture display frame rate of the input timer is not lower than 30FPS, the FPS is still 30, and the picture display frame rate is sent to a timing notice;
and S23, sending a command by timing notification, executing a callback function, and acquiring the current cache picture.
3. The method for visualizing the browser sequence diagram of the automatically compatible device with the low power as claimed in claim 1, wherein the specific process of step S1 is as follows:
s11, obtaining sequence pictures corresponding to the video through a preloader, and obtaining picture addresses;
s12, initiating a picture request and an http request in sequence, and triggering a processing request response;
and S13, completing loading to obtain the cache picture resource.
4. The method for visualizing the browser sequence diagram of the automatically compatible device with the low power as claimed in claim 2, wherein the specific process of step S3 is as follows: and acquiring the current cache picture, playing the picture through a picture player and displaying the picture on a browser.
5. The method as claimed in claim 4, wherein the picture player further comprises an end timer for determining whether to end the picture display; if so, ending the picture display; if not, sending a command through the timing notice, and continuously executing the callback function.
6. A browser sequence diagram video terminal with low electric quantity of automatic compatible equipment is characterized by comprising a preloader, a timer and a picture player;
the preloader is used for acquiring instance caches of the sequence pictures;
the timer is used for setting a callback function and a threshold value and judging whether the image display frame rate of the input cache image resource is lower than the threshold value or not; if so, adjusting the image display frame rate to output; if not, not adjusting the image display frame rate for outputting;
and the picture player is used for acquiring the current cache picture from the output end of the timer and displaying the picture on the browser.
7. The low-battery browser sequence diagram visualization terminal of claim 6, wherein said timer when executed performs the steps of:
s21, setting a browser timer callback function, and setting a threshold FPS to be 30;
s22, if the picture display frame rate of the input timer is lower than 30FPS, setting the FPS to be 60 and sending a timing notice; if the picture display frame rate of the input timer is not lower than 30FPS, the FPS is still 30, and the picture display frame rate is sent to a timing notice;
and S23, sending a command by timing notification, executing a callback function, and acquiring the current cache picture.
8. The low-battery browser sequence diagram visualization terminal of an auto-compatible device according to claim 6, wherein said preloader when executed performs the steps of:
s11, obtaining sequence pictures corresponding to the video through a preloader, and obtaining picture addresses;
s12, initiating a picture request and an http request in sequence, and triggering a processing request response;
and S13, completing loading to obtain the cache picture resource.
9. The low-battery browser sequence diagram videoing terminal of an auto-compatible device according to claim 7, wherein said picture player when executed performs the steps of: and acquiring the current cache picture, playing the picture through a picture player and displaying the picture on a browser.
10. The low-power browser sequence diagram visualization terminal of claim 9, wherein the picture player further comprises an end timer, and the end timer is used for determining whether to end the end timer for displaying the picture; if so, ending the picture display; if not, sending a command through the timing notice, and continuously executing the callback function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110673541.0A CN113347487B (en) | 2021-06-17 | 2021-06-17 | Low-power browser sequence diagram video method and terminal for automatic compatible equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110673541.0A CN113347487B (en) | 2021-06-17 | 2021-06-17 | Low-power browser sequence diagram video method and terminal for automatic compatible equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113347487A true CN113347487A (en) | 2021-09-03 |
CN113347487B CN113347487B (en) | 2022-09-27 |
Family
ID=77476228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110673541.0A Active CN113347487B (en) | 2021-06-17 | 2021-06-17 | Low-power browser sequence diagram video method and terminal for automatic compatible equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113347487B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010268525A (en) * | 2004-09-16 | 2010-11-25 | Ntt Docomo Inc | Video evaluation device, frame rate determination device, video process device, video evaluation method, and video evaluation program |
CN104063286A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Method and device for testing fluency of change of displayed content |
WO2017041537A1 (en) * | 2015-09-08 | 2017-03-16 | 深圳Tcl数字技术有限公司 | Video frame rate adjustment method and apparatus |
CN106817755A (en) * | 2017-03-20 | 2017-06-09 | 北京白鹭时代信息技术有限公司 | A kind of method and device for reducing mobile terminal power consumption |
CN109640168A (en) * | 2018-11-27 | 2019-04-16 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and computer-readable medium |
CN110658904A (en) * | 2019-09-19 | 2020-01-07 | Oppo广东移动通信有限公司 | Method and device for controlling terminal current, terminal and storage medium |
CN111813490A (en) * | 2020-08-14 | 2020-10-23 | Oppo广东移动通信有限公司 | Method and device for processing interpolation frame |
CN111966557A (en) * | 2019-05-20 | 2020-11-20 | 北京车和家信息技术有限公司 | Method and device for monitoring browser frame rate |
CN112005218A (en) * | 2018-04-28 | 2020-11-27 | 华为技术有限公司 | Method, device and system for power distribution of image processor |
-
2021
- 2021-06-17 CN CN202110673541.0A patent/CN113347487B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010268525A (en) * | 2004-09-16 | 2010-11-25 | Ntt Docomo Inc | Video evaluation device, frame rate determination device, video process device, video evaluation method, and video evaluation program |
CN104063286A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Method and device for testing fluency of change of displayed content |
WO2017041537A1 (en) * | 2015-09-08 | 2017-03-16 | 深圳Tcl数字技术有限公司 | Video frame rate adjustment method and apparatus |
CN106817755A (en) * | 2017-03-20 | 2017-06-09 | 北京白鹭时代信息技术有限公司 | A kind of method and device for reducing mobile terminal power consumption |
CN112005218A (en) * | 2018-04-28 | 2020-11-27 | 华为技术有限公司 | Method, device and system for power distribution of image processor |
CN109640168A (en) * | 2018-11-27 | 2019-04-16 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and computer-readable medium |
CN111966557A (en) * | 2019-05-20 | 2020-11-20 | 北京车和家信息技术有限公司 | Method and device for monitoring browser frame rate |
CN110658904A (en) * | 2019-09-19 | 2020-01-07 | Oppo广东移动通信有限公司 | Method and device for controlling terminal current, terminal and storage medium |
CN111813490A (en) * | 2020-08-14 | 2020-10-23 | Oppo广东移动通信有限公司 | Method and device for processing interpolation frame |
Also Published As
Publication number | Publication date |
---|---|
CN113347487B (en) | 2022-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1997153B (en) | A method and device for computer multi-video playing | |
EP3185574A1 (en) | Method and system for switching video playback resolution | |
CN105187895B (en) | For the hardware-accelerated data cache method and system for playing video of mobile platform | |
US11582506B2 (en) | Video processing method and apparatus, and storage medium | |
EP3206407A1 (en) | Video playing method and device | |
CN108419117B (en) | Device and method for playing video small window | |
CN104363505A (en) | Method and device for displaying playing interface | |
CN108810580B (en) | Media content pushing method and device | |
CN110830813B (en) | Video switching method and device, electronic equipment and storage medium | |
CN110913278B (en) | Video playing method, display terminal and storage medium | |
CN103561312A (en) | Method and device for adjusting video playing interface | |
CN104808946A (en) | Image playing and controlling method and device | |
CN104080006A (en) | Video processing device and method | |
US20150067721A1 (en) | Method and system for transmitting videos to mobile phones | |
CN103546828B (en) | The generation method and device of previewing programs | |
CN110858910B (en) | Live video display method, device, equipment and storage medium | |
CN102984476B (en) | Widescreen adapting to image processing method and device | |
CN113347487B (en) | Low-power browser sequence diagram video method and terminal for automatic compatible equipment | |
WO2023202230A1 (en) | Information recommendation method and apparatus, and electronic device | |
US20220007078A1 (en) | An apparatus and associated methods for presentation of comments | |
CN115690664A (en) | Image processing method and device, electronic equipment and storage medium | |
CN115379277A (en) | VR panoramic video playing method and system based on IPTV service | |
CN112019858B (en) | Video playing method and device, computer equipment and storage medium | |
CN108156515B (en) | Video playing method, smart television and computer readable storage medium | |
CN114666648B (en) | Video playing method and electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |