VideoStreamMaterial
Although you can apply video as a material manually when using MovieMaterial, the VideoStreamMaterial class does this automatically for you.
The class is called VideoStreamMaterial and extends MovieMaterial. Its constructor takes four parameters:
|
Parameter |
Data type |
Default value |
Description | |
|
1 |
|
|
— |
A |
|
2 |
|
|
— |
A |
|
3 |
|
|
|
Stands for precision of the material. |
|
4 |
|
|
|
Defines whether or not to create a material that supports transparency. |
This class allows you to show streaming or progressive videos. You can also use your webcam output as the input for this class. Let's create an example based on video coming from your webcam. This example uses quite a few different classes.
import flash.events.Event; import flash.media.Camera; import flash.media.Video; import flash...