Hi!
I'm currently making some modifications in Scratch source to support videos formats like mpeg. I think i'm almost getting it done, maybe..
Unfortunately, i'm stucked in a problem that is a little difficult to me, and I want to know if someone from the from can help!
The problem (there's a screenshot's link below):
1. When I add a video from the button addSpriteMorph, Squeak adds a new SpriteMorph to the stage.
2. The "media" attribute of this SpriteMorph is the selected movie from ScratchFileChooserDialog that results in "anOrderedCollection(mymovie [movie])".
3. The "costume" attribute of the SpriteMorph appoint "mymovie [movie]".
4. The movie appears as a SpriteMorph in the Stage with the image of the very first frame of the movie.
5. When I start playing the media, the sound plays normally.. but the image remains in the first frame in the SpriteMorph
Here is a screenshot showing the Scratch environment with the instances of ScratchSpriteMorph and respective MovieMedia inspected. The actual frame from the media is 969.. but the image in the stage is from media's first frame!
http://img693.imageshack.us/img693/5830/scratch.png
Anyone knows something to help me fix this? This is, make the SpriteMorph shows the current frame from the media playback?
I'm trying hard to solve for some time, any help would be very very appreciated!
Thanks in advance!
Bruno
Offline