Views have a lot of the same features, but the APIs are a little different, e.g. getTotalTime() and getCurrentTime() for reading the time. See http://labs.openlaszlo.org/trunk-nightly/docs/reference/lz.view.html for more!

Regards,
Max Carlson
OpenLaszlo.org

On 7/14/10 7:03 AM, Lucas Lain wrote:
Thank you Ono! that works great.

I was wondering what kind of object I'm dealing with now.

I want to make a player with seek/time remaining and stuff. Can I
treat view as a mediastream? same methods?

Best!

On Tue, Jul 13, 2010 at 9:02 PM, Ono Keiji<[email protected]>  wrote:
Lucas,

You can take<view>  to play mp3 file.

<view resource="http://127.0.0.1/aircasts/loco.mp3"; onload="this.play()"/>

Best

ono

Quoting Lucas Lain<[email protected]>:

Hello Everybody,

I'm trying to play an mp3 file with openlaszlo, with no luck :(. It
says: Stream not found.
Can anyone help me? I also tried with mp3: or id: prefix ... the only
files I can play are .flv. I Tried this with OpenLaszlo 4.7.3 and
4.7.0

here is the code:

<canvas proxied="false" debug="true">
    <method name="init">
        // let's kick it
        v.stream.debug = 1;
    </method>
    <videoview url="http://127.0.0.1/aircasts/loco.mp3";
               type="http"
               id="v"
               autoplay="true"
               />
</canvas>

The error is:

INFO: mediastream _onNetStatusAS3() NetStream.Play.StreamNotFound
mediastream #v/mediastream _onStatus 'NetStream.Play.StreamNotFound'
{code: 'NetStream.Play.StreamNotFound', level: 'error'} time=0
WARNING: mediastream _onStatus not handled #v/mediastream
'NetStream.Play.StreamNotFound' {code:
'NetStream.Play.StreamNotFound', level: 'error'}

Best Regards,

--
Lucas
+54 911 6621 5845




--
------------------------------------------
Ono Keiji
[email protected]
1-45-11 Mizue Edogawa Tokyo JP
TEL 03(3676)6599
URL http://www.net8.co.jp
------------------------------------------





Reply via email to