How to do take snapshot image as binary data?
2012-12-20 22:23
381 查看
VideoIO Flash-based
audio and video communication
Home › Flash-VideoIO Tutorial
How to do take snapshot image as binary data?
The VideoIO object defines a takeSnapshot method and a snapshot property. The application invokes the method to take a snapshot of the current video display. For live display, the snapshot uses the original video instead of the mirrored view.The following example code shows how to take the snap shot, get the value of the image data, and set the value of the image data, on this page.
// take the snapshot on video1's live display. getFlashMovie('video1').callProperty('takeSnapshot'); // get the snapshot property as string of video1. var snapshot = getFlashMovie('video1').getProperty('snapshot'); // set the snapshot property to video2. getFlashMovie('video2').setProperty('snapshot', snapshot);
You can try out the demonstration by clicking on the "take snapshot" button once your video shows up.
if needed.
相关文章推荐
- 【原创】在DataFormWebPart中将列表附件显示为图片(二)[How to display list item attachments as image in DFWP Part 2]
- HOWTO: Include Base-64 Encoded Binary Image Data (data URI scheme) in Inline Cascading Style Sheets (CSS)(转)
- [eZ publish] How to use GD as the image engineer
- HOWTO do Linux kernel development - take 3 (中文版)
- HOWTO do Linux kernel development - take 3 (中文版)
- HOWTO do Linux kernel development - take 3 (中文版)
- How to read binary data from HDFS with Thrift?
- [转]HOWTO do Linux kernel development - take 3 (中文版)
- howto do linux kernel development---take3
- HOWTO do Linux kernel development - take 3 (中文版)
- How to tile small texture image onto page as its background
- HowTo compile native C codes to a library for iOS development in Xcode – take Mosquitto as an exampl
- How do you explain Machine Learning and Data Mining to non Computer Science people?
- How to select the data type in SQLserver database such as varchar, nvarchar
- How do I read image data from a URL in Python ?
- how to do with the special characters in the xml data
- HOWTO do Linux kernel development - take 3 (中文版)
- How to tile small texture image onto page as its background?
- How to save SQL Server data as Insert INTO SQL Script
- How to insert a resource image, as embedded image in email?