@edu-fe/reporter
v1.2.9
Published
## NativeMediaRepoter
Downloads
46
Keywords
Readme
MediaReporter
NativeMediaRepoter
###Args
- target
type { chapterId, wpsSid }
要上报的课程 Id,以及用户的 wpsSid - el
enum { HTMLVideoElement, HTMLAudioElement }
绑定的媒体元素
###Usage
import { NativeMediaReporter } from '@edu-fe/reporter'
const target = {
chapterId: '',
wpsSid: ''
}
const el = document.getElementById('player')
new NativeMediaReporter(target, el)