Coder Social home page Coder Social logo

在chrome extension的content js环境中引入1.3.23120800版本的recorder-core不能正常工作,1.2.23070100可以正常工作。 about recorder HOT 2 CLOSED

xiaoxin123222 avatar xiaoxin123222 commented on June 1, 2024
在chrome extension的content js环境中引入1.3.23120800版本的recorder-core不能正常工作,1.2.23070100可以正常工作。

from recorder.

Comments (2)

xiangyuecn avatar xiangyuecn commented on June 1, 2024

收到,是下面2个replace没有正常替换掉代码,没考虑到js压缩混淆工具会生成带$的变量名,下一个版本修复

Recorder/src/engine/mp3.js

Lines 289 to 301 in e2702d4

if(!worker){
//创建一个新Worker
var onmsg=(run+"").replace(/\w+\.onmessage/g,"self.postMessage");
onmsg=onmsg.replace(/\w+.wkScope/g,"wkScope");
var jsCode=");wk_lame();self.onmessage="+onmsg;
jsCode+=";var wkScope={ wk_ctxs:{},wk_lame:wk_lame";
jsCode+=",wk_mp3TrimFix:{rm:"+mp3TrimFix.rm+",fn:"+mp3TrimFix.fn+"} }";
var lamejsCode=Recorder.lamejs.toString();
var url=(window.URL||webkitURL).createObjectURL(new Blob(["var wk_lame=(",lamejsCode,jsCode], {type:"text/javascript"}));
worker=new Worker(url);
setTimeout(function(){

from recorder.

xiangyuecn avatar xiangyuecn commented on June 1, 2024

新版本 1.3.23121700 已修复这个问题 09e5fb6

from recorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.