xgplayer-m4a
Advanced tools
Comparing version 1.1.6 to 1.2.0
{ | ||
"name": "xgplayer-m4a", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"description": "xgplayer plugin for m4a transform to fmp4", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -417,8 +417,10 @@ import 'core-js/modules/es6.promise.js' | ||
let offlineVid = vid || name | ||
player.database.openDB(() => { | ||
player.database.addData(player.database.myDB.ojstore.name, [{vid: offlineVid, blob: new Blob([m4aCache.buffer], {type: 'audio/mp4; codecs="mp4a.40.5"'})}]) | ||
setTimeout(() => { | ||
player.database.closeDB() | ||
}, 5000) | ||
}) | ||
if(player.database) { | ||
player.database.openDB(() => { | ||
player.database.addData(player.database.myDB.ojstore.name, [{vid: offlineVid, blob: new Blob([m4aCache.buffer], {type: 'audio/mp4; codecs="mp4a.40.5"'})}]) | ||
setTimeout(() => { | ||
player.database.closeDB() | ||
}, 5000) | ||
}) | ||
} | ||
} | ||
@@ -425,0 +427,0 @@ }) |
{ | ||
"version": "1.1.6" | ||
"version": "1.2.0" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
477286
13614