Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 506 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 506 Bytes

nat-media-audio

Installation

weexpack plugin add nat-media-audio
npm install natjs --save

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'

// play
Nat.audio.play('http://domain.com/audio')

// pause
Nat.audio.pause()

// stop
Nat.audio.stop()

</script>

See the Nat Documentation for more details.