weexpack plugin add nat-recorder
npm install natjs --save
Use in weex project (.vue
/.we
)
<script>
import Nat from 'natjs'
Nat.recorder.start()
Nat.recorder.pause()
Nat.recorder.stop((err, ret) => {
console.log(ret)
})
</script>
See the Nat Documentation for more details.