[Laszlo-dev] getting at the moveClip of a view; streaming flv files
Don Hopkins
dhopkins at DonHopkins.com
Wed Mar 1 04:12:19 EST 2006
I'd sure love to get this working - thanks for all the help!
Oddly enough, it plays the movie's sound just fine. But nothing renders on
the screen.
I took that debugger snapshot of the video object after the sound had
finished playing, so it may be that it reset the currentFps after it
finished playing, so it might not be meaningful.
If this boils down to needing a special kind of video object that requires a
magic byte code unsupported by OpenLaszlo, then maybe there's a way to
import the swf file Sarah provided to trick it into creating the video
object, by attaching the resource to a view and grabbing the video object
out of it.
I don't know enough about how the Flash player works to be sure, so that's
just a shot in the dark.
I will try a few experiments with the video-on-stage.swf loading into an
openlaszlo app, and see if I can find a reference to the magic object that
works with ref.attachVideo(netstream).
I tried going:
<resource name="res_video" src="swf/video-on-stage.swf"/>
But I got the warning:
SimCheney.lzx:15:60: Can't import \swf\video-on-stage.swf: 1 >= 0
That's weird!
Could this be a version number problem. I will admit that 1 >= 0 (on a good
day), but as to what that means, I'm mystified.
Here is what swfdump makes of it:
$ swfdump video-on-stage.swf
[HEADER] File version: 6
[HEADER] File size: 86
[HEADER] Frame rate: 12.000000
[HEADER] Frame count: 1
[HEADER] Movie width: 550.00
[HEADER] Movie height: 400.00
[009] 3 SETBACKGROUNDCOLOR (ff/ff/ff)
[03c] 10 DEFINEVIDEOSTREAM defines id 0001 (0 frames, 160x120 codec
0x00)
[027] 4 DEFINESPRITE defines id 0002
[01a] 7 PLACEOBJECT2 places id 0001 at depth 0001
[001] 0 SHOWFRAME 0 (00:00:00,000)
[000] 0 END
[01a] 11 PLACEOBJECT2 places id 0002 at depth 0001 name "_vc"
[001] 0 SHOWFRAME 0 (00:00:00,000)
[000] 0 END
-Don
-----Original Message-----
From: Cortlandt Winters [mailto:cortrah at gmail.com]
Sent: Tuesday, February 28, 2006 7:57 PM
To: Don Hopkins
Cc: sallen at laszlosystems.com; OpenLaszlo development development
Subject: Re: [Laszlo-dev] getting at the moveClip of a view; streaming flv
files
Hi Don,
Your success with this has made me try and figure this out some more.
One thing that is mentioned in the swf file format spec is that the frame
rate of a flash video stream
is dependent on the swf frame rate.That stands out to me as the currentFps
below is 0.
Apparently how it works is that when the player starts playing a frame the
video images from any videoframe tags in that fram are rendered. Timing info
from the flv file itself is ignored.
It would be interesting to see where the 0fps came from and if we can change
it.
I wonder if this video codec
On 2/27/06, Don Hopkins < dhopkins at donhopkins.com> wrote:
__constructor__: <Function#14>
__proto__: <Object#15| undefined#14.prototype>
_bytesTotal: 2949922
audiocodec: 2
bufferLength: 0
bufferTime: 5
bytesLoaded: 2949922
bytesTotal: 2949922
currentFps: 0
decodedFrames: 0
liveDelay: 0
onStatus: <Function#16| this.stream.onStatus>
time: 49.52
videocodec: 0
}
<undefined#14#14#3| {}>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060228/fdd55dfa/attachment-0001.html
More information about the Laszlo-dev
mailing list