michalstocki/FlashWavRecorder

Hi, How to put the FWRecorder.getBase64() string convert wav files in php ?

開放

#41 建立於 2014年11月26日

 (2 則留言) (0 個反應) (0 位負責人)ActionScript (105 個分叉)batch import
help wanted

倉庫指標

星標
 (241 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

hi friends, try html form post FWRecorder.getBase64() string

PHP:

  $fileBase64 = str_replace('data:audio/wav;base64,', '',  $_POST['Base64']);
  $decoded = base64_decode($fileBase64 );
  file_put_contents('test.wav', $decoded);

but the test.wav can't play, help ~ thanks very much!

貢獻者指南