Skip to content

minimax-video 1.0.4: declare the microphone so voiceover recording works on MiniMax Code 3.1.5+ - #83

Merged
MyPrototypeWhat merged 1 commit into
mainfrom
fix/minimax-video-microphone
Oct 26, 2026
Merged

MyPrototypeWhat merged 1 commit into
mainfrom
fix/minimax-video-microphone

Conversation

@MyPrototypeWhat

@MyPrototypeWhat MyPrototypeWhat commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

MiniMax Video's timeline voiceover button records with getUserMedia({ audio: true }) (miniapp/client/assets/Editor-BGcBor23.js, from upstream OpenChatCut). Starting with MiniMax Code 3.1.5, the Host denies microphone requests a Mini App does not declare, so voiceover recording now fails on current clients with “麦克风权限被拒绝”. This was the ACCESS_UNDECLARED warning introduced in #81.

  • miniapp/miniapp.json: add "deviceAccess": ["microphone"]. The call is audio-only and comes from the page's main frame (the page has no iframe), which is exactly what the Host grants.
  • plugin.json: version 1.0.3 → 1.0.4.
  • README.md / README.zh-CN.md:
    • minimum client changes to 3.1.5, with a note that 1.0.3 and earlier need 3.1.2;
    • the data-access sections now say when the microphone is used, where the recording goes (imported into the project like other media, then placed on track A1), and that the user can switch it off.

miniapp/node/upstream.json buildId is unchanged on purpose. It names the runtime cache directory, and no runtime file changed, so existing caches stay valid.

Trade-off

Clients before 3.1.5 do not know deviceAccess and reject the whole package. So 1.0.4 cannot be installed on 3.1.2–3.1.4, while 1.0.3 still can. 3.1.5 and 3.1.6 are released.

Verification

  • npm run check: 87 tests pass, 0 errors. For this package, the ACCESS_UNDECLARED and README minimum-version warnings are gone. The 5 ENTRY_STDOUT warnings in remotion-bundle/ were already there before this PR.
  • I traced the recording code in the built bundle: the recording hook produces a 旁白.webm/.ogg file, and the editor's shared media-import path brings it into the project at the playhead on A1.

Not verified

  • Voiceover recording was not tested inside MiniMax Code 3.1.5 / 3.1.6 with this change.
  • The plugin's author has not reviewed this change yet.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…rks on MiniMax Code 3.1.5+

The timeline's voiceover button records with getUserMedia({ audio: true }). From MiniMax Code
3.1.5 the Host denies microphone requests a Mini App does not declare, so recording failed with
"麦克风权限被拒绝" on current clients. miniapp.json now declares deviceAccess ["microphone"].

Declaring deviceAccess raises the minimum client to 3.1.5: earlier clients reject the field. Both
READMEs state the new minimum and describe the microphone use under data access. The runtime
buildId stays unchanged because no runtime file changed, so existing caches remain valid.

Assisted-by: Claude Opus 5.5 (OpenCode)
@MyPrototypeWhat
MyPrototypeWhat merged commit ba8b00d into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant