Skip to content

Commit

Permalink
1.1.1-alpha.7 - fix regression in hitting 'play' during load
Browse files Browse the repository at this point in the history
Was hitting some corner cases that jumped ahead too many states.
Added a quick hack guard to avoid bypassing the rest of the
initialization, so play actually works during that danger zone.

Fixes #398
  • Loading branch information
bvibber committed May 17, 2016
1 parent a0f5d05 commit 6b0f460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Based around libogg, libvorbis, libtheora, libopus, libvpx, and libnestegg compi

## Updates

* 1.1.1-alpha.7 - 2016-05-16
* fix for regression when hitting 'play' during loading
* 1.1.1-alpha.6 - 2016-05-16
* fix for Theora streams with pathologically high frequency of dupe frames
* 1.1.1-alpha.5 - 2016-05-16
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ogv",
"version": "1.1.1-alpha.6",
"version": "1.1.1-alpha.7",
"description": "JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/js/OGVPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ var OGVPlayer = function(options) {

paused = false;

if (started) {
if (started && codec && codec.loadedMetadata) {

if (ended && stream && byteLength) {

Expand Down

0 comments on commit 6b0f460

Please sign in to comment.