CN109618216B - Method, device and equipment for displaying video loading state identification and storage medium - Google Patents
Method, device and equipment for displaying video loading state identification and storage medium Download PDFInfo
- Publication number
- CN109618216B CN109618216B CN201811594999.1A CN201811594999A CN109618216B CN 109618216 B CN109618216 B CN 109618216B CN 201811594999 A CN201811594999 A CN 201811594999A CN 109618216 B CN109618216 B CN 109618216B
- Authority
- CN
- China
- Prior art keywords
- video
- played
- loading
- dimension
- state
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012544 monitoring process Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 238000002360 preparation method Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 6
- 238000013507 mapping Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000011022 operating instruction Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- 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/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8352—Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for displaying a video loading state identifier, wherein the method comprises the following steps: when a playing request of a video to be played by a user is received, displaying a cover of the video to be played; if the video resource of the video to be played meeting the first preset condition is not acquired within the first preset time, displaying a video loading state identifier; and if the video resource of the video to be played meeting the first preset condition is acquired within the first preset time, starting to play the video resource of the video to be played. In the embodiment of the disclosure, after the play request is received, the video loading state identifier is not directly displayed, and by setting the first preset time, the video loading state identifier is displayed only when the video resource meeting the first preset condition is not acquired within the first preset time.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a video loading status identifier.
Background
When a user watches a video, when the loading speed of the video is lower than the playing speed of the video, a stuck condition occurs, and at the moment, a loading state identifier is displayed to indicate that the video is in the stuck state.
At present, a common method for marking whether a loading state is displayed is to display the mark of the loading state when a video starts to be loaded, hide the mark of the loading state when the video starts to be played, display the mark of the loading state when the video is blocked, hide the mark of the loading state when the video is stopped, and influence whether the mark of the loading state needs to be displayed by a plurality of factors.
That is to say, the identifier of the loading state associates the playing state and the loading state of the video, and the like, but errors are likely to occur when the identifier of the loading state is displayed, which affects user experience.
Disclosure of Invention
The purpose of this disclosure is to solve at least one of the above technical drawbacks and to improve the user experience. The technical scheme adopted by the disclosure is as follows:
in a first aspect, the present disclosure provides a method for displaying a video loading status identifier, the method including:
when a playing request of a video to be played by a user is received, displaying a cover of the video to be played;
if the video resource of the video to be played meeting the first preset condition is not acquired within the first preset time, displaying a video loading state identifier;
and if the video resource of the video to be played meeting the first preset condition is acquired within the first preset time, starting to play the video resource of the video to be played.
In an optional embodiment of the first aspect of the present disclosure, after starting to play the video resource of the video to be played, the method further includes:
monitoring state identifiers of all dimensions influencing the video loading state identifiers;
if the state identification of any dimension is monitored to be changed, determining a display state mark of the video loading state identification according to the current state identification of each dimension;
and determining whether the video loading state identification needs to be displayed according to the determined display state mark.
In an optional embodiment of the first aspect of the present disclosure, if it is determined that the video loading status identifier needs to be displayed, the method further includes:
if the video resource of the video to be played meeting the second preset condition is not acquired within the second preset time, displaying a video loading state identifier;
and if the video resource of the video to be played meeting the second preset condition is acquired within the second preset time, not displaying the video loading state identification.
In an optional embodiment of the first aspect of the present disclosure, a binary string is used to represent a dimension that affects the video loading status identifier, one bit of the binary string corresponds to a dimension that affects the video loading status identifier, and a value of the one bit is a status identifier of the dimension corresponding to the bit.
In an optional embodiment of the first aspect of the present disclosure, determining a status flag for displaying a video loading status identifier according to a current status identifier of each dimension includes:
and calculating the current state identification of each dimension according to a preset logical operation relation to obtain a logical operation result, wherein the logical operation result is used as a display state mark.
In an optional embodiment of the first aspect of the present disclosure, the dimension affecting the video loading status identification comprises at least one of the following information:
video control information and video loading information;
the video control information comprises video playing control information and/or video pause control information;
the video loading information includes a relationship between a video loading speed and a video playing speed.
In a second aspect, the present disclosure provides an apparatus for displaying a video loading status identifier, the apparatus comprising:
the video cover display module is used for displaying the cover of the video to be played when receiving a playing request of a user for the video to be played;
the state identifier display module is used for displaying the video loading state identifier when the video resource of the video to be played meeting the first preset condition is not acquired within the first preset time length;
the video resource playing module is used for starting to play the video resource of the video to be played when the video resource of the video to be played meeting the first preset condition is acquired within the first preset time.
In an optional embodiment of the second aspect of the present disclosure, the status flag displaying module is further configured to:
monitoring state identifiers of all dimensions influencing the video loading state identifiers after the video resources of the video to be played start to be played;
if the state identification of any dimension is monitored to be changed, determining a display state mark of the video loading state identification according to the current state identification of each dimension;
and determining whether the video loading state identification needs to be displayed according to the determined display state mark.
In an optional embodiment of the second aspect of the present disclosure, the status flag displaying module is further configured to:
if the video loading state identification is determined to be required to be displayed and the video resource of the video to be played meeting the second preset condition is not acquired within the second preset time, displaying the video loading state identification;
and if the video resource of the video to be played meeting the second preset condition is acquired within the second preset time length, the video resource is not displayed.
In an optional embodiment of the second aspect of the present disclosure, a binary string is used to represent a dimension of the affected video loading status identifier, one bit of the binary string corresponds to a dimension of the affected video loading status identifier, and a value of the one bit is a status identifier of the dimension corresponding to the bit.
In an optional embodiment of the second aspect of the present disclosure, when determining, according to the current state identifier of each dimension, a state identifier displaying module is specifically configured to:
and calculating the current state identification of each dimension according to a preset logical operation relation to obtain a logical operation result, wherein the logical operation result is used as a display state mark.
In an optional embodiment of the second aspect of the present disclosure, the dimension affecting the video loading status identification comprises at least one of the following information:
video control information and video loading information;
the video control information comprises video playing control information and/or video pause control information;
the video loading information includes a relationship between a video loading speed and a video playing speed.
In a third aspect, the present disclosure provides an electronic device comprising a processor and a memory;
a memory for storing computer operating instructions;
a processor for performing the method as shown in any embodiment of the first aspect of the present disclosure by invoking computer operational instructions.
In a fourth aspect, the present disclosure provides a computer readable storage medium storing a computer program, the storage medium storing at least one instruction, at least one program, set of codes, or set of instructions, the at least one instruction, the at least one program, set of codes, or set of instructions being loaded and executed by a processor to implement a method as shown in any one of the embodiments of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the disclosure, after a play request of a video to be played by a user is received, a cover of the video is displayed within a time of a preparation action of playing the video, instead of directly displaying a video loading state identifier, and by setting a first preset time length, if a video resource of the video to be played meeting a first preset condition is obtained within the first preset time length, the video is directly played, and the video loading state identifier is not displayed at this time, that is, when the play request of the video to be played by the user is received, the video loading state identifier is displayed only when the video resource of the video to be played meeting the first preset condition is not obtained within the first preset time length, and compared with the existing scheme, the user experience is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings that are required to be used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a schematic flowchart illustrating a method for displaying a video loading status identifier according to an embodiment of the disclosure;
FIG. 2 is a schematic structural diagram of an apparatus for displaying a video loading status indicator according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below by referring to the drawings are exemplary only for explaining technical senses of the present disclosure, and are not construed as limiting the present disclosure.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
When a user watches a video, when the loading speed of the video is less than the playing speed of the video, the video loading state identification can be displayed, in the prior art, the common method is that when the video loading state identification is displayed, when the video starts to be loaded, the video loading state identification is hidden when the video starts to be played, the video loading state identification is displayed when the video is blocked, the video loading state identification is hidden, when the video is suspended, the video loading state identification is also hidden, and namely, the display state of the video loading state identification is influenced by multiple dimensions. Because the video loading state identifier associates the playing state and the loading state of the video, an error is easily caused when determining whether to display the video loading state identifier, for example, a circle is displayed during the pause, when the user clicks the pause during the pause, the circle needs to be hidden, if the user clicks the playing again, but the video is still in the pause, at this time, the circle needs to be displayed, but the display state display error is caused because the display is not performed, and the user experience is also influenced because the video loading state identifier is displayed when the video starts to be played. The embodiment of the disclosure provides a method for displaying video loading state identification.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
An embodiment of the present disclosure provides a method for displaying a video loading status identifier, which may include, as shown in fig. 1:
step S110, when a playing request of a user for a video to be played is received, displaying a cover of the video to be played;
step S120, if the video resource of the video to be played meeting the first preset condition is not acquired within the first preset time, displaying a video loading state identifier;
step S130, if the video resource of the video to be played meeting the first preset condition is obtained within the first preset time, starting to play the video resource of the video to be played.
In the embodiment of the disclosure, after a play request of a video to be played by a user is received, a cover of the video is displayed within a time of a preparation action of playing the video, instead of directly displaying a video loading state identifier, and by setting a first preset time length, if a video resource of the video to be played meeting a first preset condition is obtained within the first preset time length, the video is directly played, and the video loading state identifier is not displayed at this time, that is, when the play request of the video to be played by the user is received, the video loading state identifier is displayed only when the video resource of the video to be played meeting the first preset condition is not obtained within the first preset time length, and compared with the existing scheme, the user experience is effectively improved.
Step S110, when a play request of the user for the video to be played is received, displaying a cover of the video to be played.
The video to be played is an online video, and the cover of the video may be a video frame image of any frame of the video to be played.
In practical application, after a user triggers a play request of an online video, it takes some time to perform some preparation actions to play the video, for example, it needs to acquire some video resources first and perform some preparation actions such as initializing pictures for playing the video. In the embodiment of the disclosure, after a play request triggered by a user is received, a cover image of a video is displayed in a period of performing a video preparation action, instead of directly displaying a video loading state identifier, so that the experience of the user can be improved.
Step S120, if the video resource of the video to be played meeting the first preset condition is not acquired within the first preset duration, displaying the video loading status identifier.
Step S130, if the video resource of the video to be played meeting the first preset condition is obtained within the first preset time, starting to play the video resource of the video to be played.
The starting time of the first preset duration is the time when the play request is received, and the specific duration of the first preset duration may be set according to actual needs, which is not limited in the embodiment of the present disclosure, and may be set to 0.8 ms, for example.
The first preset condition may refer to how many video resources need to be acquired and whether the initialization of the playing picture is completed, and may be set according to actual needs in actual applications. In an example, the first preset condition may be how many video frame images need to be acquired and whether the initialization of the playing picture is completed, where how many video frame images need to be acquired may be that the video needs to be played only by acquiring 100 video frame images, or may also be that the video needs to be played only by acquiring how many seconds of video resources, for example, the video needs to be played only by acquiring 2 seconds of video resources.
That is to say, when a playing request of a user for a video to be played is received, a cover of the video to be played is displayed first, resources of the video are acquired while the cover is displayed, and a playing picture is initialized, if the acquired video resources within a first preset time length do not meet a first preset condition, after the first preset time length is reached, a video loading state identifier is displayed, and the video is played until the acquired video resources meet the playing condition. If the video resource acquired at any moment in the first preset duration meets the first preset condition, the video cover can be hidden, and the acquired video resource is played.
In an example, the first preset duration is set to 0.8 ms, and the first preset condition is that a video resource of 2 seconds is acquired and the initialization of the playing picture is completed. When a playing request of a user for a video to be played is received, firstly displaying a cover of the video to be played, simultaneously acquiring video resources and initializing a playing picture, and after 0.8 millisecond arrives, if the acquired video resources are 1 second video resources and do not meet a first preset condition, namely 2 second video resources, hiding the video cover and displaying a video loading state identifier, or when 0.8 millisecond arrives, although the 2 second video resources are acquired, the initialization of the playing picture is not completed, hiding the video cover and displaying the video loading state identifier; if the video resource of 2 seconds is acquired and the initialization of the playing picture is completed in 0.5 millisecond, the first preset condition is met, and at this time, the video cover is hidden and the video resource is played.
In this embodiment of the present disclosure, after starting to play the video resource of the video to be played, the method further includes:
monitoring state identifiers of all dimensions influencing the video loading state identifiers;
if the state identification of any dimension is monitored to be changed, determining a display state mark for displaying the video loading state identification according to the current state identification of each dimension;
and determining whether the video loading state identification needs to be displayed according to the determined display state mark.
Each dimension influencing the video loading state identification refers to a factor influencing whether the video loading state identification is displayed or not in practical application; the state identifier of a dimension is used to indicate different states of the dimension, that is, whether an influence corresponding to the dimension exists, and specifically what form is used to indicate different state identifiers, which is not limited in the embodiment of the present disclosure, for example, a number 1 may be used to indicate that the influence of the dimension exists, and a number 0 indicates that the influence of the dimension does not exist. Specifically, for example, one dimension (i.e., factor) that affects the video loading status flag may be video control information, specifically, video pause control information, that is, control of the user on the pause status of the video, in the video playing process, if the user clicks the video pause, the status flag corresponding to the video pause control information is 1, otherwise, the status flag is 0.
The display status flag of the video loading status flag is used to indicate the display status of the video loading status flag, that is, different display status flags may be used to respectively indicate that the video loading status flag is displayed and that the video loading status flag is not displayed, and specifically what form is used to indicate the different display status flags. If the tube (correct) representation is adopted to display the video loading status identifier, the false representation does not need to display the video loading status identifier.
That is to say, after the video starts to be played, the state identifiers of each dimension influencing the video loading state identifier need to be monitored in real time, if the state identifier of any dimension changes, the current state identifier of each dimension needs to be acquired, the display state identifier of the video loading state identifier is determined according to the acquired current state identifier, and then whether the video loading state identifier needs to be displayed is determined according to the determined display state identifier.
In practical application, when the display status flag of the video loading status flag is determined according to the current status flag of each dimension, the display status flag represented by the current status flag may be determined according to a pre-configured determination rule, for example, the determination rule may be a pre-configured logical operation relational expression. Besides, the relation mapping table can be pre-configured, and then the display state flag represented by the current state identifier of each dimension can be determined according to the pre-configured relation mapping table.
In an example, all possible situations of the state identifiers of each dimension are counted, which situations can be used as display state identifiers needing to display the video loading state identifiers and which situations can be used as display state identifiers needing not to display the video loading state identifiers are determined in advance, and the determined conclusion is summarized into a relation mapping table and configured in the terminal device. If the state identifier of any dimension is found to be changed, determining the condition of the current state identifier according to the obtained current state identifier of each dimension, finding the display state identifier represented by the current state identifier condition in the preconfigured relational mapping table, and then determining whether the video loading state identifier needs to be displayed according to the determined display state identifier.
In an embodiment of the present disclosure, the dimension affecting the video loading status identification may include at least one of the following information:
video control information and video loading information;
the video control information comprises video playing control information and/or video pause control information;
the video loading information includes a relationship between a video loading speed and a video playing speed.
The video control information refers to specific settings of a user on a state of playing a video, and may include video playing control information, video pause control information, and the like. The video playing control information indicates whether a playing request triggered by a user is received, and in practice, the received playing request triggered by the user can be a playing request for continuously playing a video after the video playing is paused and triggered by the user; the video pause control information indicates whether a user-triggered request for pausing the playing of the video is received, for example, a user-triggered request for pausing the playing of the video is received in the process of playing the video.
The video loading information refers to a relationship between a video loading speed and a video playing speed in a video playing process, and may include, for example, that the current video loading speed is not less than the video playing speed, and the current video loading speed is less than the video playing speed. The video loading speed can be video resources acquired from the server every second, for example, the video loading speed is 300KB/S when the video resources are acquired from the server every second, the video playing speed can be video resources played every second, for example, the video playing speed is 200KB/S when the video playing speed is 200 KB/S. The specific state information when the video loading speed is not less than the video playing speed may be referred to as smooth playing information hereinafter, and the specific state information when the current video loading speed is less than the video playing speed may be referred to as stuck state information hereinafter.
In the embodiment of the present disclosure, a binary string may be used to represent a dimension of the affected video loading status identifier, where one bit of the binary string corresponds to one dimension of the affected video loading status identifier, and a value of the one bit is a status identifier of the dimension corresponding to the bit.
That is to say, a binary string may be used to represent the dimension of the affected video loading status identifier, each bit in the binary string corresponds to a dimension of the affected video loading status identifier, and when the value of a bit is different, different states of the dimension of the affected video loading status identifier corresponding to the bit are represented.
In one example, there are 4 dimensions that affect the video loading status identification, namely video play control information, video pause control information, pause status information, and smooth play information. At this time, the first bit in the binary string may correspond to video playing control information, the second bit may correspond to video pause control information, the third bit may correspond to pause state information, and the fourth bit may correspond to smooth playing information, where if the video is in a pause control state, the second bit may be set to 1, and when the video is no longer in the pause state, the second bit may be set to 0.
In the embodiment of the present disclosure, determining a status flag for displaying a video loading status identifier according to a current status identifier of each dimension includes:
and calculating the current state identification of each dimension according to a preset logical operation relation to obtain a logical operation result, wherein the logical operation result is used as a display state mark.
Wherein, the preset logical operation relationship can be set according to the actual requirement, and the condition that each dimension is different state identification is calculated in advance by adopting the preset logical operation relationship, which logical operation results can be used as the display state mark for showing the video loading state identification needing to be displayed and which logical operation results can be used as the display state mark for showing the video loading state identification needing not to be displayed are summarized, and the conclusion is configured in the terminal device, so that in practical application, when the state identifier of any dimension is found to be changed, then according to the obtained current state identification of each dimension, the operation is carried out according to the preset logical operation relation to obtain the logical operation result, the display state identification which is specifically expressed is found from the obtained logical operation result in the configured conclusion, and then determining whether the video loading state identification needs to be displayed according to the determined display state mark.
In an example, 4 dimensions affecting the video loading state identifier exist, including video playing control information, video pause control information, stuck state information and smooth playing information, it is monitored that the state identifier of the stuck state information is changed from 0 to 1, at this time, the dimension obtaining the 4 identifiers affecting the video loading state is the current state identifier, the operation is performed according to a preset logical operation relation to obtain a logical operation result, it is determined that a display state mark corresponding to the logical operation result indicates that the video loading state identifier needs to be displayed, and at this time, the video loading state identifier is displayed.
In this embodiment of the present disclosure, if it is determined that the video loading status identifier needs to be displayed, the method further includes:
if the video resource of the video to be played meeting the second preset condition is not acquired within the second preset time, displaying a video loading state identifier;
and if the video resource of the video to be played meeting the second preset condition is acquired within the second preset time, not displaying the video loading state identifier.
The starting time of the second preset time length is the time when the video loading state identifier needs to be displayed is determined, and the specific time length of the second preset time length may be set according to actual needs, which is not limited in the embodiment of the present disclosure, and may be set to 0.3 milliseconds, for example.
The second preset condition refers to how many video resources are required to be acquired to continue playing the video based on the current playing state, and can be set according to actual needs in actual application. In an example, the second preset condition may be how many video frame images are required to be acquired to continue playing the video, for example, how many video frame images are required to be acquired to continue playing the video, or may also be how many seconds of video resources are required to continue playing the video, for example, how many seconds of video resources are required to be acquired to continue playing the video.
That is, when it is determined that the video loading state identifier needs to be displayed, the video loading state identifier is not displayed first, the buffering time for acquiring the video resource is given, and if the video resource acquired within the second preset time does not meet the second preset condition, the video loading state identifier is displayed after the second preset time is reached; and if the video resource acquired at any moment in the second preset time length meets the second preset condition, continuing to play the video.
In an example, the second preset duration is set to 0.3 ms, and the second preset condition is that a video resource of 2 seconds is acquired. When the video loading state identifier is determined to be required to be displayed, the video loading state identifier is not displayed, video resources are acquired at the same time, if the video resources arrive in 0.3 milliseconds, the acquired video resources are 1 second video resources and do not meet a second preset condition, namely 2 second video resources, and the video loading state identifier is displayed at the moment; if the video resource is already 2 seconds video resource in 0.1 millisecond, the first preset condition, namely 2 seconds video resource, is met, and the video is continuously played.
Based on the same principle as the method shown in fig. 1, an embodiment of the present disclosure further provides an apparatus 20 for displaying a video loading status identifier, as shown in fig. 2, where the apparatus 20 may include: a video cover display module 210, a status identification display module 220, and a video asset playback module 230, wherein,
the video cover display module 210 is configured to display a cover of a video to be played when a play request of a user for the video to be played is received;
the state identifier display module 220 is configured to display a video loading state identifier when a video resource of a video to be played meeting a first preset condition is not acquired within a first preset time period;
the video resource playing module 230 is configured to start to play the video resource of the video to be played when the video resource of the video to be played meeting the first preset condition is acquired within the first preset time.
In the embodiment of the present disclosure, the state identifier display module is further configured to:
monitoring state identifiers of all dimensions influencing the video loading state identifiers after the video resources of the video to be played start to be played;
if the state identification of any dimension is monitored to be changed, determining a display state mark of the video loading state identification according to the current state identification of each dimension;
and determining whether the video loading state identification needs to be displayed according to the determined display state mark.
In the embodiment of the present disclosure, the state identifier display module is further configured to:
if the video loading state identification is determined to be required to be displayed and the video resource of the video to be played meeting the second preset condition is not acquired within the second preset time, displaying the video loading state identification;
and if the video resource of the video to be played meeting the second preset condition is acquired within the second preset time, not displaying the video loading state identification.
In the embodiment of the disclosure, a binary string is used to represent the dimension of the affected video loading status identifier, one bit of the binary string corresponds to one dimension of the affected video loading status identifier, and the value of one bit is the status identifier of the dimension corresponding to the bit.
In an optional embodiment of the second aspect of the present disclosure, when the status identifier display module determines, according to the current status identifier of each dimension, to display the status identifier of the video loading status identifier, the status identifier display module is specifically configured to:
and calculating the current state identification of each dimension according to a preset logical operation relation to obtain a logical operation result, wherein the logical operation result is used as a display state mark.
In the embodiment of the present disclosure, the dimension affecting the video loading status identifier includes at least one of the following information:
video control information and video loading information;
the video control information comprises video playing control information and/or video pause control information;
the video loading information includes a relationship between a video loading speed and a video playing speed.
The apparatus for displaying a video loading status identifier according to the embodiments of the present disclosure may execute a method for displaying a video loading status identifier provided by the embodiments of the present disclosure, and the implementation principles are similar, the actions performed by each module in the apparatus for displaying a video loading status identifier according to the embodiments of the present disclosure correspond to the steps in the method for displaying a video loading status identifier according to the embodiments of the present disclosure, and for the detailed functional description of each module of the apparatus for displaying a video loading status identifier, reference may be specifically made to the description in the corresponding method for displaying a video loading status identifier shown in the foregoing, and details are not repeated here.
Based on the same principle as the method for displaying the video loading status identifier in the embodiment of the present disclosure, an embodiment of the present disclosure further provides an electronic device, which may include but is not limited to: a processor and a memory; a memory for storing computer operating instructions; and the processor is used for executing the method shown in the embodiment by calling the computer operation instruction.
Based on the same principle as the method for displaying the video loading status identifier in the embodiment of the present disclosure, an embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, the storage medium stores at least one instruction, at least one section of program, a code set, or an instruction set, and the at least one instruction, the at least one section of program, the code set, or the instruction set is loaded and executed by a processor to implement the method shown in the above embodiment, which is not described herein again.
In the embodiment of the disclosure, after a play request of a video to be played by a user is received, a cover of the video is displayed within a time of a preparation action of playing the video, instead of directly displaying a video loading state identifier, and by setting a first preset time length, if a video resource of the video to be played meeting a first preset condition is obtained within the first preset time length, the video is directly played, and the video loading state identifier is not displayed at this time, that is, when the play request of the video to be played by the user is received, the video loading state identifier is displayed only when the video resource of the video to be played meeting the first preset condition is not obtained within the first preset time length, and compared with the existing scheme, the user experience is effectively improved.
Scheme in the embodiment of the present disclosure, referring to fig. 3, a schematic structural diagram of an electronic device 300 suitable for implementing the embodiment of the present disclosure is shown, where the electronic device 300 may be a terminal device or a server. The terminal device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), etc., and a fixed terminal such as a digital TV, a desktop computer, etc., among others. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (6)
1. A method for displaying a video loading status indicator, comprising:
when a playing request of a video to be played by a user is received, displaying a cover of the video to be played;
if the video resource of the video to be played meeting the first preset condition is not acquired within the first preset time, displaying a video loading state identifier;
if the video resource of the video to be played meeting a first preset condition is acquired within a first preset time, starting to play the video resource of the video to be played;
after the video resource of the video to be played starts to be played, the method further includes:
monitoring state identifiers of all dimensions influencing the video loading state identifiers;
if the state identification of any dimension is monitored to be changed, determining the display state mark of the video loading state identification according to the current state identification of each dimension;
determining whether the video loading state identifier needs to be displayed or not according to the determined display state identifier;
the dimension influencing the video loading state identification comprises at least one of the following information:
video control information and video loading information;
the video control information comprises video playing control information and/or video pause control information;
the video loading information comprises the relation between the video loading speed and the video playing speed;
the determining the display state mark of the display video loading state mark according to the current state mark of each dimension includes:
and calculating the current state identification of each dimension according to a preset logical operation relation to obtain a logical operation result, wherein the logical operation result is used as the display state mark.
2. The method of claim 1, wherein if it is determined that the video loading status indicator needs to be displayed, the method further comprises:
if the video resource of the video to be played meeting a second preset condition is not acquired within a second preset time, displaying the video loading state identification;
and if the video resource of the video to be played meeting a second preset condition is acquired within a second preset time, not displaying the video loading state identification.
3. The method according to claim 1 or 2, wherein a binary string is used to represent the dimension of all affected video loading status identifiers, one bit of the binary string corresponds to one dimension of the affected video loading status identifiers, and the value of one bit is the status identifier of the dimension corresponding to the bit.
4. An apparatus for displaying video loading status identifiers, comprising:
the video cover display module is used for displaying the cover of the video to be played when receiving a playing request of a user for the video to be played;
the state identifier display module is used for displaying a video loading state identifier when the video resource of the video to be played meeting a first preset condition is not acquired within a first preset time length;
the video resource playing module is used for starting to play the video resource of the video to be played when the video resource of the video to be played meeting a first preset condition is acquired within a first preset time length;
wherein the video resource playing module is further configured to:
monitoring state identifiers of all dimensions influencing the video loading state identifiers;
if the state identification of any dimension is monitored to be changed, determining the display state mark of the video loading state identification according to the current state identification of each dimension;
determining whether the video loading state identifier needs to be displayed or not according to the determined display state identifier;
the dimension influencing the video loading state identification comprises at least one of the following information:
video control information and video loading information;
the video control information comprises video playing control information and/or video pause control information;
the video loading information comprises the relation between the video loading speed and the video playing speed.
5. An electronic device, comprising:
a processor and a memory;
the memory is used for storing computer operation instructions;
the processor is used for executing the method of any one of the claims 1 to 3 by calling the computer operation instruction.
6. A computer readable storage medium storing a computer program, the storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of any of the preceding claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811594999.1A CN109618216B (en) | 2018-12-25 | 2018-12-25 | Method, device and equipment for displaying video loading state identification and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811594999.1A CN109618216B (en) | 2018-12-25 | 2018-12-25 | Method, device and equipment for displaying video loading state identification and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109618216A CN109618216A (en) | 2019-04-12 |
CN109618216B true CN109618216B (en) | 2021-07-30 |
Family
ID=66011636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811594999.1A Active CN109618216B (en) | 2018-12-25 | 2018-12-25 | Method, device and equipment for displaying video loading state identification and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109618216B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112883210B (en) * | 2019-11-29 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Method and device for screening multimedia data, intelligent terminal and storage medium |
CN111093116A (en) * | 2019-12-09 | 2020-05-01 | 北京达佳互联信息技术有限公司 | Video loading information processing method and device and storage medium |
CN115086705A (en) * | 2021-03-12 | 2022-09-20 | 北京字跳网络技术有限公司 | Resource preloading method, device, equipment and storage medium |
CN113794924A (en) * | 2021-08-02 | 2021-12-14 | 乐融致新电子科技(天津)有限公司 | Video playing method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686414A (en) * | 2013-12-19 | 2014-03-26 | 北京奇艺世纪科技有限公司 | Network video playing method and device |
CN104244033A (en) * | 2014-09-03 | 2014-12-24 | 乐视致新电子科技(天津)有限公司 | Video playing method and device and intelligent terminal |
CN104469427A (en) * | 2014-12-09 | 2015-03-25 | 北京国双科技有限公司 | Data transmission method and terminal and server |
CN105578295A (en) * | 2014-10-16 | 2016-05-11 | 腾讯科技(深圳)有限公司 | Video playing control method and equipment thereof |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102724584B (en) * | 2012-06-18 | 2016-07-27 | Tcl集团股份有限公司 | The online player method of Internet video, the online playing device of video and intelligent television |
CN104049787B (en) * | 2013-03-14 | 2017-03-29 | 联想(北京)有限公司 | A kind of electronic equipment and control method |
CN103763635B (en) * | 2013-05-02 | 2018-07-27 | 乐视网信息技术(北京)股份有限公司 | A kind of control method and system of video buffer |
KR102123439B1 (en) * | 2013-11-20 | 2020-06-16 | 삼성전자 주식회사 | CONGESTION MITIGATION METHOD AND APPARATUS TO MAXIMIZE QoE OF VIEOD TRAFFIC IN MOBILE NETWORKS |
CN103686303A (en) * | 2013-12-04 | 2014-03-26 | 乐视网信息技术(北京)股份有限公司 | Method and device for displaying loading icons |
CN106604129B (en) * | 2015-10-20 | 2019-08-20 | 北京国双科技有限公司 | The method and apparatus for detecting video broadcasting condition |
CN105979345A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Video data processing method and device |
CN105608161B (en) * | 2015-12-18 | 2019-09-06 | 北京金山安全软件有限公司 | Loading progress display method and terminal |
CN106998477A (en) * | 2017-04-05 | 2017-08-01 | 腾讯科技(深圳)有限公司 | The front cover display methods and device of live video |
-
2018
- 2018-12-25 CN CN201811594999.1A patent/CN109618216B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686414A (en) * | 2013-12-19 | 2014-03-26 | 北京奇艺世纪科技有限公司 | Network video playing method and device |
CN104244033A (en) * | 2014-09-03 | 2014-12-24 | 乐视致新电子科技(天津)有限公司 | Video playing method and device and intelligent terminal |
CN105578295A (en) * | 2014-10-16 | 2016-05-11 | 腾讯科技(深圳)有限公司 | Video playing control method and equipment thereof |
CN104469427A (en) * | 2014-12-09 | 2015-03-25 | 北京国双科技有限公司 | Data transmission method and terminal and server |
Non-Patent Citations (1)
Title |
---|
基于Android平台的视频播放客户端的设计与实现;马晨夕;《中国优秀硕士学位论文全文数据库 信息科技辑》;20170115;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109618216A (en) | 2019-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109618216B (en) | Method, device and equipment for displaying video loading state identification and storage medium | |
CN109618177A (en) | Method for processing video frequency, device, electronic equipment and computer readable storage medium | |
US11711441B2 (en) | Method and apparatus for publishing video synchronously, electronic device, and readable storage medium | |
CN110072151B (en) | Virtual gift display method, electronic device and computer-readable storage medium | |
CN111790148B (en) | Information interaction method and device in game scene and computer readable medium | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN109582274B (en) | Volume adjusting method and device, electronic equipment and computer readable storage medium | |
CN111726675A (en) | Object information display method and device, electronic equipment and computer storage medium | |
CN110401877B (en) | Video playing control method and device, electronic equipment and storage medium | |
US20230421857A1 (en) | Video-based information displaying method and apparatus, device and medium | |
CN111246245A (en) | Method and device for pushing video aggregation page, server and terminal equipment | |
CN110022493B (en) | Playing progress display method and device, electronic equipment and storage medium | |
CN111309416B (en) | Information display method, device and equipment of application interface and readable medium | |
CN110267088B (en) | Video playing control method and device, electronic equipment and storage medium | |
CN110134905B (en) | Page update display method, device, equipment and storage medium | |
CN109714626B (en) | Information interaction method and device, electronic equipment and computer readable storage medium | |
CN109218793A (en) | Video loading method, device, electronic equipment and computer readable storage medium | |
US20240129598A1 (en) | Mehtod, system and device for playing effect in live room | |
US20220215482A1 (en) | User information processing method, apparatus, electronic device, and computer storage medium | |
CN109547851A (en) | Video broadcasting method, device and electronic equipment | |
CN114419201B (en) | Animation display method and device, electronic equipment and medium | |
CN113709573B (en) | Method, device, equipment and storage medium for configuring video special effects | |
CN111382038B (en) | Method, device, electronic equipment and storage medium for reporting service data | |
CN111367592B (en) | Information processing method and device | |
CN112822328A (en) | Data display method and device 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 | ||
CP03 | Change of name, title or address |
Address after: 408, 4th floor, 51 Zhichun Road, Haidian District, Beijing 100086 Patentee after: Tiktok Technology Co.,Ltd. Country or region after: China Address before: 408, 4th floor, 51 Zhichun Road, Haidian District, Beijing 100086 Patentee before: BEIJING MICROLIVE VISION TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |