CN115842937A - Video playing method, device, equipment and storage medium - Google Patents

Video playing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115842937A
CN115842937A CN202211361756.XA CN202211361756A CN115842937A CN 115842937 A CN115842937 A CN 115842937A CN 202211361756 A CN202211361756 A CN 202211361756A CN 115842937 A CN115842937 A CN 115842937A
Authority
CN
China
Prior art keywords
code rate
video
target
playing
value
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.)
Pending
Application number
CN202211361756.XA
Other languages
Chinese (zh)
Inventor
范志巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211361756.XA priority Critical patent/CN115842937A/en
Publication of CN115842937A publication Critical patent/CN115842937A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the disclosure provides a video playing method, a video playing device, video playing equipment and a storage medium. The method comprises the following steps: responding to the play starting and gear selecting operation of the video to be played; determining a target play-starting gear corresponding to the video to be played according to code rate adjustment information of a cached historical playing video in a set cache queue, wherein the code rate adjustment information comprises an adjustment code rate of the corresponding historical playing video and an adjustment weight value of the adjustment code rate; and when the playing condition of the video to be played is met, playing the video to be played with the playing image quality corresponding to the target playing gear. By the method, before the video to be played is played, the play-starting gear of the video to be played can be determined according to code rate adjustment information of the historical play video by the triggered play-starting gear selection operation on the premise of not depending on the network speed, so that accurate gear selection of the video play-starting is realized, and balance between play fluency and definition can be achieved when the video to be played is determined to be played by the play picture quality corresponding to the gear selection.

Description

