mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine player to support status change.
This commit is contained in:
parent
4841435b14
commit
6b5c880ff9
6 changed files with 136 additions and 15 deletions
|
@ -514,6 +514,9 @@
|
|||
select_buffer(0.5);
|
||||
this.play(url);
|
||||
};
|
||||
srs_player.on_player_status = function(code, desc) {
|
||||
//console.log("[播放器状态] code=" + code + ", desc=" + desc);
|
||||
};
|
||||
srs_player.on_player_metadata = function(metadata) {
|
||||
$("#btn_dar_original").text("视频原始比例" + "(" + metadata.width + ":" + metadata.height + ")");
|
||||
if (metadata.ip && metadata.pid && metadata.cid) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue