Hello Mr Binitie,
You are right about the absence of the stop() method, it wasn't included, since there is not equivalenct on the Flash API. Instead, we have pause() and unload(). Since the VideoElement is a Loadable element, calling unload will close the netStream (the equivalent of calling netstream.close()).
If your goal is to just pause the video and clear the screen (keeping the video buffer and net connection intact), clear() can be reached via the VideoElements view, which is an instance of Video.
((myVideoElement.getTrait(MediaTraitType.VIEWABLE) as IViewable).view as Video).clear().
We are working on getting the Video classes methods exposed on VideoElement to make this process easier.
I'll try that
Traditionally, the stop() function would be a pause() call with a seek to 0.
MediaPlayer.stop has been added in the public (non-stable) trunk. It will be in our next stable release (targeted for next week or so).
We're still trying to figure out if it makes sense to expose clear(), and if so how. In what types of situations do you call Video.clear()?
I have a use case. I'm currently using V5 to create a display media player for a client using images and video. I have not migrated to V6 because initially there seemed to be incompactibilities between v5 and v6 and I was getting failures all over the place. It would be nice to call a media player clear if i want to remove the displayed and have a clear screen. At the moment this is not possible. Or is it?
Makes sense. At the moment it's not easy to do this, you would have to wrap the VideoElement in a ProxyElement, and have that ProxyElement block the IViewable trait when you want the video to be cleared. But I think your use case is a good one, and that we should make this a bit easier. We'll look into it.