I'm using Flash Builder and created a spark-application Flex project that will stream video from the local camera. If I use mx.controls.VideoDisplay
; there is no problem since it has attachCamera(camera)
method. But Spark's VideoDisplay
component does not have that method. I know I can use mx controls inside a Spark app but I want to know:
- What is the real difference between
spark.components.VideoDisplay
andmx.controls.VideoDisplay
? - How do I attach camera to
spark.components.VideoDisplay
? - Is there any advantages if I go with spark (since it's newer to mx library)?
thanks.
EDIT: In the documentation this is mentioned: "Starting with Flex 4.0, Adobe recommends that you use the spark.components.VideoPlayer class as an alternative to this class. (mx.controls.VideoDisplay)"