This application is based on and claims priority to Chinese Patent Application No. 202011589037.4 filed on Dec. 29, 2020, the content of which is hereby incorporated by reference in its entirety into this disclosure.
The disclosure relates to the field of image processing techniques, and more particularly, to a method, an electronic device and a storage medium for displaying a video.
Short-form videos have become a preferred medium for users to record their lives and share information. When a user is watching a short-form video, a comment panel about the short-form video may be awakened. The user may, through the comment panel, comment on the short-form video and view other users' comments on the short-form video.
The disclosure provides a method, an electronic device, and a storage medium for displaying a video.
According to embodiments of the disclosure, a method for displaying a video is provided. The method includes: displaying a first video through a first video region in a display interface; obtaining display parameters of a comment region in response to an operation of triggering to display comments on the first video; zooming out the first video region to a second video region based on the display parameters of the comment region, such that the comment region is displayed in a region outside the second video region in the display interface; and displaying a second video through the second video region; in which the second video is obtained by zooming out the first video; video images in the second video includes key content of video images in the first video.
According to embodiments of the disclosure, an electronic device is provided. The electronic device includes at least one processor; and a memory communicatively coupled to the at least one processor. The memory is configured to store instructions executable by the at least one processor, and the instructions cause the at least one processor to perform any method provided in embodiments of the disclosure in response that the instructions are executed by the at least one processor.
According to embodiments of the disclosure, a non-transitory computer-readable storage medium having a computer program stored thereon is provided. The computer program is configured to cause a computer to perform any method provided in embodiments of the disclosure.
Other features and advantages of the disclosure will be given in the following descriptions, become apparent in part from the following descriptions, or be learned from the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and obtained through structures pointed out in the descriptions, claims, and drawings.
In order to clearly illustrate technical solutions of embodiments of the disclosure, a brief description of drawings used in embodiments is given below. Obviously, the drawings in the following descriptions are only part embodiments of the disclosure, and for those skilled in the art, other drawings may be obtained according to these drawings without creative labor.
In order to make the objectives, technical solutions, and advantages of the disclosure clearer, the disclosure will be described in detail below with reference to the drawings and embodiments. Obviously, embodiments described herein are only part of embodiments of the disclosure and are not all embodiments of the disclosure. Based on embodiments of the disclosure, other embodiments obtained by those skilled in the art without creative labor are within the scope of the disclosure.
In order to enable those skilled in the art to better understand the technical solutions of the disclosure, the technical solutions in embodiments of the disclosure will be described clearly and completely with reference to the drawings.
It should be noted that the terms such as “first” and “second” in the specification and claims of the disclosure are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way may be interchanged with each other under appropriate circumstances so that the embodiments of the disclosure described herein may be implemented in a sequence other than those illustrated or described herein. The implementation manners described in the following embodiments do not represent all implementation manners consistent with the disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the disclosure as detailed in the appended claims.
The following explains some terms that appear in the description.
1. The term “and/or” in embodiments of the disclosure describes the association relationship of the associated objects, and indicates that there may be three relationships, for example, A and/or B may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character “/” generally indicates that the contextual objects are in an “or” relationship.
2. The term “electronic device” in embodiments of the disclosure may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
3. The term “masking an image” in embodiments of the disclosure refers to blocking or shielding (entirely or partially) an image to be processed by a selected image, graph, or object to control a region or process of image processing. The specific image or object used for blocking or shielding may be called as a mask or template. In the digital image processing, the mask may be a two-dimensional matrix or array, and sometimes a multi-value image. The masking the image may be configured to; (1) extract a region of interest (ROI), in which a ROI mask pre-made may be multiplied with the image to be processed to obtain a ROI image, image values in the ROI image remains unchanged, but image values outside the ROI image all are 0; (2) block or shield, in which the mask is used to block or shield a region on the image so that this region may not participate in the processing or the calculation of processing parameters, or the processing or the statistics may be performed only on the blocked or shielded region; (3) extract structural features, in which structural features similar to the mask in the image may be detected and extracted using similarity variables or image matching methods.
4. The term “image dilation and erosion” in embodiments of the disclosure may be two fundamental morphological operations, which are configured to find an extremely large region and an extremely small region in the image. The dilation is similar to “field being dilated”, a highlighted region or a white part of the image may be expanded, and the highlight region of the result image is greater than the highlight region of the original image. The erosion is similar to “field being eaten away”, the highlighted region or the white part of the image is reduced and refined, and the highlight region of the result image is smaller than the highlight region of the original image.
5. The term “morphological opening operation” in embodiments of the disclosure firstly erodes the image and then dilates the image. The morphological opening operation maliciously eliminates small objects; separates objects at delicate places; smooths larger boundaries but may not significantly change the area.
6. The term “morphological closing operation” in embodiments of the disclosure first dilates the image and then erodes the image. The morphological closing operation may eliminate small black holes (black spots).
When a user is watching a short-form video, a comment panel may occupy a part of a screen in response that the comment panel is awakened. Therefore, a region of displaying the short-form video may become smaller. In order to display and play the short-form video completely, the short-form video may be zoomed out. After zooming out, a video screen of the short-form video may become smaller, which may affect the playing quality.
In view of this, the disclosure proposes a method, an apparatus, an electronic device, and a storage medium for displaying a video to solve the above-mentioned problems. The concept of the disclosure may be to obtain key content from a first video, and display a second video that is obtained by zooming out the first video and includes the key content of video images in the first video. It may be adapted to the video display region to display while ensuring that the key content is not missing, optimize the video display effect, and improve the user's video viewing experience under a case that the video display region is caused to change when the comment region is triggered to display.
In order to make the objectives, technical solutions, and advantages of embodiments of the disclosure clearer, the technical solutions in the embodiments of the disclosure will be described clearly and completely in conjunction with the drawings in the embodiments of the disclosure.
As illustrated in
The terminal devices 30 may also communicate with each other (for example, between 30_1 and 30_2 or 30_N) via the network 40. The network 40 may be a network for information transmission in a broad sense, and may include one or more communication networks, such as a wireless communication network, Internet, a private area network, a local area network, a metropolitan area network, a wide area network, or a cellular data network.
In the description of the disclosure, a single server or a single terminal device is described in detail, but those skilled in the art should understand that the single server 20, terminal device 30, and storage system 10 illustrated are intended to indicate that technical solutions of the disclosure relate to operations of terminal devices, servers, and storage systems but may not imply limitations on the number, types, or locations of terminal devices and servers. It should be noted that when additional modules are added to the illustrated environment or individual modules are removed from the illustrated environment, underlying concepts of the embodiments of the disclosure will not be changed. In addition, although a two-way arrow from the storage system 10 to the server 20 is illustrated in
As illustrated in
In 201, a first video is displayed through a first video region in a display interface.
In 202, display parameters of a comment region are obtained in response to an operation of triggering to display comments on the first video.
In 203, the first video region is zoomed out to a second video region based on the display parameters of the comment region, such that the comment region is displayed in a region outside the second video region in the display interface.
In 204, a second video is displayed through the second video region.
The second video is obtained by zooming out the first video. Video images in the second video include key content of video images in the first video.
As illustrated in
As illustrated in
In the implementation, in conjunction with
In the above method, the display parameters of the second video are determined first. The first video is zoomed out to the second video based on the display parameters of the second video. The zooming out may be performed conveniently and quickly, and the processing speed may be improved.
In detail, when determining the display parameters of the second video region, a difference between a height of the first video region and a height of the comment region may be used as a height of the second video region and a width of the first video region may be used as a width of the second video region.
Since the width of the first video region is directly used as the width of the second video region, the display parameters of the second video region may be quickly determined.
In a possible implementation manner, the height of the first video region is zoomed out to the height of the second video region. The effect of zooming out the first video region to the second video region may be realized.
Since the height is zoomed out and the width is not changed, the processing speed may be increased.
In some embodiments of the disclosure, the second video is finally displayed through the second video region. The above is an explanation of how to determine the second video region, and the following is an explanation of how to determine the second video.
In some embodiments of the disclosure, images in the second video may include key content of video images in the first video. Therefore, when determining the second video, the key content of the video images in the first video may be obtained first. The key content may be for indicating the key region included in the first video region. The first video is processed based on the key content and the display parameters of the second video region to obtain the second video.
With the second video obtained in the above-mentioned manner, it may be adapted to the second video region while ensuring that the key content of the video images in the first video is not missing, optimize the video display effect, and improve the user's video viewing experience under a case that the video display region is caused to change when the comment region is triggered to display.
The following further explains how to obtain the key content of the video images in the first video.
In implementation, multiple video images of the video images in the first video may be obtained. Candidate key content may be obtained based on gray values of the multiple video images. The key content may be determined based on pixels that satisfy a preset condition in the candidate key content.
The candidate key content may be determined and the key content may be determined from the candidate key content. Therefore, the accuracy of the key content may be improved.
In detail, when obtaining the multiple video images of the video images in the first video, the multiple video images may be extracted from the video images at equal intervals, for example, 20 images may be extracted at the equal intervals.
The multiple video images may be extracted at the equal intervals. The processing speed may be increased while making the determined key content more accurate.
For the rapid subsequent processing, after the multiple video images are extracted at the equal intervals, each image may be zoomed out to 0.4 times the original size. It should be noted that 0.4 times is only an example, and the specific multiple is not limited in the disclosure.
In some embodiments of the disclosure, when determining the candidate key content, difference information of adjacent video images in the multiple video images may be determined based on the gray values of the multiple video images. Average difference information may be determined based on multiple pieces of determined difference information. The average difference information may be performed with binarization. Content in a rectangular contour region with a largest area may be used as s the candidate key content.
In the implementation, after the multiple video images are extracted from the first video, difference masks of adjacent images in the multiple video images may be determined based on the gray values of the multiple video images. The determined multiple difference masks may be performed with the morphological opening operation to obtain the average difference mask. The average difference mask may be performed with the morphological closing operation. After performing the morphological closing operation on the average difference mask, the binarization process may be performed and the largest rectangular contour region in the binarized image may be used as the candidate key region.
When determining the difference masks of adjacent images, the mask of each image may be determined, and the difference masks of adjacent images may be determined. The difference mask of adjacent images may be the difference mask of the previous and next images. The difference mask of the previous and next images may be calculated using the adaptive mixed Gaussian background modeling method MOG2.
As illustrated in
After obtaining the difference masks of adjacent images, the morphological opening operation may be performed on each difference mask, and processed difference masks may be summed to obtain a difference mask sum. The averaging may be performed on the difference mask sum to obtain the average difference mask.
After the average difference mask is obtained, the morphological closing operation is performed on the average difference mask, and the average difference mask after the morphological closing operation is performed with the binarization.
The rectangular contour region with the largest area may be found from the difference mask after the binarization process, and the rectangular contour region with the largest area may be used as the candidate key region.
As illustrated in
It should be noted that in some embodiments of the disclosure, the morphological operations may include the morphological opening operation and the morphological closing operation. The morphological opening operation is to erode and then dilate the image, and the morphological closing operation is a reverse process of the morphological opening operation, i.e., to dilate the image first and then erode the image.
Erosion and dilation are for the part with large pixel values, that is, the highlight white part instead of the black part in the image.
Dilation refers to dilate the highlighted part of the image, the field is expanded, and the effect image has a larger highlight region than the original image.
Erosion refers to erode the highlight part of the image, the field is reduced, and the effect image has a smaller highlight region than the original image.
It may determine the candidate key content easily, fast and accurately when the difference information is used to determine the candidate key content.
After the candidate key content is determined, it is determined whether the candidate key content is the key content. The determining may be based on the number of pixels that satisfy the preset condition in the candidate key content.
In the implementation, a number of pixels with values greater than a first threshold in the candidate key content of the average difference mask may be determined. If the ratio of this number to the number of all pixels in the candidate key content is greater than or equal to the second threshold, the candidate key content may be used as the key content.
In some embodiments of the disclosure, the first threshold may be 128, and the second threshold may be 0.9.
For example, in the candidate key content, there are a total of 200 pixels, and there are 198 pixels with values greater than 128, and the ratio of 198 to 200 is greater than 0.9, and the candidate key content is the key content.
In some embodiments of the disclosure, after the candidate key content is determined, it is further determined whether the candidate key content is the key content, and the number of pixels in the candidate key content is used for the determination. Therefore, the accuracy of determining the key content may be further improved.
In some embodiments of the disclosure, there may be multiple pieces of candidate key content determined. The multiple pieces of candidate key content may all be the key content. A smallest bounding box capable of enclosing the rectangular contour region corresponding to each key content may be used as the key region.
For example, as illustrated in
The foregoing method of determining the key region may cover the situation where multiple pieces of key content are determined. The accuracy of determining the key content may be improved.
In some embodiments of the disclosure, another method for determining the key region may be provided, which may be used when the key region is not determined by the above method for determining the key region, or the key region may be determined directly by this method.
The following describes another method of determining the key content.
First, multiple sets of rectilinear coordinate information in the multiple video images may be obtained based on the multiple video images. The key region may be determined based on a region including rectilinear coordinate information with a confidence rate greater than a third threshold.
After the key region is determined, the content in the key region may be used as the key content.
In the implementation, the multiple video images extracted from the video images in the first video may be subjected to edge detection processing, and the multiple video images after the edge detection processing may be subjected to rectilinear detection processing to obtain at least one set of rectilinear coordinate information. The region including rectilinear coordinate information with a confidence rate greater than the third threshold is used as the key region.
As illustrated in
In some embodiments of the disclosure, rectilinear processing may be performed to perform line detection by Hough transformation. Since the boundary lines of the key region are all horizontal or vertical, the prior feature may be used to filter out the detected lines, and only the detected horizontal or vertical lines are kept.
It may be seen from
The rectilinear coordinate information may be used to determine the key region when the key region may not be determined using the first method, so as to improve the accuracy of determining the key region.
In some embodiments of the disclosure, the confidence rate may be determined in the following manner.
Two pieces of target coordinate information may be taken as the centers. The multiple sets of rectilinear coordinate information may be categorized to two categories based on differences between each set of rectilinear coordinate information and the two pieces of target coordinate information. For rectilinear coordinate information in any one of categories, center coordinate information of the corresponding category may be obtained by averaging the rectilinear coordinate information in the corresponding category, any rectilinear coordinate information in the corresponding category may be compared with the center coordinate information of the corresponding category to obtain a difference, and a proportion of coordinate information with an absolute value of the difference greater than or equal to a fourth threshold in the corresponding category may be used as the confidence rate of the rectilinear coordinate information.
For example, coordinates corresponding to the detected straight lines are (y1, y2, y3 . . . , yn). Since a video with upper and lower boundaries may correspond to two horizontal straight lines corresponding to the upper and lower boundaries, the corresponding coordinates of (y1, y2, y3 . . . , yn) may be performed with a KMeans clustering with a cluster number of 2, and the number of KMeans clustering iterations may be set to 10, and the coordinate information representation after clustering may be (y_up, y_bottom).
The KMeans clustering process is as follows. One-dimensional data (x1, x2 . . . , x10) may be given as illustrated in
In the first iteration, distances from c1 to (x1, x2 . . . , x10) may be calculated and distances from c2 to (x1, x2 . . . , x10) may be calculated. For x1, since d (x1, c1)<=d (x1, c2), x1 belongs to c1. x2 to x10 may be processed as the same manner as x1 to obtain the result of the first iteration, as illustrated in
The cluster centers may be updated as c1=(x1+x2+x3)/3, c2=(x4+x5+x6+x7+x8+x9+x10)/7. After the first iteration, the new cluster centers move to the locations as illustrated in
The subsequent iterations are the same as the first iteration. After 10 iterations, the cluster centers c1 and c2 are illustrated in
After 10 iterations, the locations of c1 and c2 is the locations of the final cluster centers.
In some embodiments of the disclosure, when:
std::abs(yi−y_up)<=2, numUpCount=numUpCount+1;
std::abs(yi−y_bottom)<=2, numBottomCount=numBottomCount+1.
The confidence rates corresponding to the detected upper and lower straight lines are upLineProb and downLineProb respectively:
upLineProb=numUpCount/20;
downLineProb=numBottomCount/20.
If (std::abs(top−y_up)<=3 and upLineProb>=0.4 and (std::abs(bottom−y_bottom<=3) and downLineProb>=0.4, and if the result satisfies this condition, the detected locations may also very incredible, so the region including straight lines that satisfy this condition may be used as the key region.
It may make the key region including the selected straight lines more accurate by using the above method to determine the confidence rate of the straight line.
In some embodiments of the disclosure, the first video is processed based on the key content and the display parameters of the second video region to obtain the second video.
In detail, under a constraint that the key region after zooming out the first video is fully displayed in the second video region, a zoom ratio of the first video may be determined based on the key content and the display parameters of the second video region. The first video may be zoomed out based on the zoom ratio to obtain the second video.
Considering that the key region after zooming out the first video may be fully displayed in the second video region as a constraint, it is possible to adapt the second video display region for display while ensuring that the key content is not missing, and optimize the video display effect and improve the user's video viewing experience.
The following describes how to determine the zoom ratio of the first video.
A first zoom ratio may be determined based on a height of the key region and a height of the second video region. A second zoom ratio may be determined based on a width of the key region and a width of the second video region. A maximum of the first zoom ratio and the second zoom ratio may be used as the zoom ratio of the first video.
The maximum value may be selected from the first zoom ratio and the second zoom ratio as the zoom ratio of the first video. Therefore, it may be ensured that the key content is completely displayed in the second video region, the video display effect may be optimized, and the user's video viewing experience may be improved.
After the zoom ratio of the first video is determined, the first video is zoomed out based on the zoom ratio to obtain the zoomed-out video, and video images in the key region in the zoomed-out video is used as the second video.
The second video obtained in the above manner may be adapted to the video display region for display while ensuring that the key content is not missing, optimize the video display effect, and improve the user's video viewing experience.
For ease of understanding, examples are used to illustrate the disclosure below.
1. When a user (User) launches an application (App), she/he may request normal video (Video) stream data from the server (Server), for example:
where, width is a width of the original video, height is a height of the original video, VideoDisplayLocationlnfo is the key region, leftRatio is a ratio of the left boundary of the key region to the left boundary of the display interface, topRatio is a ratio of the upper boundary of the key region to the upper boundary of the display interface, widthRatio is a ratio of the width of the key region to the width of the original video, and heightRatio is a ratio of the height of the key region to the height of the original video.
2. The video content is centered and played on the screen in the same proportion, for example:
It should be noted that the screen herein is the video display region before zooming out.
As illustrated in
3. The user clicks the comment button or other buttons that may expand the comment panel to start to expand the comment panel (CommentPanel), for example:
As illustrated in
4. The display region after zooming out may be calculated by the screen width and height and the fully-expanded comment panel, for example:
where, the height of the display region after zooming out is the difference between the height of the display region before zooming out and the height of the comment panel.
5. The current relative location of the content of the key region on the screen is calculated by VideoDisplayLocationlnfo, and the location of the video is moved and zoomed out based on the relative location and the progress of the comment panel expansion, for example:
where, the width of the original key region is 1080 and the height is 960.
As illustrated in
In applications, the expansion and hiding progress of the comment panel (when the comment panel is completely expanded, it may be 1, and when the comment panel is completely hidden, it may be 0) may be monitored, and the displacement and zoom of the video display region may be adjusted dynamically, for example:
1): The comment panel expands 768;
2): The current expansion ratio of 0.5 is calculated;
3): The video is shifted upward by 162;
4): The video is zoomed out by 0.75.
The calculation of each progress is the same until it is fully expanded or completely hidden.
As illustrated in
The first displaying unit 2101 is configured to display a first video through a first video region in a display interface.
The first obtaining unit 2102 is configured to obtain display parameters of a comment region in response to an operation of triggering to display comments on the first video.
The zooming unit 2103 is configured to zoom out the first video region to a second video region based on the display parameters of the comment region, such that the comment region is displayed in a region outside the second video region in the display interface.
The second displaying unit 2104 is configured to display a second video through the second video region; in which the second video is obtained by zooming out the first video; video images in the second video includes key content of video images in the first video.
In some embodiments, the zooming unit is configured to: obtain display parameters of the first video region; determine display parameters of the second video region based on the display parameters of the first video region and the display parameters of the comment region; and zoom out the first video region to the second video region based on the display parameters of the second video region.
In some embodiments, the zooming unit is configured to: use a difference between a height of the first video region and a height of the comment region as a height of the second video region; and use a width of the first video region as a width of the second video region.
In some embodiments, the zooming unit is configured to: zoom out the height of the first video region to the height of the second video region.
In some embodiments, the apparatus further includes: a second obtaining unit configured to obtain the key content of the video images in the first video, the key content for indicating a key region in the first video region; and a processing unit configured to obtain the second video by processing the first video based on the key content and the display parameters of the second video region.
In some embodiments, the processing unit is configured to: determine a zoom ratio of the first video based on the key content and the display parameters of the second video region under a constraint that the key region after zooming out the first video is fully displayed in the second video region; and obtain the second video by zooming out the first video based on the zoom ratio.
In some embodiments, the processing unit is configured to: determine a first zoom ratio based on a height of the key region and a height of the second video region; determine a second zoom ratio based on a width of the key region and a width of the second video region; and use a maximum of the first zoom ratio and the second zoom ratio as the zoom ratio of the first video.
In some embodiments, the processing unit is configured to: obtain a zoomed-out video by zooming out the first video based on the zoom ratio; and use video images in the key region in the zoomed-out video as the second video.
In some embodiments, the apparatus further includes: a third obtaining unit configured to obtain multiple video images in the first video; a first determining unit configured to obtain candidate key content based on gray values of the multiple video images; and a second determining unit configured to determine the key content based on pixels satisfying a preset condition in the candidate key content.
In some embodiments, the third obtaining unit is configured to: extract the multiple video images from the video images in the first video at equal intervals.
In some embodiments, the first determining unit is configured to: determine difference information of adjacent video images in the multiple video images based on the gray values of the multiple video images; determine average difference information based on multiple pieces of determined difference information; and use content in a rectangular contour region with a largest area as the candidate key content after binarizing the average difference information.
In some embodiments, the first determining unit is configured to: determine a number of pixels with values greater than a first threshold in the candidate key content; and use the candidate key content as the key content in response that a ratio of the number to a number of all pixels in the candidate key content is greater than or equal to a second threshold.
In some embodiments, the first determining unit is configured to use a smallest bounding box capable of enclosing a rectangular contour region corresponding to each key content as the key region under a case that multiple pieces of key content are included.
In some embodiments, the apparatus further includes: a third determining unit configured to obtain multiple sets of rectilinear coordinate information in the multiple video images based on the multiple video images; and determine the key region based on a region including rectilinear coordinate information with a confidence rate greater than a third threshold.
In some embodiments, the third determining unit is configured to determine the confidence rate in the following manner of: categorizing the multiple sets of rectilinear coordinate information to two categories based on differences between each set of rectilinear coordinate information and two pieces of target coordinate information, the two pieces of target coordinate information being centers; for rectilinear coordinate information in any one of categories, obtaining center coordinate information of the corresponding category by averaging the rectilinear coordinate information in the corresponding category; comparing any rectilinear coordinate information in the corresponding category with the center coordinate information of the corresponding category to obtain a difference; and using a proportion of coordinate information with an absolute value of the difference greater than or equal to a fourth threshold in the corresponding category as the confidence rate of the rectilinear coordinate information.
The electronic device 130 according to some embodiments of the disclosure may be described below with reference to
As illustrated in
The bus 133 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus structures.
The memory 132 may include a readable medium in form of volatile memory, such as a random-access memory (RAM) 1321 and/or a high-speed cache memory 1322, and may further include a read-only memory (ROM) 1323.
The memory 132 may also include a program/utility tool 1325 having a set of (at least one) program modules 1324. Such program modules 1324 may include but be not limited to: an operating system, one or more application programs, other program modules, and program data. Each of the examples or some combination of the examples may include the realization of the network environment.
The electronic device 130 may also communicate with one or more external devices 134 (such as, a keyboard, a pointing device, etc.). Furthermore, the electronic device 130 may also communicate with one or more communication devices enabling a user to interact with the electronic device 130 and/or other devices (such as a network card, modem, etc.) enabling the electronic device 1300 to communicate with one or more computer devices. This communication may be performed via the input/output (I/O) interface 135. Also, the electronic device 130 may communicate with one or more networks (such as a local area network (hereafter referred to as LAN), a wide area network (hereafter referred to as WAN) and/or a public network such as an Internet) through a network adapter 136. As illustrated in
In some possible implementation manners, various aspects of the method for displaying the video provided in the disclosure may also be implemented in form of program product including program codes. When the program product runs on a computer device, the program codes may make the computer device execute the actions in the method for displaying the video according to various embodiments of the disclosure described above.
The program product may adopt any combination of one or more readable media. The readable media may be readable signal media or readable storage media. The readable storage media may be, for example, but be not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or a combination thereof. More specific examples (non-exhaustive list) of the readable storage media may include: electrical connections with one or more wires, portable disks, hard disks, random-access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
The program product provided in the embodiments of the disclosure may adopt a compact disc read-only memory (CD-ROM) and include program codes, and may be run on an electronic device. However, the program product of the disclosure is not limited thereto. In the disclosure, the readable storage medium may be any tangible medium that contains or stores programs, and the programs may be used by or in combination with an instruction execution system, apparatus, or device.
The readable signal media may include data signals propagated in baseband or as a part of carriers, which may carry readable program codes therein. The propagated data signals may employ many forms, including, but being not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. The readable signal media may also be any readable media other than the readable storage media, and the readable media may send, propagate, or transmit programs used by or in combination with the instruction execution system, apparatus, or device.
The program codes contained on the readable media may be transmitted by any suitable media, including, but being not limited to, wireless, wired, optical cable, RF (radio frequency), etc., or any suitable combination thereof.
The program codes for performing operations of the disclosure may be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages such as Java, C++, as well as conventional procedural programming language such as “C” language or similar programming language. The program codes may be executed entirely on the user electronic device, executed partly on the user electronic device, executed as an independent software package, executed partly on the user electronic device and partly on the remote electronic device, or executed entirely on the remote electronic device or service. In the case of the remote electronic device, the remote electronic device may be connected to the user electronic device through any kind of networks including a local area network (LAN) or a wide area network (WAN), or connected to an external electronic device (for example, connected through Internet of the connected service provider).
It should be noted that although several units or subunits of the apparatus are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to the embodiments of the disclosure, features and functions of two or more units described above may be embodied in one unit. Conversely, features and functions of one unit described above may be further divided into multiple units.
In addition, although the operations of the method of the disclosure are described in a specific order in the drawings, this does not require or imply that these operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired result. Additionally, or alternatively, some actions may be omitted, multiple actions may be combined into one action for execution, and/or one action be decomposed into multiple actions for execution.
Those skilled in the art should understand that the embodiments of the disclosure may be provided as methods, systems, or computer program products. Therefore, the disclosure may adopt the form of complete hardware embodiment, complete software embodiment, or embodiment combining software and hardware. Moreover, the disclosure may also adopt the form of computer program product implemented on one or more computer-usable storage media (such as disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
The disclosure is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It should be understood that each process and/or block in the flowcharts and/or block diagrams, and the combination of processes and/or blocks in the flowcharts and/or block diagrams may be implemented by computer program instructions. These computer program instructions may be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or a processor of other programmable image zooming equipment to generate a machine, so that the instructions executed by the computer or the processor of other programmable image zooming equipment may generate a device that implements functions specified in one process or multiple processes in the flowcharts and/or one block or multiple blocks in the block diagrams.
These computer program instructions may also be stored in a computer-readable memory that may guide a computer or other programmable image zooming equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The instruction device implements functions specified in one process or multiple processes in the flowcharts and/or one block or multiple blocks in the block diagram.
These computer program instructions may also be loaded on a computer or other programmable image zooming equipment, so that a series of operations are executed on the computer or other programmable equipment to produce computer-implemented processing. Therefore, the instructions executed on the computer or other programmable equipment may provide actions for implementing functions specified in one process or multiple processes in the flowcharts and/or one block or multiple blocks in the block diagram.
Although the embodiments of the disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they learn the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the embodiments and all changes and modifications falling within the scope of the disclosure.
Obviously, those skilled in the art may make various changes and modifications to the disclosure without departing from the spirit and scope of the disclosure. In this way, if these modifications and changes of the disclosure fall within the scope of the claims of the disclosure and their equivalent technologies, the disclosure is also intended to include these modifications and changes.
Number | Date | Country | Kind |
---|---|---|---|
202011589037.4 | Dec 2020 | CN | national |