Video playing method, device, equipment and storage medium
Technical Field
The disclosed embodiments relate to the field of video processing technologies, and in particular, to a video playing method, device, apparatus, and storage medium.
Background
With the development of internet technology and the popularization of mobile terminals, the viewing of streaming media videos has become an indispensable part of people's daily entertainment life. When playing streaming media video, in order to balance the video definition and the video fluency, a proper video code rate needs to be selected to reduce the video downloading time or reduce the video playing pause rate as much as possible, so as to optimize the user viewing experience.
For a streaming media video, the selection of the video code rate is mainly embodied in the video quality selection during the video playing, for example, a plurality of gears with different playing quality can be set, when a certain video is to be played, a proper playing starting gear can be selected, so that the video playing is performed according to the playing quality corresponding to the gear, and further, the balance between the definition and the fluency during the video playing is realized.
In the implementation of the existing video starting and selecting gear, the judgment of the starting and selecting gear mainly depends on the network speed, however, the situation that the network speed is unavailable exists in practical application, and the accurate network speed is difficult to obtain when a video file is played, so that the accuracy of starting and selecting the gear is influenced, the problems that the definition and the fluency cannot be balanced exist, and the watching experience of a user is influenced.
Disclosure of Invention
The disclosure provides a video playing method, a video playing device, video playing equipment and a storage medium, so as to realize accurate file selection of video playing.
In a first aspect, an embodiment of the present disclosure provides a video playing method, where the method includes:
responding to the play starting and gear selecting operation of the video to be played;
determining a target play-starting gear corresponding to a video to be played according to code rate adjustment information of a cached historical playing video in a set cache queue, wherein the code rate adjustment information comprises an adjustment code rate of the corresponding historical playing video and an adjustment weight value of the adjustment code rate;
and when the playing condition of the video to be played is met, playing the video to be played according to the playing image quality corresponding to the target playing gear.
In a second aspect, an embodiment of the present disclosure further provides a video playing apparatus, where the apparatus includes:
the operation response module is used for responding to the starting and gear-selecting operation of the video to be played;
the gear determining module is used for determining a target play starting gear corresponding to the video to be played according to code rate adjusting information of the historical play video cached in the set cache queue;
and the video playing module is used for playing the video to be played according to the playing image quality corresponding to the target playing starting gear when the playing condition of the video to be played is met.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the video playing method provided by any aspect of the embodiments of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to execute a video playing method provided by implementing any aspect of the embodiments of the present disclosure.
The embodiment of the disclosure provides a video playing method, a device, equipment and a storage medium, wherein by the video playing method, a play starting gear selecting operation of a video to be played is responded firstly; then, according to code rate adjustment information of the historical playing video cached in a set cache queue, determining a target playing starting gear corresponding to the video to be played; and finally, when the playing condition of the video to be played is met, playing the video to be played according to the playing image quality corresponding to the target playing gear. According to the technical scheme, before the video to be played is played, the play-starting gear of the video to be played can be determined according to code rate adjusting information of the historical play video on the premise of not depending on the network speed through the triggered play-starting gear selecting operation, so that the accurate gear selection of the video play-starting is realized, and therefore when the video to be played is played according to the play image quality corresponding to the gear selection, the balance between the play fluency and the definition can be achieved. According to the technical scheme, the decoupling of the network speed of the starting playing and gear selecting moment is realized, the method is better suitable for scenes in which the network speed cannot be effectively obtained, the effective balance of the video playing fluency and the definition is ensured through the determined starting playing gear, the video watching experience of a user is improved, and meanwhile, the scene application range of the technical scheme is expanded.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another video playing method provided in the embodiment of the present disclosure;
fig. 3 is a flowchart illustrating an implementation of determining a target bitrate in a video playing method according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a video playing device according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
It is understood that before the technical solutions disclosed in the embodiments of the present disclosure are used, the type, the use range, the use scene, etc. of the personal information related to the present disclosure should be informed to the user and obtain the authorization of the user through a proper manner according to the relevant laws and regulations.
For example, in response to receiving an active request from a user, a prompt message is sent to the user to explicitly prompt the user that the requested operation to be performed would require the acquisition and use of personal information to the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the disclosed technical solution, according to the prompt information.
As an optional but non-limiting implementation manner, in response to receiving an active request from the user, the manner of sending the prompt information to the user may be, for example, a pop-up window, and the prompt information may be presented in a text manner in the pop-up window. In addition, a selection control for providing personal information to the electronic device by the user's selection of "agreeing" or "disagreeing" can be carried in the pop-up window.
It is understood that the above notification and user authorization process is only illustrative and not limiting, and other ways of satisfying relevant laws and regulations may be applied to the implementation of the present disclosure.
Fig. 1 is a schematic flow chart of a video playing method provided by an embodiment of the present disclosure, where the embodiment of the present disclosure is applicable to a situation where a video is played and the playing quality of the video is selected, and the method may be executed by a video playing apparatus, and the apparatus may be implemented in a form of software and/or hardware, and optionally, may be implemented by using an electronic device as an execution terminal, and the electronic device may be a mobile terminal, a PC terminal, a server, or the like.
It can be known that video playing can be realized through short video playing software or a multimedia player, and short video playing can be performed through short video playing software. Generally, the main influence on the watching experience of a user in video playing is the definition and the fluency of playing contents, and in order to ensure the balance between the playing fluency and the definition in video playing, a proper playing gear can be determined at the video playing starting stage, namely, playing starting and gear selecting are carried out, and video playing is carried out according to the playing quality corresponding to the playing gear. The existing method for starting and selecting the files mainly depends on the network speed, and if the accurate network speed cannot be obtained, the accuracy of starting and selecting the files cannot be ensured, so that the balance of smoothness and definition in video playing is influenced. Therefore, the video playing method provided by the embodiment can accurately determine the playing gear of the video playing starting stage, and ensure the balance between the fluency and the definition.
As shown in fig. 1, a video playing method provided in an embodiment of the present disclosure may specifically include the following steps:
and S101, responding to the play starting and gear selecting operation of the video to be played.
It should be noted that, after the functional application for video playing is started, a playlist may be presented in a certain area of the display interface, the playlist may include a plurality of videos to be played, a presentation form of each video to be played may be a presentation video name or a presentation video key frame, and in addition, video information of each video may further include pull address information of a video stream.
In this embodiment, videos played in the video playing function application may be regarded as streaming media data, and the streaming media data required for presenting each video may be stored in a streaming media database on the server side. The video contained in the playlist may be a recommended video screened from a streaming media database by the server through a certain screening policy, or a video to be watched selected in advance by the user. Generally, each video in the streaming media database can be divided or labeled according to different types, and the provided tag information such as the video type can be used for a user to select or know the video information.
In this embodiment, the video to be played can be regarded as a video to be played next to a currently played video in a playlist or playlist. Specifically, after one video in the playlist or the playlist is played, the next video of the video may be automatically played, or a video selected by the user in advance may be played. Therefore, before the next video or the video selected in advance by the user is played, the next video or the video selected in advance can be marked as the video to be played. Wherein, the video to be played can be played at the current time; or, a play trigger request of a next video is received when the currently played video is played.
In this embodiment, before playing the video to be played, the starting-up gear selection needs to be performed through a response to the starting-up gear selection operation corresponding to the video to be played. The play-starting gear selection operation can be regarded as an operation for triggering the playing of picture quality gear selection when the video is played, and the generation time of the play-starting gear selection operation can be the moment when the video in the current playing state is played; there may be a certain time after the video in the current playing state is played, such as a time point of 3 seconds after the video is played; or the selected moment when the video viewer selects a certain video to be played. When the set generation time is reached, the play-starting gear selection operation for generating the video to be played can be automatically triggered.
In this embodiment, the step may receive the start-up gear-selecting operation, and trigger execution of the start-up gear-selecting function logic related to the video to be played through a response to the start-up gear-selecting operation. For example, the execution of the play-and-play function logic may be considered as selecting a target gear among a plurality of set gears corresponding to different play image qualities.
S102, determining a target play start gear corresponding to the video to be played according to code rate adjustment information of the cached historical play video in a set cache queue, wherein the code rate adjustment information comprises an adjustment code rate of the corresponding historical play video and an adjustment weight value of the adjustment code rate.
In this embodiment, a buffer queue may be preset to buffer the bitrate adjustment information of the video, where, for the video to be played, the video corresponding to the bitrate adjustment information in the buffer queue may be recorded as a history playing video, and it may be considered that video playing is completed before the video to be played is played.
In this embodiment, each of the rate adjustment information cached in the set cache queue may include an adjustment code rate of the corresponding video and an adjustment weight value corresponding to the adjustment code rate. The adjustment code rate can be considered as a playing code rate which is determined to be more suitable for playing the video according to related playing parameters in the video playing process after the corresponding video is played; the adjustment weight value can be regarded as a measure of the playing suitability of the corresponding video when the adjustment code rate is adopted for playing, and the higher the adjustment weight value is, the more suitable the adjustment code rate is determined to play the corresponding video.
It should be noted that the play starting gear of one video determines the play image quality when the video is played, and different play starting gears correspond to different play image qualities, wherein the play starting gear can be divided by 1 st gear, 2 nd gear, 3 rd gear, and the like, and the play image quality can be expressed as smooth, clear, high definition, even super-definition, and the like. In addition, it is also conceivable that different playback image qualities correspond to different resolutions, such as resolution of 540P, resolution of 720P, and resolution of 1080P, respectively, for example, for definition, high definition, and super definition.
It can be known that, for determining a target play start gear of a video to be played, the code rate of the video to be played is often determined only according to the network speed when the play start gear selection operation is triggered, and the play start gear of the video to be played is determined according to the code rate. However, if the network speed cannot be accurately obtained after responding to the start-up gear selection operation, the existing determination method cannot be executed.
After responding to the operation of starting playing and selecting the gear, the step considers that the code rate adjustment information of the played video in a period of historical time before the video to be played is adopted to realize the determination of starting playing and selecting the gear. Meanwhile, a play starting gear determined by the code rate adjusting information relative to the video to be played is recorded as a target play starting gear.
For example, as an implementation manner, this step may obtain, after responding to the play-starting gear-selecting operation, rate adjustment information of each historically played video cached in the cache queue, and determine whether the rate adjustment information in the cache queue has a reference meaning by comparing a sum of adjustment weight values of each adjustment rate in the rate adjustment information with a set weight threshold.
If the code rate adjustment information does not have reference significance as determined by comparison, a preset code rate can be directly used as the playing code rate of the video to be played, and finally the playing start gear with the adaptive playing code rate can be marked as a target playing start gear; if the code rate adjustment information is determined to have reference significance, code rate weighting can be carried out through the adjustment weight value of each adjustment code rate, then the playing code rate of the video to be played is further determined based on the obtained weight value, and finally the playing starting gear with the adaptive playing code rate is used as the target playing starting gear.
The weighting method for weighting the adjustment code rates may be average weighting, for example, products of each adjustment code rate and a corresponding adjustment weight value may be determined and added to obtain a product sum, and the sum of the product sum and each adjustment weight value may be used as the determined weight value; in this embodiment, a median weighting mode may also be adopted to perform weighting calculation, for example, the code rate adjustment information in the cache queue may be sorted according to the adjustment weight value, then the median of the adjustment weight value is determined, and the adjustment code rate corresponding to the median may be used as the determined weight value.
In connection with the above description, one implementation manner of determining the playing code rate of the video to be played through the weighted value in this step may be described as follows: the weighted value can be multiplied by a preset parameter, the multiplied result can be compared with a preset code rate upper limit value, and the smallest result is found out to be used as an intermediate result; then, the intermediate result can be compared with a preset lower limit value of the code rate, and the maximum value of the two is used as the final playing code rate.
In this embodiment, a target play-starting gear of a video to be played may be selected from a plurality of set play-starting gears. Different play starting gears are respectively matched with different code rate intervals, after the play code rate of the video to be played is determined by the mode, the play starting gear matched with the play code rate can be positioned, and finally the matched play starting gear can be used as a target play starting gear of the video to be played.
S103, when the playing condition of the video to be played is met, playing the video to be played according to the playing image quality corresponding to the target playing starting gear.
In this embodiment, the play start gear corresponding to the video to be played can be determined before the video to be played is played through the above steps, and the video playing can be performed based on the play image quality corresponding to the determined target play start gear when the playing condition of the video to be played is met through the step. The playing condition of the video to be played may be that the playing time of the video to be played is reached, such as the playing of the currently played video is completed, or the viewer triggers the playing of the video to be played.
In this embodiment, the network speed and the cache duration of the execution device for playing the video may affect the playing code rate of the video, and the higher the playing code rate of the video is, the higher the resolution that needs to be adopted is, the higher the definition of the video playing is, but the fluency may be affected; the lower the playing code rate is, the lower the definition of the video playing is, the lower the resolution ratio is needed to be adopted, but the fluency of the video can be ensured.
The embodiment can preset the association between the code rate and the play starting gear, and different play starting gears correspond to different play image quality (resolution), which is also equivalent to indirectly establishing the association between the play code rate and the resolution, so that after the code rate suitable for video playing is determined, the play starting gear matched with the code rate can be determined, and further, when video playing is performed through the play image quality corresponding to the play starting gear, the balance requirement of video fluency and definition in the playing process is ensured.
The embodiment of the disclosure provides a video playing method, which can determine a play-starting gear of a video to be played according to code rate adjustment information of a historical play video by a triggered play-starting gear selection operation before the video to be played is played, without depending on a network speed, so that accurate gear selection of video play-starting is realized, and balance between play fluency and definition can be achieved when the video to be played is determined to be played by adopting a play picture quality corresponding to the gear selection. The decoupling of the network speed of the starting playing and gear selecting moment is realized, the method is better suitable for scenes in which the network speed cannot be effectively obtained, the effective balance of the video playing fluency and the definition is ensured through the determined starting playing gear, the video watching experience of a user is improved, and meanwhile, the scene application range of the technical scheme is expanded.
Fig. 2 is a schematic flow chart of another video playing method provided in the embodiment of the present disclosure, and as shown in fig. 2, the video playing method may specifically include the following steps:
s201, responding to the play starting and gear selecting operation of the video to be played.
For example, when the generation time of the play-starting gear-selecting operation of the video to be played is met, the play-starting gear-selecting operation can be triggered to be generated, and the play-starting gear-selecting operation is responded through the step so as to enter the execution state of the play-starting gear-selecting function logic of the video to be played.
It should be noted that the following S202 to S204 provide a development description of the target starting gear.
S202, obtaining code rate adjustment information of each historical playing video cached in the cache queue, and determining the sum of adjustment weights of adjustment weight values in each code rate adjustment information.
For example, the historically played video associated with the rate adjustment information cached in the cache queue may be considered as a video played a period of time before the video to be played. For each history playing video, after the corresponding video playing is completed, the bitrate adjustment information can be determined, and then the determined bitrate adjustment information can be cached to the cache list according to a given caching mode.
In this embodiment, each code rate adjustment information may preferably include an adjustment code rate of the corresponding historically played video and an adjustment weight value of the adjustment code rate. The adjustment code rate may be considered as a playing code rate more suitable for playing a history playing video, and the adjustment weight value of the adjustment code rate may be used to represent the adjustment code rate as an adaptation degree of the playing code rate. The embodiment can determine the adjustment code rate of the video according to the playing attribute information of the associated video in the actual playing process.
Similarly, the present embodiment may also determine the adjustment weight value for adjusting the bitrate according to the playing attribute information of the video in combination with the selected weight determination manner. The weight determination method may be selected according to a preset reference. The reference may be a download time of the associated video or a download size of the associated video, and different reference corresponds to different weight determination methods.
In this step, after the play start and gear selection operation of the video to be played is responded, the code rate adjustment information in the cache list can be obtained, the adjustment weight value can be extracted from the code rate adjustment information, and finally, the sum of the weight values of the adjustment weight values can be determined.
S203, determining the target code rate corresponding to the video to be played according to the comparison result of the sum of the adjusting weights and the set minimum effective weight threshold.
In this step, the sum of the obtained adjustment weights may be compared with the minimum effective weight threshold, and the target bit rate of the video to be played may be determined in different manners according to different comparison results. The minimum effective weight threshold can be understood as a lower limit value for judging the effectiveness of gear selection on the code rate adjustment information in the cache list; the target bitrate can be regarded as a playing bitrate which can be adopted when the video to be played is played.
For example, when the sum of the adjustment weights is lower than the minimum effective weight threshold, it may be considered that data in the cache list is insufficient to serve as a basis for selecting a gear, that is, the code rate adjustment information does not have a reference meaning for starting and selecting a gear; and only when the sum of the adjusting weights is equal to or greater than the minimum effective weight threshold value, the code rate adjusting information in the cache list has the reference meaning of starting playing and gear selecting determination.
In this embodiment, as one implementation of the target code rate, when the sum of the adjusting weights is lower than the minimum effective weight threshold, the preset reference code rate may be directly used as the target code rate; as another implementation manner, when the sum of the adjustment weights is equal to or greater than the minimum effective weight threshold, the adjustment weight may be determined by using each code rate adjustment information included in the cache list, for example, performing weighted calculation on the adjustment code rates in the code rate adjustment information, and then determining the final target code rate based on the code rate value obtained after weighting.
On the basis of the foregoing embodiments, fig. 3 is a flowchart illustrating implementation of target bitrate determination in a video playing method according to an embodiment of the present disclosure. As shown in fig. 3, the determining of the target bitrate corresponding to the video to be played according to the comparison result between the sum of the adjustment weights and the set minimum effective weight threshold may specifically be optimized as the following steps:
s2031, obtaining a minimum effective weight threshold.
In the embodiment of the present disclosure, a preset minimum effective weight threshold is obtained.
S2032, judging whether the sum of the adjusting weights is smaller than the minimum effective weight threshold value, if so, executing S2033; if not, go to S2034.
Specifically, the sum of the adjustment weights is compared with the minimum effective weight threshold, and if the sum of the adjustment weights is smaller than the minimum effective weight threshold, step 2033 is executed; if the sum of the adjusted weights is greater than or equal to the minimum effective weight threshold, step 2034 is performed.
S2033, taking the set reference code rate as the target code rate of the video to be played.
In the embodiment of the present disclosure, the reference bitrate is equivalent to a preset empirical value, which can be determined according to historical experience and can be used as the most basic bitrate for playing video. In this embodiment, when the buffered code rate adjustment information in the buffer list does not have a reference meaning for code rate determination, that is, when the determination of S2032 is yes, the reference code rate is directly used as the target code rate in this step.
S2034, determining weighted values of each adjusting code rate and the corresponding weight value, and determining a target code rate corresponding to the video to be played according to the weighted values.
When the step is determined to be executed by the above determination, the adjustment code rate and the weighting value may be weighted. The weighted value is a representation of a code rate value, and this embodiment may directly use the weighted value as a target code rate of the video to be played, however, in order to ensure the accuracy of determining the target code rate, the weighted value may be secondarily adjusted through this step, and finally, code rate data obtained after the secondary adjustment is used as the target code rate.
As one implementation manner, the weighting calculation may adopt average weighting of the adjusted code rate and the corresponding adjusted weight value, may adopt median weighting of the adjusted weight value, and may obtain a weight value representing code rate data after the weighting calculation. In the secondary adjustment of the weighted value, a preset code rate adjustment parameter, a preset minimum code rate threshold, a preset maximum code rate threshold, and the like may be involved, so that the weighted value is adjusted according to the code rate adjustment parameter and each code rate threshold, and finally, a playing code rate adapted to the video to be played may be obtained, which is recorded as a target code rate in this embodiment.
According to the technical scheme, the target code rate is effectively determined, the accuracy and the practicability of the target code rate are guaranteed, basic data are provided for determining the subsequent starting and gear selecting logic, the target code rate determined based on the technical scheme can be determined to be a more accurate starting and gear in the starting and gear selecting realization, and the balance of smoothness and definition in the playing process of the video to be played is better guaranteed.
Further, as one implementation manner of S2034, in the embodiment of the present disclosure, the determining a weighted value of each adjustment code rate and a corresponding adjustment weight value, and determining the target code rate corresponding to the video to be played according to the weighted value may specifically be:
a1 According to a weighting rule corresponding to a preset weighting identifier, weighting each of the adjustment code rates and the corresponding adjustment weight value to obtain a weighted value.
In the embodiment of the present disclosure, there may be multiple ways for performing weighted value calculation, different weighting ways may preset a weighting identifier, and which weighting way is specifically adopted in actual calculation may be determined by the preset weighting identifier.
It should be noted that, in the implementation of the method provided by the present technology, a weighting identifier representing a weighting mode may be assigned in advance, and if the weighting mode corresponding to the assigned weighting identifier is a weighted average value, the weighted value may be calculated in the form of average value weighting in this step; if the weighted mode after assignment represents the weighted median, the weighted value can be calculated by adopting a median weighted mode. This step can obtain the weighted value after the weighted value calculation.
For example, assuming that the value of the currently obtained weighting indicator is 0, it may be considered that a weighted average value is pre-selected as the current weighting manner, at this time, each adjusting code rate in the code rate adjusting information may be multiplied by a corresponding adjusting weight value, and a ratio of a result of the multiplication to a sum of the adjusting weight values may be used as the weighting value in this step.
As described above, assuming that the value of the currently obtained weighting flag is 1, it can be considered that a weighting median is selected in advance as the current weighting mode, at this time, the code rate adjustment information may be sorted from small to large according to the adjustment weight value, the median is determined based on the sorted adjustment weight value, and finally, the code rate corresponding to the median may be used as the weighting value.
b1 Determining a product value of the weighted value and the set secondary adjusting parameter, and taking the minimum value of the product value and the set code rate upper limit value as a candidate code rate.
In this embodiment, the secondary adjustment parameter may be a preset parameter value, or a parameter value determined by some kind of calculation based on some other parameters, and the secondary adjustment parameter may be specifically used to adjust the weighted value, so as to implement secondary adjustment of the code rate information obtained in the process of determining the target code rate.
As one of the implementations, the secondary adjustment parameter may be considered to be determined by calculation given some of the parameters. The parameter participating in the secondary adjustment parameter determination may be a parameter related to a video duration of the video to be played, and specifically may include: the video time length related adjustment quantity, the video time length related main adjustment parameter, the maximum adjustment parameter threshold value and the minimum adjustment threshold value. On the basis of the above parameters, one of the determining manners of the secondary adjustment parameters can be described as follows:
1) Calculating the ratio of the adjustment quantity to the video time length, determining the sum of the ratio and the main adjustment parameter, and recording as a first parameter;
2) Taking the maximum value of the first parameter and the minimum adjusting threshold value as a second parameter;
3) And taking the minimum value of the second parameter and the maximum adjusting threshold value as the secondary adjusting parameter.
In this embodiment, the bitrate upper limit value is also a preset parameter value, which is used to define a maximum bitrate value that can be used when playing video, and can be determined according to historical experience. In this step, after obtaining the product of the weighted value and the secondary adjusting parameter, a minimum value is selected from the product and the upper limit of the code rate. It can be known that both the code rate upper limit value and the weighted value can be regarded as data representing the code rate, and the product value obtained by multiplying the weighted value by the secondary adjustment parameter can also be regarded as data representing the code rate, so that the minimum value selected from the product value and the code rate upper limit value is also used to represent the code rate, and this embodiment marks this minimum value as the candidate code rate.
c1 The set code rate lower limit value and the maximum value of the candidate code rates are determined as the target code rate of the video to be played.
In this embodiment, the lower limit of the bitrate is also a preset parameter value for defining a minimum bitrate value that can be used when playing the video, and can also be determined according to historical experience. In the step, the lower limit value of the set code rate is compared with the candidate code rate, and the maximum value of the lower limit value and the candidate code rate is determined as the target code rate of the video to be played.
According to the technical scheme, the target code rate is obtained by adjusting the weighting code rate through the upper and lower limit parameters of the gear selection code rate, so that when enough code rate adjustment information of the historical playing video exists, the effective gear for starting playing can be determined through calculation to determine the target code rate, and the accuracy of determining the target code rate is ensured.
And S204, determining a target play starting gear corresponding to the video to be played according to the target code rate.
In this embodiment, after the target code rate is determined through the above steps, the play-starting gear corresponding to the target code rate is determined through the step according to the preset association relationship between the code rate and the gear, so that the play-starting gear matched with the video to be played is determined to be used as the target play-starting gear.
Further, as one implementation manner of S204, the determining of the target play-starting gear corresponding to the video to be played according to the target code rate may be specifically optimized as the following steps:
a2 A preset code rate-gear relation table is searched, the code rate-gear relation table comprises at least one binary relation group, and each binary relation group comprises a code rate range and a corresponding play-starting gear.
In this embodiment, the code rate-gear position relation table can be understood as a relation table corresponding to different gear positions in different code rate ranges. The binary relation group can be understood to include the relation between the code rate range and the gear. A range of code rates may be understood as grouping code rates within a range of values. The play-starting gear can be understood as the gear when the video is triggered to start playing.
Specifically, the relationship between the gear and the code rate can be determined, the corresponding maximum code rate value and the corresponding minimum code rate value under different gears can be found, a code rate range can be formed according to the maximum code rate value and the minimum code rate value, a binary relationship group can be established between the code rate range and the gears, a plurality of binary relationship groups can be included due to the fact that the playing of the video comprises a plurality of gears, and a code rate-gear relationship table can be formed according to the plurality of binary relationship groups. The formed code rate-gear relation table is stored in a memory, and the processor can obtain a preset code rate-gear relation table. When the target code rate is obtained, the target code rate can be searched in a code rate-gear relation table.
b2 The play-starting gear corresponding to the code rate range where the target code rate is located is used as the target play-starting gear of the video to be played.
Specifically, the code rate-gear relation table can be searched to find out the code rate range where the target code rate is located, and then the gear corresponding to the code rate range is determined, and the gear is used as the target starting gear of the video to be played.
For example, the code rate-gear relation table may be: when the gear is 1 gear, the code rate range is 128Kb/s-512Kb/s, and when the gear is 2 gear, the code rate range is 512Kb/s-1Mb/s; when the gear is 3 gears, the code rate range is correspondingly 1Mb/s-2Mb/s; when the gear is 4 gears, the code rate range is correspondingly 2Mb/s-3.5Mb/s; when the gear is 5 gears, the code rate range is 3.5Mb/s-5Mb/s.
As described above, when the target bitrate is determined to be 0.7Mb/s according to the above steps in response to the play start and gear selection operation of the video to be played, it may be determined that the bitrate range corresponding to 0.7Mb/s in the bitrate-gear relation table is 512Kb/s-1Mb/s, and the gear corresponding to the bitrate range is assumed to be 2-gear, where the play picture quality corresponding to the 2-gear is standard definition picture quality, and in this embodiment, the 2-gear may be used as the play start direction to play the video to be played, which is equivalent to playing the video to be played with the normal definition picture quality.
It can also be understood that, assuming that the target bitrate determined by the above-mentioned manner is 1.2Mb/s, and the bitrate range corresponding to the 1.2Mb/s in the bitrate-gear relation table is 1Mb/s-2Mb/s, and the gear corresponding to the bitrate range is 3 gears, if the playback quality corresponding to the 3 gears is high definition quality, 3 gears can be used as the starting gear of the video to be played, which is equivalent to playing the video to be played with high definition quality.
According to the technical scheme, the gear selection efficiency can be improved through the code rate-gear selection relation table, meanwhile, the code rate range corresponds to the broadcast starting gear significance through the binary relation groups, and the problem that the existing result for determining the broadcast starting gear based on a single parameter is inaccurate is solved.
And S205, when the playing condition of the video to be played is met, playing the video to be played with the playing image quality corresponding to the target playing starting gear.
It can be known that different play image qualities are preset at different play-starting gear positions, and the resolution ratios of the different play image qualities are different. In this embodiment, when it is detected that the currently played video is played completely, it may be determined that the playing condition of the video to be played is satisfied, so that the video to be played may be played based on the playing quality corresponding to the target play start gear in this step.
In the technical scheme, before the video to be played is played, the play-starting gear of the video to be played can be determined according to the code rate adjustment information of each historical play video cached in the cache queue through the triggered play-starting gear selection operation and through historical parameters such as the adjustment code rate and the corresponding adjustment weight value in the code rate adjustment information, so that the play quality of the video to be played can be determined. The problem of current inaccurate result based on single parameter confirms that plays the gear is solved, solved simultaneously and need rely on the net speed, but can't accurately obtain the problem that plays the position and confirm in scenes such as net speed. The method of the embodiment realizes accurate gear selection for starting playing of the video, so that balance between playing fluency and definition can be achieved when playing the video according to the playing picture quality corresponding to the gear selection, and video watching experience of a user is improved.
As a first optional embodiment of this embodiment, on the basis of the above embodiment, further adding: and when the code rate regulation information determination condition is met, determining a target analysis video and determining target code rate regulation information of the target analysis video.
Based on the above description, it can be known that each bit rate adjustment information included in the cache list corresponds to different historically played videos, and it can be specifically determined after each historically played video is played. The present embodiment further provides a step of determining the code rate adjustment information based on the foregoing embodiment.
Specifically, in the first optional embodiment, the implementation of the determining step of the bitrate adjustment information needs to meet a related bitrate adjustment information determining condition, where the bitrate adjustment information determining condition may be that it is detected that one video is finished playing, and the embodiment may determine the video meeting the bitrate adjustment information determining condition as the target analysis video.
It can be understood that, in this embodiment, the execution sequence of the rate adjustment information determination step is not specifically limited, and as long as it is detected that the playing of the video is completed in the execution process of the method provided in this embodiment, or it is detected that the downloading of the video is completed, it may be considered that the execution of this determination step is triggered. For example, in one case, after the execution of the step S103 is finished, that is, the video to be played is played, or after the video to be played is downloaded in the process of playing the video to be played, the condition for determining the bitrate adjustment information is satisfied, at this time, the video to be played may be regarded as a target analysis video, the bitrate adjustment information of the video to be played may be determined through this step, and the bitrate adjustment information determined for the video to be played may be recorded as the target bitrate adjustment information in this embodiment.
In this embodiment, a specific implementation of determining the bitrate adjustment information for the target analysis video may be described as follows: the method comprises the steps of firstly obtaining playing attribute information related to a target analysis video in a playing process, wherein the playing attribute information can comprise playing duration of the video, playing code rate adopted in the playing process, downloading duration spent on downloading the target analysis video, playing starting cache duration corresponding to a streaming media data cache list when the video is played at the beginning, receiving cache duration corresponding to the streaming media data cache list when the video playing is finished, and the like.
After the above description, the adjustment code rate and the corresponding adjustment weight value of the target analysis video can be determined by obtaining the obtained play attribute information and combining the preset adjustment code rate calculation formula and the preset adjustment weight value calculation formula, so that code rate adjustment information including the adjustment code rate and the adjustment weight value is obtained and recorded as target code rate adjustment information.
According to the technical scheme of the embodiment, the determination of the target code rate adjustment information is increased, the specific limited determination time is increased, the code rate adjustment information is a key step in the video playing method provided by the embodiment, and the accuracy of the starting gear determined based on the code rate adjustment information can be better ensured only by ensuring the accuracy of the code rate adjustment information.
Further, as one implementation manner, the determining the target analysis video when the condition for determining the bitrate adjustment information is satisfied, and the determining the target bitrate adjustment information of the target analysis video may be specifically optimized as the following steps:
a3 When the video downloading is finished or the video playing is finished, determining that the code rate adjustment information determining condition is currently met, and determining the video which is finished or played currently as the target analysis video.
In this embodiment, the state of video playing can be continuously detected through a set detection thread, and whether the video is played completely or not, and whether downloading is completed or not can be detected. In this step, when the detection thread detects that the current video downloading is completed or the video playing is finished, it is considered that the code rate adjustment information determination condition is satisfied, and it is determined as the target analysis video.
In this embodiment, the detected video satisfying the rate adjustment information determination condition may be determined as the target analysis video. It should be noted that, the implementation of the rate adjustment information determination operation in this embodiment is not limited by other logic steps in this embodiment, and the rate adjustment information determination operation is applicable to any video that satisfies the rate adjustment information determination condition.
b3 According to the playing attribute information of the target analysis video, determining a target adjustment code rate of the target analysis video and a target adjustment weight value of the target adjustment code rate.
In the embodiment of the present disclosure, the playing attribute information may be regarded as information values of various attributes involved in the video playing process, and the playing attribute information includes, but is not limited to: the playback duration, the playback code rate, the download duration, the start-up buffer duration, the end buffer duration, the pause duration, and the pause duration. In this embodiment, the playing attribute information of the video can be obtained by detecting information values corresponding to various attribute parameters in video playing.
For the target analysis video, the target analysis video has an actual playing code rate in the playing stage, however, the playing code rate adopted in the playing stage of the target analysis video is not necessarily a code rate suitable for the target analysis video to be played, for example, the playing code rate may cause a pause, or a playing picture is unclear. In this embodiment, after the target analysis video is downloaded or played, the code rate more suitable for video playing is determined by combining the playing attribute information of the playing attribute corresponding to the target analysis video in the playing process, and the code rate can be recorded as the adjustment code rate of the video. Meanwhile, an adjusting weight value used for representing the adaptation degree of the playing code rate can be determined for the adjusting code rate based on the playing attribute information.
In this embodiment, there is a certain relationship between the adjustment code rate and the actual playing code rate, which can be determined by combining the playing code rate with parameter values such as the adjustment parameter, the code rate upper limit parameter, and the code rate lower limit parameter. The upper limit parameter and the lower limit parameter of the code rate are preset parameters, and the adjusting parameters can be determined by combining the play time length, the play start cache time length, the end cache time length, the pause time length and the like with a given calculation expression. And analyzing the video corresponding to the target, and recording the determined adjusting code rate as the target adjusting code rate.
In this embodiment, after determining the adjustment code rate, an adjustment weight value of the adjustment code rate needs to be determined according to the playing time length, the downloading time length, the pause time length or the playing code rate and by combining calculation expressions in different weight determination manners. The adjustment weight value may be marked as a target adjustment weight value with respect to the target adjustment code rate.
c3 The target adjusting code rate and the target adjusting weight value are used as target code rate adjusting information of the target analysis video.
According to the technical scheme, the playing attribute information in the playing process of the associated video is adopted when the code rate adjusting information is determined, and the determined code rate adjusting information can be used for determining the starting playing selection file of the follow-up video which is not played. The whole technology realizes the prejudgment of the prior information on the post-execution logic, and the determination of the play starting selection is better realized through the mode on the basis of not depending on the network speed, so that the balance of the fluency and the definition in the video playing is better ensured.
On the basis of the optimization, the embodiment of the present disclosure may specifically optimize the target adjustment code rate determined according to the playing attribute information of the target analysis video and the target adjustment weight value of the target adjustment code rate to the following steps:
b31 Obtaining play attribute information of the target analysis video, wherein the play attribute information includes: the playback duration, the playback code rate, the download duration, the start-up buffer duration, the end buffer duration, the pause duration, and the pause duration.
The present embodiment may acquire the play attribute information through this step. The playing time length in the playing attribute information can be regarded as the actual video length of the corresponding video; the playing code rate can be regarded as the code rate actually adopted in the video playing process; the downloading duration can be considered as the duration required for downloading the video, wherein if the video downloading is completed earlier than the video playing is completed, the downloading duration can be considered as the actual duration of the video downloading, and if the video playing is still completed, the downloading duration is equivalent to the playing duration of the video playing.
As described above, the play-starting caching duration may be regarded as a caching duration corresponding to the cached streaming media data in the streaming media data caching list at the initial play time of the target analysis video; the end caching duration may be considered as the end playing time of the target analysis video, or the caching duration corresponding to the cached streaming media data in the streaming media caching list at the video downloading completion time. The pause time can be regarded as the pause accumulated time of the pause in the playing process of the target analysis video; the pause duration may be considered as a cumulative pause duration in which pauses occur during the target analysis video playback.
b32 According to at least one of the play time length, the play start buffer time length, the end buffer time length, the pause time length and the pause time length, determining an adjustment parameter.
One implementation of this step can be described as: by the starting cache duration and the ending cache duration, the streaming media data with how much cache duration is specifically performed in the video playing stage is considered; the specific influence duration of the video playing stage influenced by human or self playing conditions can be considered through the pause duration and the pause duration.
Then, determining an adjusting parameter value by the cache duration and the specific influence duration in the video playing stage and combining a given parameter (such as a cache parameter) and a parameter value calculation expression, and then determining whether the adjusting parameter value can be used as a final adjusting parameter by parameter information, wherein if so, the adjusting parameter value can be regarded as the final adjusting parameter; if not, a parameter value can be selected as a final adjusting parameter according to a selected strategy, wherein the selected strategy can be information which meets the condition and is selected from the determined adjusting parameter value and a given parameter threshold value.
Specifically, the embodiment of the present disclosure may further optimize determining the adjustment parameter according to at least one of the play time, the start-play buffer time, the end-buffer time, the pause time, and the pause time to the following steps:
b321 Determine a time difference between the ending buffer time and the start-up buffer time, and determine a sum of the pause time and the pause time.
This step is used to obtain two information values, wherein the difference between the ending buffer duration and the starting buffer duration can be obtained as the duration difference, and the sum of the pause duration and the pause duration can also be obtained as the duration sum.
b322 The product of the time length difference and the set caching parameter is recorded as a first product value, and the product of the time length difference and the set pause stuck parameter is recorded as a second product value.
In the embodiment of the present disclosure, the buffer parameter and the pause parameter may be set hyper parameters, the result of multiplying the duration difference by the set buffer parameter is recorded as a first product value, and the result of multiplying the duration sum by the set pause parameter is recorded as a second product value.
b323 Determining a ratio of a difference between the first product value and the second product value to the download duration, and determining a value obtained by adding 1 to the ratio as a candidate adjustment parameter.
Specifically, the difference result is obtained by subtracting the second product value from the first product value, and the value obtained by dividing the difference result by the value of the download duration plus 1 may be determined as the candidate adjustment parameter.
b324 Determining the minimum value of the candidate adjusting parameter and the set departure upper limit parameter as the adjusting parameter if the departure flag corresponding to the target analysis video is the first set flag value.
Specifically, after the candidate adjustment parameter is obtained, the current value of the departure flag set for the target analysis video may be checked, and if the departure flag is the first set flag value, it may be considered that the target analysis video passively slides out and departs in the playing process, where the first set flag value may preferably be 1; at this time, the candidate adjustment parameters may be screened again based on the preset departure upper limit parameter through this step, and if the candidate adjustment parameter is less than or equal to the departure upper limit parameter, the candidate adjustment parameter may be regarded as qualified data, and thus the candidate adjustment parameter may be used as the final adjustment parameter; if the candidate adjustment parameter is greater than the departure upper limit parameter, the determined candidate adjustment parameter may be deemed to have no referential meaning, at which point the departure upper limit parameter may be determined as the final adjustment parameter.
b325 If the corresponding departure flag position of the target analysis video is empty or the second set flag value is obtained, determining the candidate adjustment parameter as the adjustment parameter.
This step can be considered as another implementation case different from the above b324, which also needs to check the current value of the leaving flag set in relation to the target analysis video, and if the leaving flag is currently empty or set to a second set flag value, where the second set flag value may preferably be 0, it can be considered that the target analysis video does not passively slide out of the event during the playing process of the target analysis video; at this time, the candidate adjustment parameter may be directly determined as the final adjustment parameter by this step, so as to participate in the adjustment of the subsequent video playing code rate.
The above steps b321 to b324 provide an implementation manner of adjusting parameter determination, which mainly considers the influence of the buffer duration and the pause duration on the playing code rate in the video playing process, so as to determine the adjusting parameter influencing the adjusting code rate.
b33 According to the playing code rate, the adjusting parameter, and the set code rate upper limit parameter and the code rate lower limit parameter, determining the target adjusting code rate of the target analysis video.
In this embodiment, both the upper limit code rate parameter and the lower limit code rate parameter may be regarded as predetermined parameter values, and the present embodiment may determine the target adjustment code rate of the target analysis video by performing operations on the playback code rate, the adjustment parameter, and the set upper limit code rate parameter and lower limit code rate parameter.
The code rate upper limit parameter and the code rate lower limit parameter can be used for standardizing the determined adjusting parameters, and at least ensuring that the parameters for adjusting the code rate are in the range, for example, when the adjusting parameters are in the interval range of the code rate upper limit parameter and the code rate lower limit parameter, the parameters participating in adjusting the code rate determination can be the adjusting parameters; if the adjusting parameter is smaller than the code rate lower limit parameter, the parameter participating in the determination of the adjusting code rate can be the code rate lower limit parameter; if the adjusting parameter is larger than the code rate upper limit parameter, the parameter participating in the determination of the adjusting code rate can be the code rate upper limit parameter.
In this embodiment, the determined parameter participating in the determination of the adjustment code rate may be recorded as a target adjustment parameter, and a relationship between the adjustment code rate and the playing code rate of the target analysis video may be expressed as: and taking the product of the target adjusting code rate and the playing code rate as the target adjusting code rate.
Specifically, the determining of the target adjustment code rate of the target analysis video according to the playing code rate, the adjustment parameter, and the set upper limit parameter and the lower limit parameter of the code rate may further be optimized as the following steps:
b331 Determining a minimum value of the adjusting parameter and the code rate upper limit parameter as an intermediate adjusting parameter.
Illustratively, this step implements comparison between the adjusted code rate and the code rate upper limit parameter, and only the parameter value not exceeding the code rate upper limit parameter is possible to be used for determining the adjusted code rate, so this step may first determine the minimum value of the two as the intermediate adjusted parameter.
b332 Determining a maximum value of the code rate lower limit parameter and the intermediate adjusting parameter as a target adjusting parameter.
For example, this step implements comparison between the lower limit parameter of the code rate and the intermediate adjustment parameter, and only the parameter value not lower than the lower limit parameter of the code rate is likely to be used for determining the adjustment code rate, so this step may first determine the maximum value of the two as the target adjustment parameter finally used for adjusting the determination of the code rate.
b333 Determining a product value of the playing code rate and the target adjusting parameter as a target adjusting code rate of the target analysis video.
For example, the association relationship between the modulation code rate and the playing code rate may be the multiplication of the playing code rate and the target modulation parameter. Therefore, in the step, the product value obtained by multiplying the playing code rate by the target adjusting parameter can be determined as the target adjusting code rate of the target analysis video.
The above steps b331 to b333 provide an implementation manner of determining the target adjustment code rate, which mainly considers the limitation of the adjustment parameter interval to the target adjustment parameter and the relationship between the playing code rate and the target adjustment parameter, thereby effectively determining the adjustment code rate more suitable for the target analysis video playing.
b34 According to the playing time length, the downloading time length, the pause time length or the playing code rate, and in combination with a set weight determination mode, determining a target adjustment weight value of the target adjustment code rate.
In the implementation of determining the target code rate adjustment information corresponding to the target analysis video, after the target adjustment code rate is determined, the target adjustment weight value needs to be further determined in combination with the playing attribute information to represent the appropriate degree of the target adjustment code rate for video playing.
In this embodiment, the suitability of the target adjustment code rate for video playing may be considered from two dimensions, one dimension may be video downloading time of a video, the other dimension may be video downloading size of the video, and the adjustment weight value determination modes in different dimensions are different. For example, the influence of the download duration, the pause duration and the play duration on the adjustment weight value can be considered in the video download time dimension; the influence of the download duration, the play duration and the play code rate on the weight value adjustment can be considered under the dimension of video download size.
Specifically, the determining of the target adjustment weight value of the target adjustment code rate according to the play duration, the download duration, the pause duration or the play code rate in combination with a set weight determination manner may further be specifically optimized as follows:
b341 Obtain the set weight determination flag value.
In an embodiment of the disclosure, the dimension for adjusting the weight determination may be characterized by a weight determination flag, and different weight determination flag values may characterize different adjustment weight determination dimensions, wherein the weight determination flag value may be predetermined.
b342 If the weight determination flag value representation is determined according to the download time, taking the sum of the download time length and the pause time length as the time-consuming time length, and determining the minimum value of the time-consuming time length and the playing time length as the target adjustment weight value of the target adjustment code rate.
In this embodiment, if the dimension represented by the obtained weight determination flag value is determined according to the download time, the determination of the target adjustment weight value can be realized by this step. Specifically, the download duration and the pause duration of the video playing process can be used as the time-consuming duration of video downloading, and in consideration of the limitation of the video playing duration on the video downloading characteristics, the minimum value between the time-consuming duration and the playing duration can be used as the target adjustment weight value of the target adjustment code rate in the video downloading time dimension in the embodiment.
b343 If the weight determination flag value is determined according to the download size, multiplying the minimum value of the download duration and the play duration by the play code rate, and determining the multiplied value as a target adjustment weight value of the target adjustment code rate.
In this embodiment, if the dimension represented by the obtained weight determination flag value is determined according to the download size, the determination of the target adjustment weight value can be realized through this step. Specifically, the download duration and the play duration in the video playing process can be compared, and the minimum value of the download duration and the play duration determines the playing attribute of the video, so that the minimum value of the download duration and the play duration can be multiplied by the playing code rate to serve as a target adjustment weight value of the target adjustment code rate in the video download dimension.
According to the technical scheme, specific determination and implementation of the code rate adjustment information are provided, and the whole technology realizes technical support provided for the code rate adjustment information required in the determination of the starting-playing gear selection, so that the starting-playing gear selection operation provided by the embodiment can be effectively performed on the basis of not depending on the network speed, and the balance of fluency and definition in video playing is better ensured.
As a second optional embodiment of this embodiment, on the basis of the above embodiment, the following may be further optimized and added: and taking the target analysis video as a new historical playing video, and updating the target code rate adjustment information of the target analysis video into the cache queue.
It can be known that, after the target bitrate adjustment information is determined by analyzing the video relative to the target through the above steps, the target bitrate adjustment information needs to be further cached in a cache list for determining the play-starting gear selection of the subsequent video to be played. Specifically, the present embodiment may mark the target analysis video for which the target bitrate adjustment information is determined as a new historical playing video, and then cache the target bitrate adjustment information in the cache queue according to a suitable cache limiting condition. And the above steps can be regarded as a step of loop iteration, and as long as a new historical playing video exists and a corresponding adjusting code rate weight value is determined, the update of the code rate adjusting information in the cache queue can be realized through the steps.
It should be noted that the code rate adjustment information is not added to the buffer queue without limitation, and it needs to be ensured that after the code rate adjustment information is added, the buffer list can still meet a certain set limiting condition, where the limiting condition may be recorded as a buffer limiting condition, and the buffer limiting condition may be that the total number of the code rate adjustment information included in the buffer queue is required to be not greater than a set value; or the sum of the adjustment weight values in the rate adjustment information contained in the cache queue may be required to be not greater than a set threshold.
Therefore, when the target code rate adjustment information is cached in the cache queue, the optional embodiment can delete the earliest cached code rate adjustment information from the cache queue so as to ensure that the total number of the added target code rate adjustment information is not more than a set value; or, the adjustment weight value in the earliest cached code rate adjustment information may be deleted or changed, so as to ensure that the sum of the adjustment weight values in the cache queue is still not greater than the set threshold after the target code rate adjustment information is added.
It should be noted that, with respect to different set limiting conditions of the cache list, different manners are used for caching the target bitrate adjustment information. In this embodiment, the code rate adjustment information is cached through the following steps a4 to d4, and it can be considered that the caching policy is proposed by taking the condition that the sum of the adjustment weight values in the caching queue is not greater than the set threshold.
Specifically, as one implementation manner executed under such a limited condition, the optional embodiment may update the target bitrate adjustment information of the target analysis video to the cache queue to further optimize:
a4 Obtaining code rate adjustment information of each historical playing video contained in the cache queue, and recording the code rate adjustment information as historical code rate adjustment information respectively.
In this embodiment, the code rate adjustment information of each historically played video cached in the cache queue may be directly obtained in this step, and in order to facilitate the distinction, each obtained code rate adjustment information is recorded as historical code rate adjustment information in this embodiment.
b4 Determine a sum of weight values of the adjustment weight values in each of the historical bitrate adjustment information.
In this step, the sum of the weight values of the respective adjustment weight values may be determined based on the obtained historical code rate adjustment information.
c4 Determine the sum of the weighted values and the target adjusting weighted value in the target code rate adjusting information, and record the sum as the target weighted sum.
In this step, a target adjusting weight value in the target code rate adjusting information may be further added on the basis of the sum of weight values, so as to obtain a target weight sum.
d4 According to the target weight sum and a set adjusting threshold value, updating the target code rate adjusting information to the cache queue.
In this embodiment, setting the adjustment threshold may be regarded as setting a condition threshold relative to the sum of the adjustment weight values. In this step, the comparison result between the target weight and the set adjustment threshold is different, and the manner adopted for updating the target code rate adjustment information into the cache queue is different.
For example, if the target weight sum is less than or equal to the set adjustment threshold, it may be considered that the sum of the adjustment weight values after the target bitrate adjustment information is cached in the cache queue is not greater than the set adjustment threshold, and at this time, the target bitrate adjustment information may be directly cached in the cache queue.
As described above, if the target weight sum is greater than the set adjustment threshold, it may be considered that the sum of the adjustment weight values after the target bitrate adjustment information is cached in the cache queue is greater than the set adjustment threshold, at this time, the adjustment weight values in the cache queue need to be deleted or changed, and then the target bitrate adjustment information is cached in the cache queue, so that the sum of the adjustment weight values after the target bitrate adjustment information is cached in the cache queue can still meet the requirement that the sum of the adjustment weight values is not greater than the set adjustment threshold.
Specifically, the operation of deleting or changing the adjustment weight value in the buffer queue may be implemented by taking the code rate adjustment information added earliest in the buffer queue as an operation object, and then giving a specific operation logic according to a comparison between the adjustment weight value in the operation object and a part exceeding a set adjustment threshold, where the operation logic may be to directly delete the operation object, or update the adjustment weight value in the operation object, or repeatedly execute the operation logic by taking the code rate adjustment information adjacent to the operation object as a new operation object.
In the technical scheme of this embodiment, a specific implementation is provided for updating the code rate adjustment information to the buffer queue, and the information contained in the buffer queue needs to be ensured to meet a certain limiting condition in the whole implementation process. The dynamic updating of the information of the cache queue realized by the technical scheme ensures the timeliness of the information contained in the cache queue, and further ensures the effectiveness when the information contained in the cache queue is adopted to determine the starting and selecting files.
On the basis of the above optimization, the embodiment of the present disclosure may specifically optimize the following steps of updating the target code rate adjustment information into the buffer queue according to the target weight and the set adjustment threshold:
d41 Obtain a set adjustment threshold.
The set adjustment threshold may be a predetermined empirical threshold
d42 Determining that the target weight sum is less than or equal to the set adjustment threshold, if yes, performing step d43; if not, go to step d44.
This step is equivalent to the determination of whether the buffer queue meets the constraint condition, and if the target weight sum is less than or equal to the set adjustment threshold, it can be considered that the buffer queue still meets the constraint condition after adding the target code rate adjustment information, and step d43 can be executed; otherwise, the target bitrate adjustment information is considered not to satisfy the limitation condition after being added, and step d44 needs to be executed.
d43 Add the target code rate adjustment information to the tail of the buffer queue.
In this step, the target code rate adjustment information may be directly added to the tail of the buffer queue.
d44 Determining the difference between the target weight and the set adjustment threshold, recording as a weight difference, and updating the target code rate adjustment information to the cache queue according to the weight difference.
In this step, the difference between the target weight and the set adjustment threshold needs to be calculated and recorded as a weight difference, and the weight difference can be considered as a part of the sum of the adjustment weight values in the cache queue exceeding the set adjustment threshold after the target code rate adjustment information is added.
This step may update the target code rate adjustment information based on the weight difference value in combination with the code rate adjustment information of the head of line in the cache queue. The weight difference value can be equal to a head of queue adjustment weight value in the queue code rate adjustment information; the weight value can also be adjusted to be larger than the head of the queue; the difference between the weight difference and the comparison result of the queue head adjusting weight value can be smaller than the queue head adjusting weight value, and the target code rate adjusting information is updated to the cache queue corresponding to different cache modes respectively.
Specifically, the embodiment of the present disclosure may further optimize the step of updating the target code rate adjustment information to the buffer queue according to the weight difference as follows:
d441 Obtaining a head of line adjustment weight value from head of line code rate adjustment information of the cache queue.
Illustratively, the step obtains the code rate adjustment information of the head of the queue in the cache queue, and can obtain an adjustment weight value in the information, and the adjustment weight value is recorded as the head of the queue adjustment weight value.
d442 Comparing the head condition weight value with the weight difference value.
Illustratively, the comparison result includes that the head condition weight value is greater than, equal to or less than the weight difference value.
d443 If the head of line adjustment weighted value is greater than the weighted difference, the difference between the head of line adjustment weighted value and the weighted difference is used as a new head of line adjustment weighted value in the head of line code rate adjustment information, and the target code rate adjustment information is added to the tail of the cache queue.
The step may be considered as an execution logic of one of the comparison results, and in the comparison result, the first-end code rate adjustment information does not need to be deleted completely, and only the first-end adjustment weight value in the first-end code rate adjustment information needs to be updated, specifically, the difference between the original first-end adjustment weight value and the weight difference value may be updated, and after the weight value is updated, the target code rate adjustment information may be added to the tail of the cache queue.
d444 If the first-queue adjustment weight value is equal to the weight difference value, directly deleting the first-queue code rate adjustment information from the cache queue, and adding the target code rate adjustment information to the tail of the cache queue.
This step may be regarded as another execution logic of the comparison result, and in the comparison result, the adjustment weight value equivalent to the head of the queue is just the weight value exceeding the threshold, so that the adjustment information of the code rate at the head of the queue can be directly deleted from the cache queue, and then the adjustment information of the target code rate can be added to the tail of the cache queue.
d445 If the queue head adjusting weight value is smaller than the weight difference value, deleting the queue head code rate adjusting information from the cache queue, taking the next code rate adjusting information of the queue head code rate adjusting information as new queue head code rate adjusting information, and returning to the step d442.
This step may be regarded as an execution logic of another comparison result, and in the comparison result, the weight value corresponding to the part where the weight value of the head of the line exceeds the threshold value is smaller, and the weight value to be deleted needs to be further considered, so that the code rate adjustment information of the head of the line needs to be deleted, and then the information code rate adjustment information of the head of the line needs to be determined, and the step d442 is returned to, and the comparison between the weight value of the head of the line and the difference value of the weight is performed again.
According to the technical scheme, the weight sum in the cache queue can be kept to be a stable numerical value through updating and replacing the code rate adjusting information, and the calculation of a new adjusting code rate is facilitated to determine accurate gear adjustment.
In this embodiment, the buffering of the rate adjustment information is realized through the following steps a5 to d5, and it can be considered that the total number of the rate adjustment information contained in the buffer queue is not greater than the set value as the buffer strategy proposed by the limiting condition.
Specifically, as one implementation manner executed under such a limited condition, the optional embodiment may update the target bitrate adjustment information of the target analysis video to the cache queue to further optimize:
a5 Obtaining the number of the historical information which contains the historical code rate adjustment information in the cache queue, and adding 1 to the number of the historical information to obtain the expected information number.
In this embodiment, the code rate adjustment information of each historically played video cached in the cache queue may be directly obtained in this step, so that the total number of all code rate adjustment information included may be determined, and this total number is recorded as the number of the historical information in this embodiment.
In this step, 1 may be added to the number of the history information to be used as the total number of the target code rate adjustment information, which is recorded as the number of the expected information in this embodiment.
b5 Determining that the number of the expected information is less than or equal to a set number threshold, if yes, executing step c5; if not, step d5 is executed.
In this embodiment, the set number threshold may be considered as a condition threshold set with respect to the number of the information that can be accommodated in the buffer queue. In this step, there is a comparison relationship smaller than, equal to, or larger than the predetermined number threshold between the expected information number and the predetermined number threshold, and when it is determined that the expected information number is smaller than or equal to the predetermined number threshold, it may be determined that the number of code rate adjustment information included in the buffer queue has not reached the limitation condition, so that step c5 may be directly performed; and when the expected number of information is greater than the set number threshold, it may be determined that the number of code rate adjustment information included in the buffer queue has exceeded the limit condition, and thus step d5 needs to be performed.
c5 Directly add the target code rate adjustment information to the tail of the buffer queue.
In this step, the target code rate adjustment information may be directly added to the tail of the buffer queue.
d5 Deleting the first-line code rate adjustment information in the cache queue, and adding the target code rate adjustment information to the tail of the cache queue.
However, when the number of the code rate adjustment information contained in the cache queue exceeds the limit condition, if the number of the code rate adjustment information to be added is limited within the set number threshold, the first-end code rate adjustment information in the cache queue can be deleted through the step, and then the target code rate adjustment information is added to the tail of the cache queue.
According to the technical scheme, the number and the stable numerical value in the cache queue can be kept by updating and replacing the code rate adjusting information, and the calculation of a new adjusting code rate is facilitated to determine accurate gear adjustment.
Fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present disclosure, and as shown in fig. 4, the apparatus may include: a response gear selection module 410, a code rate adjustment gear selection module 420, and a gear play module 430. Wherein the content of the first and second substances,
an operation response module 410, configured to respond to a file play starting operation of a video to be played;
a gear determining module 420, configured to determine a target play start gear corresponding to a video to be played according to code rate adjustment information of a historical play video cached in a set cache queue, where the code rate adjustment information includes an adjustment code rate of the corresponding historical play video and an adjustment weight value of the adjustment code rate;
the video playing module 430 is configured to play the video to be played with a playing quality corresponding to the target starting gear when the playing condition of the video to be played is met.
According to the technical scheme provided by the embodiment of the disclosure, before the video to be played is played, the play-starting gear of the video to be played is determined according to code rate adjustment information of the historical play video through triggered play-starting gear selection operation on the premise of not depending on the network speed, so that accurate gear selection of the video play-starting is realized, and balance between play fluency and definition can be achieved when the video to be played is determined to be played by adopting the play picture quality corresponding to the gear selection. According to the technical scheme, the decoupling of the network speed of the starting playing and gear selecting moment is realized, the method is better suitable for scenes in which the network speed cannot be effectively obtained, the effective balance of the video playing fluency and the definition is ensured through the determined starting playing gear, the video watching experience of a user is improved, and meanwhile, the scene application range of the technical scheme is expanded.
Further, the gear determination module 420 may include:
the first obtaining unit is used for obtaining code rate adjustment information of each historical playing video cached in the cache queue and determining the sum of adjustment weights of adjustment weight values in each code rate adjustment information;
the first determining unit is used for determining a target code rate corresponding to the video to be played according to a comparison result of the sum of the adjusting weights and the set minimum effective weight threshold;
and the second determining unit is used for determining a target play starting gear corresponding to the video to be played according to the target code rate.
Further, the first determining unit may specifically include:
the first determining subunit is configured to, when the sum of the adjustment weights is smaller than the minimum effective weight threshold, use a set reference code rate as a target code rate of the video to be played;
and the second determining subunit determines, when the sum of the adjustment weights is greater than or equal to the minimum effective weight threshold, a weighted value of each adjustment code rate and a corresponding adjustment weight value, and determines a target code rate corresponding to the video to be played according to the weighted value.
Further, the second determining subunit may specifically be configured to:
weighting each adjusting code rate and the corresponding adjusting weight value according to a weighting rule corresponding to a preset weighting identifier to obtain a weighted value;
determining a product value of the weighted value and the set secondary adjusting parameter, and taking the minimum value of the product value and the set code rate upper limit value as a candidate code rate;
and determining the set code rate lower limit value and the maximum value of the candidate code rates as the target code rate of the video to be played.
Further, the first determining unit may specifically be configured to:
searching a preset code rate-gear relation table, wherein the code rate-gear relation table comprises at least one binary relation group, and each binary relation group comprises a code rate range and a corresponding play-starting gear;
and taking the play starting gear corresponding to the code rate range where the target code rate is located as the target play starting gear of the video to be played.
Further, the apparatus further comprises: an adjustment information determination module for determining the adjustment information,
and the adjusting information determining module is used for determining the target analysis video and determining the target code rate adjusting information of the target analysis video when the code rate adjusting information determining condition is met.
Further, the adjustment information determination module may include:
the analysis video determining unit is used for determining that the code rate adjustment information determining condition is met currently when the fact that the video downloading is completed or the video playing is completed currently is detected, and determining the video which is downloaded or played currently is determined as a target analysis video;
a code rate weight determining unit, configured to determine a target adjustment code rate of the target analysis video and a target adjustment weight value of the target adjustment code rate according to play attribute information of the target analysis video;
and the information summarizing unit is used for taking the target adjusting code rate and the target adjusting weight value as target code rate adjusting information of the target analysis video.
Further, the code rate weight determining unit may specifically include:
an attribute obtaining subunit, configured to obtain play attribute information of the target analysis video, where the play attribute information includes: playing time, playing code rate, downloading time, playing start cache time, ending cache time, pause time and pause time;
the parameter determining subunit is used for determining an adjusting parameter according to the playing time length, the playing start cache time length, the ending cache time length, the pause time length and the pause time length;
a code rate determining subunit, configured to determine a target adjustment code rate of the target analysis video according to the playing code rate, the adjustment parameter, and the set code rate upper limit parameter and code rate lower limit parameter;
and the weight determining subunit is used for determining a target adjusting weight value of the target adjusting code rate according to the playing time length, the downloading time length, the pause time length or the playing code rate and by combining a set weight determining mode.
Further, the parameter determination subunit may specifically be configured to:
determining the time difference between the ending cache time and the playing start cache time, and determining the sum of the pause time and the pause time;
recording the product of the time length difference and the set caching parameter as a first product value, and recording the product of the time length difference and the set pause parameter as a second product value;
determining the ratio of the difference between the first product value and the second product value to the downloading time length, and determining the value obtained by adding 1 to the ratio as a candidate adjusting parameter;
if the departure flag position corresponding to the target analysis video is a first set flag value, determining the minimum value of the candidate adjusting parameter and the set departure upper limit parameter as the adjusting parameter;
and if the leaving flag position corresponding to the target analysis video is empty or a second set mark value, determining the candidate adjusting parameter as the adjusting parameter.
Further, the code rate determining subunit may be specifically configured to:
determining the minimum value of the adjusting parameter and the code rate upper limit parameter as a middle adjusting parameter;
determining the maximum value of the code rate lower limit parameter and the middle adjusting parameter as a target adjusting parameter;
and determining the product value of the playing code rate and the target adjusting parameter as the target adjusting code rate of the target analysis video.
Further, the weight determination subunit may specifically be configured to:
acquiring a set weight determination mark value;
if the weight determination marking value is determined according to the downloading time, taking the sum of the downloading time length and the pause time length as time-consuming time length, and determining the minimum value of the time-consuming time length and the playing time length as a target adjustment weight value of the target adjustment code rate;
and if the weight determination marking value is determined according to the download size, multiplying the minimum value of the download duration and the play duration by the play code rate, and determining the multiplied value as a target adjustment weight value of the target adjustment code rate.
Further, the device also comprises a queue updating module,
and the queue updating module is used for taking the target analysis video as a new historical playing video and updating the target code rate adjusting information of the target analysis video into the cache queue.
Further, the queue update module may include:
a historical information obtaining unit, configured to obtain code rate adjustment information of each historically played video included in the cache queue, and record the code rate adjustment information as historical code rate adjustment information respectively;
the first calculating unit is used for determining the sum of weight values of the adjusting weight values in each historical code rate adjusting information;
the second calculation unit is used for determining the sum of the weighted values and the sum of the target adjusting weighted values in the target code rate adjusting information and recording the sum as a target weighted sum;
and the cache updating unit is used for updating the target code rate regulation information into the cache queue according to the target weight sum and a set regulation threshold value.
Further, updating the cache unit may include:
a first execution unit, configured to, when the target weight sum is less than or equal to the set adjustment threshold, directly add the target bitrate adjustment information to a tail of the cache queue; if not, then,
and the second execution unit is used for determining the difference value between the target weight sum and the set adjusting threshold value when the target weight sum is greater than the set adjusting threshold value, recording the difference value as a weight difference value, and updating the target code rate adjusting information into the cache queue according to the weight difference value.
Further, the second judgment cache subunit may specifically be configured to:
acquiring a head regulation weight value from the head code rate regulation information of the cache queue;
comparing the head condition weight value with the weight difference value;
if the first regulation weighted value is larger than the weight difference value, taking the difference value between the first regulation weighted value and the weight difference value as a new first regulation weighted value in the first code rate regulation information, and adding the target code rate regulation information to the tail of the cache queue;
if the queue head adjusting weight value is equal to the weight difference value, directly deleting the queue head code rate adjusting information from the cache queue, and adding the target code rate adjusting information to the tail of the cache queue;
and if the queue head adjusting weight value is smaller than the weight difference value, deleting the queue head code rate adjusting information from the cache queue, taking the next code rate adjusting information of the queue head code rate adjusting information as new queue head code rate adjusting information, and returning to re-execute the comparison operation of the queue head adjusting weight value and the weight difference value.
Further, the queue updating module may specifically be further configured to:
acquiring the number of historical information which contains historical code rate adjustment information in the cache queue, and adding 1 to the number of the historical information to be used as the number of expected information;
if the number of the expected information is less than or equal to the set number threshold, directly adding the target code rate adjustment information to the tail of the cache queue; if not, then,
and deleting the first-queue code rate adjustment information in the cache queue, and adding the target code rate adjustment information to the tail of the cache queue.
The video playing device structure provided by the embodiment of the disclosure can execute the video playing method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. Referring now to fig. 5, a schematic diagram of an electronic device (e.g., the terminal device or the server in fig. 5) 500 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure 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 terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 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. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM502, and the RAM503 are connected to each other through a bus 504. An editing/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 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 carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The electronic device provided by the embodiment of the present disclosure and the video playing method provided by the above embodiment belong to the same inventive concept, and the technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment and the above embodiment have the same beneficial effects.
The disclosed embodiments provide a computer storage medium having a computer program stored thereon, which when executed by a processor implements the video playing method provided by the above embodiments.
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 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.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
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:
the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to the play starting and gear selecting operation of the video to be played; determining a target play-starting gear corresponding to a video to be played according to code rate adjustment information of a cached historical playing video in a set cache queue, wherein the code rate adjustment information comprises an adjustment code rate of the corresponding historical playing video and an adjustment weight value of the adjustment code rate; and when the playing condition of the video to be played is met, playing the video to be played according to the playing image quality corresponding to the target playing gear.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to 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 an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided a video playing method, the method including: responding to the play starting and gear selecting operation of the video to be played; determining a target play-starting gear corresponding to a video to be played according to code rate adjustment information of a cached historical playing video in a set cache queue, wherein the code rate adjustment information comprises an adjustment code rate of the corresponding historical playing video and an adjustment weight value of the adjustment code rate; and when the playing condition of the video to be played is met, playing the video to be played according to the playing image quality corresponding to the target playing gear.
According to one or more embodiments of the present disclosure, an [ example two ] provides a video playing method, where the method includes further optimizing, in the code rate adjustment information, an adjustment code rate of a corresponding historical playing video and an adjustment weight value of the adjustment code rate, where the optimization is specifically: firstly, acquiring code rate adjustment information of each historical playing video cached in the cache queue, and determining the sum of adjustment weights of adjustment weight values in each code rate adjustment information; then determining a target code rate corresponding to the video to be played according to a comparison result of the sum of the adjusting weights and the set minimum effective weight threshold; and finally, determining a target play starting gear corresponding to the video to be played according to the target code rate.
According to one or more embodiments of the present disclosure, an [ example three ] provides a video playing method, which includes determining further optimization of a target bitrate corresponding to a video to be played according to a comparison result between the sum of the adjustment weights and a set minimum effective weight threshold, and specifically may be that: if the sum of the adjusting weights is smaller than the minimum effective weight threshold, taking the set reference code rate as the target code rate of the video to be played; and if the sum of the adjusting weights is greater than or equal to the minimum effective weight threshold, determining a weighted value of each adjusting code rate and the corresponding adjusting weight value, and determining a target code rate corresponding to the video to be played according to the weighted value.
According to one or more embodiments of the present disclosure, an [ example four ] provides a video playing method, where the method includes further optimizing, to determine a weighted value of each adjustment bitrate and a corresponding adjustment weighted value, and determine a target bitrate corresponding to the video to be played according to the weighted value, specifically, the optimizing may be that: weighting each adjusting code rate and the corresponding adjusting weight value according to a weighting rule corresponding to a preset weighting identifier to obtain a weighted value; determining a product value of the weighted value and the set secondary adjusting parameter, and taking the minimum value of the product value and the set code rate upper limit value as a candidate code rate; and determining the set code rate lower limit value and the maximum value in the candidate code rates as the target code rate of the video to be played.
According to one or more embodiments of the present disclosure, an example five provides a video playing method, which includes further optimizing a target play-starting gear corresponding to the video to be played according to the target code rate, specifically optimizing the target play-starting gear to search a preset code rate-gear relation table, where the code rate-gear relation table includes at least one binary relation group, and each binary relation group includes a code rate range and a corresponding play-starting gear; and taking the play starting gear corresponding to the code rate range where the target code rate is located as the target play starting gear of the video to be played.
According to one or more embodiments of the present disclosure, [ example six ] there is provided a video playing method that optimizes determining a target analysis video and determining target bitrate adjustment information of the target analysis video when a bitrate adjustment information determination condition is satisfied.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided a video playing method, including further optimization of determining a target analysis video when a bitrate adjustment information determination condition is satisfied, and determining target bitrate adjustment information of the target analysis video, which may be specifically optimized as: when the fact that the downloading of the video is finished or the playing of the video is finished is detected, the fact that the code rate adjusting information determining condition is met currently is determined, and the video which is downloaded or played currently is determined as a target analysis video; determining a target adjusting code rate of the target analysis video and a target adjusting weight value of the target adjusting code rate according to the playing attribute information of the target analysis video; and taking the target adjusting code rate and the target adjusting weight value as target code rate adjusting information of the target analysis video.
According to one or more embodiments of the present disclosure, [ example eight ] there is provided a video playing method, including determining a target adjustment code rate of the target analysis video and further optimizing a target adjustment weight value of the target adjustment code rate according to playing attribute information of the target analysis video, where the method may specifically be optimized as follows: acquiring play attribute information of the target analysis video, wherein the play attribute information comprises: playing time, playing code rate, downloading time, playing start cache time, ending cache time, pause time and pause time; determining an adjusting parameter according to the playing time length, the playing starting cache time length, the ending cache time length, the pause time length and the pause time length; determining a target adjusting code rate of the target analysis video according to the playing code rate, the adjusting parameter, and the set code rate upper limit parameter and the set code rate lower limit parameter; and determining a target adjusting weight value of the target adjusting code rate according to the playing time length, the downloading time length, the pause time length or the playing code rate and in combination with a set weight determination mode.
According to one or more embodiments of the present disclosure, [ example nine ] there is provided a video playing method, including determining further optimization of an adjustment parameter according to the playing time length, the start playing buffer time length, the end buffer time length, the pause time length, and the pause time length, which may specifically be optimized as follows: determining the time difference between the ending cache time and the playing start cache time, and determining the sum of the pause time and the pause time; recording the product of the time length difference and the set caching parameter as a first product value, and recording the product of the time length difference and the set pause parameter as a second product value; determining the ratio of the difference between the first product value and the second product value to the downloading time length, and determining the value obtained by adding 1 to the ratio as a candidate adjusting parameter; if the departure flag position corresponding to the target analysis video is a first set flag value, determining the minimum value of the candidate adjusting parameter and the set departure upper limit parameter as the adjusting parameter;
and if the leaving flag position corresponding to the target analysis video is empty or a second set mark value, determining the candidate adjusting parameter as the adjusting parameter.
According to one or more embodiments of the present disclosure, [ example ten ] there is provided a video playing method, including determining further optimization of a target adjusting bitrate of the target analysis video according to the playing bitrate, an adjusting parameter, and a set bitrate upper limit parameter and bitrate lower limit parameter, which may specifically be optimization of: determining the minimum value of the adjusting parameter and the code rate upper limit parameter as a middle adjusting parameter; determining the maximum value of the code rate lower limit parameter and the middle adjusting parameter as a target adjusting parameter; and determining the product value of the playing code rate and the target adjusting parameter as the target adjusting code rate of the target analysis video.
According to one or more embodiments of the present disclosure, an [ example eleven ] provides a video playing method, where the method includes determining, according to the playing duration, the downloading duration, and the pause duration or the playing code rate, and in combination with a set weight determination manner, further optimization of a target adjustment weight value of the target adjustment code rate, which may specifically be: acquiring a set weight determination mark value; if the weight determination flag value is determined according to the downloading time, taking the sum of the downloading time length and the Kadun time length as a time-consuming time length, and determining the minimum value of the time-consuming time length and the playing time length as a target adjustment weight value of the target adjustment code rate; and if the weight determination marker value is determined according to the download size, multiplying the minimum value of the download duration and the play duration by the play code rate, and determining the multiplied value as a target adjustment weight value of the target adjustment code rate.
According to one or more embodiments of the present disclosure, [ example twelve ] there is provided a video playing method, further including taking the target analysis video as a new historical playing video, and updating target bitrate adjustment information of the target analysis video into the cache queue.
According to one or more embodiments of the present disclosure, [ example thirteen ] there is provided a video playing method, including updating target bitrate adjustment information of the target analysis video to further optimization in the cache queue, acquiring bitrate adjustment information of each historically played video already included in the cache queue, and recording the bitrate adjustment information as historical bitrate adjustment information respectively; determining the sum of the weight values of the adjustment weight values in the historical code rate adjustment information; determining the sum of the weighted values and the target adjusting weighted value in the target code rate adjusting information, and recording the sum as a target weighted sum; and updating the target code rate regulation information to the cache queue according to the target weight sum and a set regulation threshold value.
According to one or more embodiments of the present disclosure, [ example fourteen ] there is provided a video playing method, including a further optimization of updating the target bitrate adjustment information into the cache queue according to the target weight sum and a set adjustment threshold, which may be specifically optimized as: if the target weight sum is less than or equal to the set adjusting threshold, directly adding the target code rate adjusting information to the tail of the cache queue; otherwise, determining the difference value between the target weight and the set adjusting threshold value, recording as the weight difference value, and updating the target code rate adjusting information to the cache queue according to the weight difference value.
According to one or more embodiments of the present disclosure, [ example fifteen ] there is provided a video playing method, including further optimization of updating the target bitrate adjustment information into the buffer queue according to the weight difference, which may specifically be optimized as follows: acquiring a head of line regulation weight value from the head of line code rate regulation information of the cache queue; comparing the head condition weight value with the weight difference value; if the first regulation weighted value is larger than the weight difference value, taking the difference value between the first regulation weighted value and the weight difference value as a new first regulation weighted value in the first code rate regulation information, and adding the target code rate regulation information to the tail of the cache queue; if the first queue adjustment weight value is equal to the weight difference value, directly deleting the first queue code rate adjustment information from the cache queue, and adding the target code rate adjustment information to the tail of the cache queue; and if the queue head adjusting weight value is smaller than the weight difference value, deleting the queue head code rate adjusting information from the cache queue, taking the next code rate adjusting information of the queue head code rate adjusting information as new queue head code rate adjusting information, and returning to re-execute the comparison operation of the queue head adjusting weight value and the weight difference value.
According to one or more embodiments of the present disclosure, an [ example sixteen ] provides a video playing method, where the method includes further optimization of updating target bitrate adjustment information of the target analysis video into the cache queue, and specifically may be optimized as follows: acquiring the number of historical information which contains historical code rate adjustment information in the cache queue, and adding 1 to the number of the historical information to be used as the number of expected information; if the number of the expected information is less than or equal to the set number threshold, directly adding the target code rate adjustment information to the tail of the cache queue; and if not, deleting the first-queue code rate adjustment information in the cache queue, and adding the target code rate adjustment information to the tail of the cache queue.
According to one or more embodiments of the present disclosure, [ example seventeen ] there is provided a video playback apparatus, including: the operation response module is used for responding to the starting and gear-selecting operation of the video to be played; the gear determining module is used for determining a target play starting gear corresponding to the video to be played according to code rate adjusting information of the historical play video cached in the set cache queue; and the video playing module is used for playing the video to be played according to the playing image quality corresponding to the target playing starting gear when the playing condition of the video to be played is met.
According to one or more embodiments of the present disclosure, [ example eighteen ] there is provided an electronic device comprising one or more processors; a storage device configured to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the video playback method as in any one of examples one to sixteen above.
According to one or more embodiments of the present disclosure, [ example nineteen ] provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are for performing the video playback method of any of examples one to sixteen.
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.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (19)

