I'm trying to play a flash movie (.flv - H.264, 320 x 216, Millions; AAC, Stereo, 22.050 kHz).
I imported and played it successfully in OpenSophie, but before I attempt to port the code (which is Tweak-based) into Squeak, is there any currently existing code that can do this?
The current conversation (moved from
http://forum.world.st/Sophie-MPEG-Player-td2341744.html) was how OpenSophie is doing what it does:
Chris Cunnington-3 wrote
How to open a QT movie programmatically?
<snip>
I gave up trying to open a movie with code in a Workspace, and decided
to learn from what works, which is to open the Macbeth example file.
That shows a Tweak-managed infinite loop ( [self isMovieDone]
whileFalse: in SophieQuickTimeAudio>>playMovieScript) running between
SophieMovieFramePlayer and SophieQuickTimeMovieViaPlugin. The Player has
the buttons. ViaPlugin accesses QuickTime on the Mac.
I'm still in the middle of digging out details about Tweak and
#startScript: before I go back to that part. It's lead me down an
AsyncScriptMessageSend rabbit hole. If you want to freak yourself out,
open the ProcessBrowser. Freaked me out.
Chris
Sean P. DeNigris wrote
On Dec 28, 2010, at 6:01 PM, "Chris Cunnington-3 [via Smalltalk]" <ml-node+3166568-984144027-128965@n4.nabble.com> wrote:
> I... decided to learn from what works, which is to open the Macbeth example file.
> That shows a Tweak-managed infinite loop
I know nothing about Tweak. How did you jump from seeing the Sophie UI to finding that loop? When I couldn't bring up halos, I started fruitlessly searching brute-force through the class browser.
> If you want to freak yourself out, open the ProcessBrowser.
I'll check it out - I like excitement :)
Sean
Chris Cunnington-3 wrote
You've put your finger on the big question in Tweak: how did this go
from here to there?
I see what you mean. I got stuck even before this process - if you can't bring up halos, how do you even know which class/method to *start* with?
I did some digging, and found that the entry point (when you import a QT movie from the menu) is:
SophieQuickTimeMovieViaPlugin new resource: res; yourself.
So the problem with the example code was that resource was not set and was still nil. Still digging...
Sean
Cheers,
Sean