gpt4 book ai didi

javascript - Viddler 网络摄像头录制

转载 作者:行者123 更新时间:2023-11-27 23:50:29 25 4
gpt4 key购买 nike

如何在网络摄像头录制完成并保存后执行操作。 Viddler 网络摄像头记录 javascript API。有没有onsave事件。请举例说明。

最佳答案

查看 Viddler api 的文档,开发者网站上有很好的文档..

记录器 JavaScript API

控制录音机

可以使用以下 JavaScript 函数控制网络摄像头 Controller :

doStartRecord()

start the recording

doStopRecord()

stop recording

doDelRecord()

delete recorded footage

doSaveRecord()

save the footage

回调

recordConnected()

when recorder swf connects to the recording service.

记录授权()

when recorder swf authorises it’s record token

成功。

streamAccessDenied()

when a user denies Flash access to the camera and Microphone (by clicking “Deny” at the Flash prompt.)

streamAccessAllowed()

when a user allows Flash access to the camera and Microphone (by clicking “Allow” at the Flash prompt.)

记录开始()

when user starts recording.

recordStopped()

when user stops recording.

记录缓冲(百分比)

when the preview beings to buffer before playback

.

recordBufferFull()

when the recorded video buffer is complete and begins preview playback.

recordFlushed()

when the recorder flushes the record buffer. After this callback, you can call the doDelRecord() or doSaveRecord() functions.

记录删除()

when user decides to delete the footage and re-record.

记录保存()

when user decides to save video (yet before the request is sent to the server for actual processing).

recordDone(用户名,videoNum,videoKey)

when a video is successfully registered with backend systems and accessible on the site, Passes along the Viddler username, video number and video key back.

看看这个Link

关于javascript - Viddler 网络摄像头录制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32753726/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com