Attach a camera video to html in Adobe Air

I use the Adobe AIR SDK to develop an HTML / JavaScript application that needs to record video. I do not use Flex or Flash Builder, which can use <mx:VideoDisplay />

I know how to attach a camera camcorder to a new window object through nativeWindow.stage . Is it possible to do something similar in the html or iframe section? Or is there an html tag that AIR interprets as an <mx:VideoDisplay /> in ActionScript?

+4
source share
1 answer

In the end, the answer was not to attach the video stream to HTML, but to upload it to a Flash Player file. We have completed the introduction of JWPlayer in the application and its playback of the video stream from the media server. However, something similar can be done to have a kind of video chat application. You can create a SWF file that implements the ExternalInterface class in ActionScript so that you can expose the necessary functions for JavaScript.

0
source

Source: https://habr.com/ru/post/1440158/


All Articles