The scenario is in my project I have to play Youtube videos that are retrieved through the Youtube Flash API. All Youtube videos are wrapped in a DisplayObject that due to their TOS I cannot crack into. So I have to use the DisplayObject as it is through the public methods it provides.
On the other hand, we are using a commercial Flash player to play our other videos stored in Amazon Cloudfront. We want to use the consistent interface on these Youtube videos too. And the Flash player we have uses a subclass of flash.media.Video. Unfortunately this Flash player can't use the Youtube DisplayObject directly (Error #1034: type conversion failed). So I wonder if there is something that I missed.
Hope this clarifies better my intentions. If you have any suggestions please do post to me. Thanks a lot!
Originally Posted by wvxvw
Video inherits from DisplayObject, so, in other words, it is DisplayObject. But you cannot use just any DisplayObject to display video, you need it to inherit from Video. I don't think I understood the rest of the question though: why do you want to use an object that doesn't allow you to [attach / detach video stream?] to it to play video instead of another object that would do it?