Play control method and device

文档序号:1617350 发布日期:2020-01-10 浏览:16次 中文

阅读说明:本技术 播放控制方法及装置 (Play control method and device ) 是由 周海波 钟华 于 2018-07-03 设计创作,主要内容包括:本发明实施例提供一种播放控制方法及装置,涉及媒体播放技术领域。所述播放控制方法包括:采用播放器播放网络源的媒体数据时,获得播放器的工作状态的更新情况;根据所述播放器的工作状态的更新情况,动态调整所述播放器的起播阈值。使用该播放控制方法及装置,能够适应性地动态调整播放器的起播阈值,提升播放体验。(The embodiment of the invention provides a playing control method and device, and relates to the technical field of media playing. The play control method comprises the following steps: when the player is adopted to play the media data of the network source, the updating condition of the working state of the player is obtained; and dynamically adjusting the play starting threshold of the player according to the updating condition of the working state of the player. By using the playing control method and the playing control device, the playing starting threshold value of the player can be adaptively and dynamically adjusted, and the playing experience is improved.)

1. A playback control method, comprising:

when the player is adopted to play the media data of the network source, the updating condition of the working state of the player is obtained;

and dynamically adjusting the play starting threshold of the player according to the updating condition of the working state of the player.

2. The playback control method according to claim 1, wherein the operating status of the player includes a download status, and the step of dynamically adjusting the start-up threshold of the player according to the updated status of the operating status of the player includes:

obtaining the downloading speed of the player;

obtaining a threshold adjustment value of the player according to the downloading speed;

and judging whether the buffer data in the preset time length of the player in the downloading state is larger than a lowest preset threshold value or not, and if so, reducing the playing start threshold value of the player according to the threshold value adjusting value.

3. The playback control method according to claim 2, wherein the method further comprises:

if the buffer data in the preset time length of the player in the downloading state is smaller than the lowest preset threshold value, the playing start threshold value of the player is increased according to the threshold value adjusting value.

4. The playback control method according to claim 1, wherein the operating status of the player includes a decoding status, and the step of dynamically adjusting the playback start threshold of the player according to the updated status of the operating status of the player includes:

obtaining the width and height of a video decoded by the player;

obtaining a video code rate according to the width and height estimation of the video;

obtaining a threshold adjustment value of the player according to the corresponding relation between the video code rate and the downloading speed;

and judging whether the buffer data in the preset time length of the player in the decoding state is greater than a lowest preset threshold value, and if so, reducing the playing start threshold value of the player according to the threshold value adjusting value.

5. The playback control method according to claim 4, wherein the method further comprises:

if the buffer data in the preset time length of the player in the decoding state is smaller than the lowest preset threshold value, the playing start threshold value of the player is increased according to the threshold value adjusting value.

6. The playback control method according to any one of claims 1 to 5, further comprising:

when the player is adopted to play the data of the local file, a preset fixed threshold value is used as the play starting threshold value of the player.

7. A playback control apparatus, comprising:

the information acquisition module is used for acquiring the update condition of the working state of the player when the player is used for playing the media data of the network source;

and the adjusting module is used for dynamically adjusting the play starting threshold of the player according to the updating condition of the working state of the player.

8. The playback control apparatus according to claim 7, wherein the adjusting module includes:

a speed obtaining unit for obtaining a download speed of the player;

an adjustment value obtaining unit, configured to obtain a threshold adjustment value of the player according to the download speed;

and the threshold adjusting unit is used for judging whether the buffer data in the preset time length of the player in the downloading state is larger than a lowest preset threshold, and if so, adjusting the playing start threshold of the player to be smaller according to the threshold adjusting value.

9. The playback control apparatus of claim 8, wherein the threshold adjustment unit is further configured to increase the start-up threshold of the player according to the threshold adjustment value when the buffered data in a preset duration of the player in the download state is smaller than the lowest preset threshold.

10. The playback control apparatus according to claim 7, wherein the adjusting module includes:

a data obtaining unit, configured to obtain the width and height of a video decoded by the player;

the calculating unit is used for obtaining the video code rate according to the width and height estimation of the video;

an adjustment value obtaining unit, configured to obtain a threshold adjustment value of the player according to a corresponding relationship between the video code rate and the download speed;

and the adjusting unit is used for judging whether the buffer data in the preset time length of the player in the decoding state is larger than a lowest preset threshold value or not, and if so, reducing the playing start threshold value of the player according to the threshold value adjusting value.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:应用快速启动方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类