Skip to content

Commit

Permalink
Fixed #90
Browse files Browse the repository at this point in the history
  • Loading branch information
numberwolf committed Nov 23, 2021
1 parent a883e48 commit 7775fad
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 14 deletions.
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,8 @@ ffmpeg -ss 20 -t 10 -i ./res/xinxiaomen.mp4 \

| 更新日志 | 内容 |
| ---- | ---- |
| 时间 | 2021/11/23 - 夜 |
| - | 0.修复 https://github.com/numberwolf/h265web.js/issues/90 |
| 时间 | 2021/11/21 - 凌晨 |
| - | 0.支持 Websocket-FLV播放 (HEVC/H.265) |
| - | 1.支持 Websocket-TS播放 (HEVC/H.265) |
Expand Down
4 changes: 3 additions & 1 deletion README_EN.MD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A hevc/h.265 web player, easy to play 1080P. `~^_^~ For love` if <a href="https:
</font>
</strong>

#### Contact
#### Contact ####

* Github: https://github.com/numberwolf/h265web.js
* Email: [email protected]
Expand Down Expand Up @@ -904,6 +904,8 @@ ffmpeg -ss 20 -t 10 -i ./res/xinxiaomen.mp4 \

| Update | Content |
| ---- | ---- |
| Time | 2021/11/23 - Night |
| - | 0.Fixed https://github.com/numberwolf/h265web.js/issues/90 |
| Time | 2021/11/21 - In the small hours |
| - | 0.Support Websocket-FLV (HEVC/H.265) |
| - | 1.Support Websocket-TS (HEVC/H.265) |
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211120');
require('./h265webjs-v20211123');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
2 changes: 2 additions & 0 deletions dist/missile-256mb.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/missile-512mb.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions example/dist/dist-play.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211120');
require('./h265webjs-v20211123');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_normal/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211120');
require('./h265webjs-v20211123');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
7 changes: 5 additions & 2 deletions src/src/h265webjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ class H265webjsModule {
extInfo : DEFAULT_CONFIG_EXT
}; // configFormat
this.mediaExtFormat = this.configFormat.type;
this.mediaExtProtocol = AVCOMMON.GetUriProtocol(this.videoURL);
this.mediaExtProtocol = null;
if (this.videoURL !== undefined && this.videoURL !== null) {
this.mediaExtProtocol = AVCOMMON.GetUriProtocol(this.videoURL);
}

console.log("GetUriProtocol", this.mediaExtProtocol, this.mediaExtFormat);

Expand Down Expand Up @@ -1712,7 +1715,7 @@ class H265webjsModule {
// networkInterval = null;
return;
}

let chunk = result.value;
if (totalData === null) {
totalData = chunk;
Expand Down
2 changes: 1 addition & 1 deletion src/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Github: https://github.com/numberwolf/h265web.js
*
**********************************************************/
require('./h265webjs-v20211120');
require('./h265webjs-v20211123');
export default class h265webjs {
static createPlayer(videoURL, config) {
return window.new265webjs(videoURL, config);
Expand Down
2 changes: 1 addition & 1 deletion src/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
# * Github: https://github.com/numberwolf/h265web.js
# *
# **********************************************************/
VERSION='v20211120' # output version + index.js
VERSION='v20211123' # output version + index.js

0 comments on commit 7775fad

Please sign in to comment.