1. A video playback method, comprising:
responding to play starting and gear selecting operation of the video to be played;
determining a target play-starting gear corresponding to a video to be played according to code rate adjustment information of a cached historical playing video in a set cache queue, wherein the code rate adjustment information comprises an adjustment code rate of the corresponding historical playing video and an adjustment weight value of the adjustment code rate;
and when the playing condition of the video to be played is met, playing the video to be played according to the playing image quality corresponding to the target playing gear.
2. The method according to claim 1, wherein the determining a target play-starting gear corresponding to the video to be played according to the bitrate adjustment information of the historically played video cached in the set cache queue comprises:
acquiring code rate adjustment information of each historical playing video cached in the cache queue, and determining the sum of adjustment weights of adjustment weight values in each code rate adjustment information;
determining a target code rate corresponding to the video to be played according to a comparison result of the sum of the adjusting weights and the set minimum effective weight threshold;
and determining a target play starting gear corresponding to the video to be played according to the target code rate.
3. The method according to claim 2, wherein determining the target bitrate corresponding to the video to be played according to the comparison result between the sum of the adjusting weights and the set minimum effective weight threshold comprises:
if the sum of the adjusting weights is smaller than the minimum effective weight threshold, taking the set reference code rate as the target code rate of the video to be played;
and if the sum of the adjusting weights is greater than or equal to the minimum effective weight threshold, determining a weighted value of each adjusting code rate and the corresponding adjusting weight value, and determining a target code rate corresponding to the video to be played according to the weighted value.
4. The method of claim 3, wherein the determining a weighted value for each of the adjusting bitrate and the corresponding adjusting weight value, and determining a target bitrate corresponding to the video to be played according to the weighted value comprises:
weighting each adjusting code rate and the corresponding adjusting weight value according to a weighting rule corresponding to a preset weighting identifier to obtain a weighted value;
determining a product value of the weighted value and the set secondary adjusting parameter, and taking the minimum value of the product value and the set code rate upper limit value as a candidate code rate;
and determining the set code rate lower limit value and the maximum value in the candidate code rates as the target code rate of the video to be played.
5. The method according to any one of claims 2 to 4, wherein the determining a target play-starting gear corresponding to the video to be played according to the target code rate comprises:
searching a preset code rate-gear relation table, wherein the code rate-gear relation table comprises at least one binary relation group, and each binary relation group comprises a code rate range and a corresponding play-starting gear;
and taking the play starting gear corresponding to the code rate range where the target code rate is located as the target play starting gear of the video to be played.
6. The method of claim 1, further comprising:
and when the code rate regulation information determination condition is met, determining a target analysis video and determining target code rate regulation information of the target analysis video.
7. The method of claim 6, wherein determining the target analysis video and determining the target bitrate adjustment information of the target analysis video when the bitrate adjustment information determination condition is satisfied comprises:
when the fact that the current video downloading is completed or the video playing is finished is detected, determining that the current code rate adjusting information determining condition is met, and determining the current video which is downloaded or played is the target analysis video;
determining a target adjusting code rate of the target analysis video and a target adjusting weight value of the target adjusting code rate according to the playing attribute information of the target analysis video;
and taking the target adjusting code rate and the target adjusting weight value as target code rate adjusting information of the target analysis video.
8. The method of claim 7, wherein the determining a target adjustment code rate of the target analysis video and a target adjustment weight value of the target adjustment code rate according to the playing attribute information of the target analysis video comprises:
acquiring play attribute information of the target analysis video, wherein the play attribute information comprises: playing time, playing code rate, downloading time, playing start cache time, ending cache time, pause time and pause time;
determining an adjusting parameter according to at least one of the playing time length, the playing start cache time length, the ending cache time length, the pause time length and the pause time length;
determining a target adjusting code rate of the target analysis video according to the playing code rate, the adjusting parameter, and the set code rate upper limit parameter and the set code rate lower limit parameter;
and determining a target adjusting weight value of the target adjusting code rate according to the playing time length, the downloading time length, the pause time length or the playing code rate and in combination with a set weight determination mode.
9. The method of claim 8, wherein determining an adjustment parameter according to at least one of the play-out time length, the start-up buffer time length, the end-buffer time length, the pause time length, and the pause time length comprises:
determining the time difference between the ending cache time and the playing start cache time, and determining the sum of the pause time and the pause time;
recording the product of the time length difference and the set caching parameter as a first product value, and recording the product of the time length difference and the set pause parameter as a second product value;
determining the ratio of the difference between the first product value and the second product value to the downloading time length, and determining the value obtained by adding 1 to the ratio as a candidate adjusting parameter;
if the departure flag position corresponding to the target analysis video is a first set flag value, determining the minimum value of the candidate adjusting parameter and the set departure upper limit parameter as the adjusting parameter;
and if the leaving flag position corresponding to the target analysis video is empty or a second set mark value, determining the candidate adjusting parameter as the adjusting parameter.
10. The method of claim 8, wherein the determining the target bitrate of the target analysis video according to the playback bitrate, the adjustment parameters, and the set upper bitrate limit parameter and the set lower bitrate limit parameter comprises:
determining the minimum value of the adjusting parameter and the code rate upper limit parameter as a middle adjusting parameter;
determining the maximum value of the code rate lower limit parameter and the middle adjusting parameter as a target adjusting parameter;
and determining the product value of the playing code rate and the target adjusting parameter as the target adjusting code rate of the target analysis video.
11. The method of claim 8, wherein determining the target adjustment weight value of the target adjustment code rate according to the playing duration, the downloading duration, and the pause duration or the playing code rate in combination with a set weight determination manner comprises:
acquiring a set weight determination mark value;
if the weight determination marking value is determined according to the downloading time, taking the sum of the downloading time length and the pause time length as time-consuming time length, and determining the minimum value of the time-consuming time length and the playing time length as a target adjustment weight value of the target adjustment code rate;
and if the weight determination marking value is determined according to the download size, multiplying the minimum value of the download duration and the play duration by the play code rate, and determining the multiplied value as a target adjustment weight value of the target adjustment code rate.
12. The method of claim 6, further comprising:
and taking the target analysis video as a new historical playing video, and updating the target code rate adjustment information of the target analysis video into the cache queue.
13. The method of claim 12, wherein the updating the target bitrate adjustment information of the target analytics video into the buffer queue comprises:
acquiring code rate adjustment information of each historical playing video contained in the cache queue, and recording the code rate adjustment information as historical code rate adjustment information respectively;
determining the sum of the weight values of the adjustment weight values in the historical code rate adjustment information;
determining the sum of the weighted values and the target adjusting weighted value in the target code rate adjusting information, and recording the sum as a target weighted sum;
and updating the target code rate regulation information to the cache queue according to the target weight and a set regulation threshold value.
14. The method of claim 13, wherein the updating the target rate adjustment information into the buffer queue according to the target weight sum and a set adjustment threshold comprises:
if the target weight sum is less than or equal to the set adjusting threshold, directly adding the target code rate adjusting information to the tail of the cache queue; if not, then the mobile terminal can be switched to the normal mode,
and determining the difference value between the target weight and the set adjusting threshold value, recording the difference value as a weight difference value, and updating the target code rate adjusting information into the cache queue according to the weight difference value.
15. The method of claim 14, wherein the updating the target bitrate adjustment information into the buffer queue according to the weight difference comprises:
acquiring a head regulation weight value from the head code rate regulation information of the cache queue;
comparing the head condition weight value with the weight difference value;
if the first regulation weighted value is larger than the weight difference value, taking the difference value between the first regulation weighted value and the weight difference value as a new first regulation weighted value in the first code rate regulation information, and adding the target code rate regulation information to the tail of the cache queue;
if the first queue adjustment weight value is equal to the weight difference value, directly deleting the first queue code rate adjustment information from the cache queue, and adding the target code rate adjustment information to the tail of the cache queue;
and if the queue head adjusting weight value is smaller than the weight difference value, deleting the queue head code rate adjusting information from the cache queue, taking the next code rate adjusting information of the queue head code rate adjusting information as new queue head code rate adjusting information, and returning to re-execute the comparison operation of the queue head adjusting weight value and the weight difference value.
16. The method of claim 12, wherein the updating the target bitrate adjustment information of the target analytics video into the buffer queue comprises:
acquiring the number of historical information which contains historical code rate adjustment information in the cache queue, and adding 1 to the number of the historical information to be used as the number of expected information;
if the number of the expected information is less than or equal to the set number threshold, directly adding the target code rate adjustment information to the tail of the cache queue; if not, then,
and deleting the first-queue code rate adjustment information in the cache queue, and adding the target code rate adjustment information to the tail of the cache queue.
17. A video playback apparatus, comprising:
the operation response module is used for responding to the starting and gear selecting operation of the video to be played;
the gear determining module is used for determining a target play starting gear corresponding to the video to be played according to code rate adjusting information of the historical play video cached in a set cache queue, wherein the code rate adjusting information comprises an adjusting code rate of the corresponding historical play video and an adjusting weight value of the adjusting code rate;
and the video playing module is used for playing the video to be played according to the playing image quality corresponding to the target playing starting gear when the playing condition of the video to be played is met.
18. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the video playback method of any of claims 1-16.
19. A storage medium containing computer-executable instructions for performing the video playback method of any of claims 1-16 when executed by a computer processor.
CN202211361756.XA 2022-11-02 2022-11-02 Video playing method, device, equipment and storage medium Pending CN115842937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211361756.XA CN115842937A (en) 2022-11-02 2022-11-02 Video playing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211361756.XA CN115842937A (en) 2022-11-02 2022-11-02 Video playing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115842937A true CN115842937A (en) 2023-03-24

