强光蛋
强光蛋
  • 发布:2015-06-20 10:49
  • 更新:2016-03-10 22:23
  • 阅读:2573

plus.audio 如何读取blob字段

分类:HTML5+

我是把mp3格式文件 存放到 indexed 数据库里,字段为 blob, 然后读出来,放到 plus.audio,如何实现?

var obj_url = webkitURL.createObjectURL(imgFile["image"]);//数据库读的 blob,存的是mp3流
p = plus.audio.createPlayer( obj_url ); //这句报错: Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. at IndexDB.html:741

p.play();
2015-06-20 10:49 负责人:无 分享
已邀请:
春华秋实

春华秋实

这个方式不好,index DB里面只存储个路径就行了

该问题目前已经被锁定, 无法添加新回复