# US 2021/0345013 A1 · Video Playing Method and Apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0345013 A1
- Document ID: US20210345013A1
- Status: Published application
- Kind: A1
- Application number: 17/284,998
- Filed: 2019-09-29
- Published: 2021-11-04
- Earliest claimed: 2018-10-18
- Assignees: Hangzhou Hikvision Digital Technology Co., Ltd.
- Applicants: Hangzhou Hikvision Digital Technology Co., Ltd.
- Inventors: Zhongjian Feng; Kui Li
- Web page: https://patentgrep.com/patent/US20210345013A1

## CPC

- H04N 21/8173: {End-user applications, e.g. Web browser, game}
- G06F 8/61: Installation
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 9/44526: {Plug-ins; Add-ons}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- H04N 21/4424: {Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used (error monitoring in general G06F11/30; arrangements for monitoring conditions of receiving stations in broadcast systems H04H60/32; diagnosis, testing or measuring for television receivers H04N17/04)}
- H04N 21/4431: {characterized by the use of Application Program Interface [API] libraries}
- H04N 21/47202: {for requesting content on demand, e.g. video on demand}
- H04N 21/8193: {dedicated tools, e.g. video decoder software or IPMP tool}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Provided are a video playing method and apparatus. Wherein the video playing method comprises: performing video-preprocessing on video data to be played and playing the video data obtained after the video-preprocessing by means of a main process of the Web client; in the case that the performance resource of the Web client is insufficient, creating and starting a video service process, wherein the video service process is configured to perform the video-preprocessing on video data to be played and play the video data obtained after the video-preprocessing. In the technical solution according to the embodiment in the present application, the main process of the Web client can play videos without relying on plug-ins. In the case that the performance resource of the Web client is insufficient, the video service process is used to play videos for the smoothness of video playing, which can also play videos without relying on plug-ins. Thus, videos can be played without relying on plug-ins by means of this solution.

## Claims

### Claim 1

A video playing method, wherein it is applied to a Web client and comprises:
performing video-preprocessing on video data to be played, and playing the video data obtained after the video-preprocessing by means of a main process of the Web client;
creating and starting a video service process when a performance resource of the Web client is insufficient, wherein the video service process is configured to perform the video-preprocessing on video data to be played and play the video data obtained after the video-preprocessing.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
providing a prompt to choose whether to create a video service process;
creating and starting a video service process comprises:
in a case that it is chosen to create a video service process, creating and starting the video service process, and establishing a connection between the video service process and the main process.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
in a case that it is chosen not to create a video service process, performing frame-extraction-processing on the video data to be played;
performing the video-preprocessing on the video data obtained after the frame-extraction-processing, and playing the video data obtained after the video-preprocessing by means of the main process.

### Claim 4 (depends on 1)

The method of claim 1, wherein creating and starting a video service process comprises:
acquiring and installing an installation package of the video service process;
after the installation is completed, starting the video service process and establishing a connection between the video service process and the main process.

### Claim 5 (depends on 1)

The method of claim 1, wherein before the step of creating and starting a video service process when the performance resource of the Web client is insufficient, the method further comprises:
acquiring a duration of performing the video-preprocessing on a frame image that has been subjected to the video-preprocessing in the video data;
calculating a total duration of performing the video-preprocessing on continuous frame images based on the duration of performing the video-preprocessing on the acquired frame image and a preset number of the continuous frame images;
when the total duration is greater than the preset duration threshold, determining that the performance resource of the Web client is insufficient;
when the total duration is not greater than the preset duration threshold, determining that the performance resource of the Web client is sufficient.

### Claim 6 (depends on 5)

The method of claim 5, wherein the step of acquiring the duration of performing the video-preprocessing on the frame image that has been subjected to the video-preprocessing in the video data comprises:
recording a current time point as an initial time point when starting to perform the video-preprocessing on the frame image in the video data;
recording a current time point as an end time point when the video-preprocessing on the frame image is completed;
obtaining the duration of performing the video-preprocessing on the frame image by subtracting the initial time point from the end time point.

### Claim at position 7

7-12. (canceled)

### Claim 13 (depends on 1)