Family

ID=85576790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211361756.XA Pending CN115842937A (en) 2022-11-02 2022-11-02 Video playing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115842937A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560528A (en) * 2024-01-11 2024-02-13 腾讯科技(深圳)有限公司 Audio and video data transmission method and device, computer equipment and readable storage medium
CN117560528B (en) * 2024-01-11 2024-05-24 腾讯科技(深圳)有限公司 Audio and video data transmission method and device, computer equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560528A (en) * 2024-01-11 2024-02-13 腾讯科技(深圳)有限公司 Audio and video data transmission method and device, computer equipment and readable storage medium
CN117560528B (en) * 2024-01-11 2024-05-24 腾讯科技(深圳)有限公司 Audio and video data transmission method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111510760B (en) Video information display method and device, storage medium and electronic equipment
CN112135169B (en) Media content loading method, device, equipment and medium
CN110602564B (en) Video optimization information providing method and device, electronic equipment and readable medium
CN112272226B (en) Picture loading method and device and readable storage medium
CN110636367A (en) Video loading method and device, terminal equipment and medium
CN115134670A (en) Multimedia playing method, device, storage medium and program product
CN113055745B (en) Video playing processing method, device, equipment and storage medium
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN111797353A (en) Information pushing method and device and electronic equipment
CN115695917A (en) Video playing method, device, equipment and storage medium
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
WO2022188618A1 (en) Resource preloading method, apparatus and device, and storage medium
CN115842937A (en) Video playing method, device, equipment and storage medium
CN114820060A (en) Advertisement recommendation method, device, equipment and medium
CN114339402A (en) Video playing completion rate prediction method, device, medium and electronic equipment
CN113177176A (en) Feature construction method, content display method and related device
CN111212302A (en) Method and device for determining video definition, electronic equipment and storage medium
CN111343245A (en) Uploading line scheduling method and device, electronic equipment and readable storage medium
CN115334360B (en) Audio and video playing method and device, electronic equipment and readable medium
CN114979757B (en) Video publishing method, device, equipment and storage medium
CN115297092B (en) Media data caching method and device, electronic equipment and storage medium
CN111385643B (en) Method and device for storing data, electronic equipment and storage medium
WO2023226742A1 (en) Video transcoding method and apparatus, and device and storage medium
CN114979679A (en) Resource issuing method, device, equipment and storage medium
CN116304427A (en) Preloading method and device, storage medium 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