An electronic device, wherein it comprises a processor and a memory;
the memory is used for storing computer programs;
the processor is used for implementing the video playing method of claim 1 when executing the programs stored on the memory.

### Claim 14 (depends on 1)

A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer programs thereon which, when executed by a processor, cause the processor to implement the video playing method of claim 1.

### Claim 15 (depends on 13)

The electronic device of claim 13, wherein the processor is used for further:
providing a prompt to choose whether to create a video service process;
wherein creating and starting a video service process comprises:
in a case that it is chosen to create a video service process, creating and starting the video service process, and establishing a connection between the video service process and the main process.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein the processor is used for further:
in a case that it is chosen not to create a video service process, performing frame-extraction-processing on the video data to be played;
performing the video-preprocessing on the video data obtained after the frame-extraction-processing, and playing the video data obtained after the video-preprocessing by means of the main process.

### Claim 17 (depends on 13)

The electronic device of claim 13, wherein creating and starting a video service process comprises:
acquiring and installing an installation package of the video service process;
after the installation is completed, starting the video service process and establishing a connection between the video service process and the main process.

### Claim 18 (depends on 13)

The electronic device of claim 13, wherein before the step of creating and starting a video service process when the performance resource of the Web client is insufficient, the processor is used for further:
acquiring a duration of performing the video-preprocessing on a frame image that has been subjected to the video-preprocessing in the video data;
calculating a total duration of performing the video-preprocessing on continuous frame images based on the duration of performing the video-preprocessing on the acquired frame image and a preset number of the continuous frame images;
when the total duration is greater than the preset duration threshold, determining that the performance resource of the Web client is insufficient;
when the total duration is not greater than the preset duration threshold, determining that the performance resource of the Web client is sufficient.

### Claim 19 (depends on 18)

The electronic device of claim 18, wherein the step of acquiring the duration of performing the video-preprocessing on the frame image that has been subjected to the video-preprocessing in the video data comprises:
recording a current time point as an initial time point when starting to perform the video-preprocessing on the frame image in the video data;
recording a current time point as an end time point when the video-preprocessing on the frame image is completed;
obtaining the duration of performing the video-preprocessing on the frame image by subtracting the initial time point from the end time point.

### Claim 20 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein the processor is caused to implement an operation of:
providing a prompt to choose whether to create a video service process;
wherein creating and starting a video service process comprises:
in a case that it is chosen to create a video service process, creating and starting the video service process, and establishing a connection between the video service process and the main process.

### Claim 21 (depends on 20)

The non-transitory computer readable storage medium of claim 20, wherein the processor is used for further:
in a case that it is chosen not to create a video service process, performing frame-extraction-processing on the video data to be played;
performing the video-preprocessing on the video data obtained after the frame-extraction-processing, and playing the video data obtained after the video-preprocessing by means of the main process.

### Claim 22 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein creating and starting a video service process comprises:
acquiring and installing an installation package of the video service process;
after the installation is completed, starting the video service process and establishing a connection between the video service process and the main process.

### Claim 23 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein before the step of creating and starting a video service process when the performance resource of the Web client is insufficient, the processor is caused to implement operations of:
acquiring a duration of performing the video-preprocessing on a frame image that has been subjected to the video-preprocessing in the video data;
calculating a total duration of performing the video-preprocessing on continuous frame images based on the duration of performing the video-preprocessing on the acquired frame image and a preset number of the continuous frame images;
when the total duration is greater than the preset duration threshold, determining that the performance resource of the Web client is insufficient;
when the total duration is not greater than the preset duration threshold, determining that the performance resource of the Web client is sufficient.

### Claim 24 (depends on 23)

The non-transitory computer readable storage medium of claim 23, wherein the step of acquiring the duration of performing the video-preprocessing on the frame image that has been subjected to the video-preprocessing in the video data comprises:
recording a current time point as an initial time point when starting to perform the video-preprocessing on the frame image in the video data;
recording a current time point as an end time point when the video-preprocessing on the frame image is completed;
obtaining the duration of performing the video-preprocessing on the frame image by subtracting the initial time point from the end time point.
