Hi Brian,
I tried to run your code on my WindowsXP box with Shoes-0.r1057.
I put the mp3 files under the same directory with the code file.
You put them under '/' (root) directory?
So, my code is the following. It works well.
Shoes.app do
video "test1.mp3", :autoplay => true
v = video "test2.mp3"
timer(5){v.play}
end
1st:
You need to add :autoplay => true option.
See Shoes manual.
http://help.shoooes.net/Styles.html
2nd:
With my Windows pc, the two mp3 musics are played overlapping...
Hope it helps,
ashbb
On Sat, Nov 8, 2008 at 7:38 AM, Brian Palmer <[EMAIL PROTECTED]> wrote:
> Hi fellow adventurers,
>
> I'm running into issues with the Video element, and I don't know how much
> of it is me misunderstanding the documentation and how much of it is buggy
> shoes. I'm on Leopard 10.5.5 Intel running shoes r1057 (I downloaded, not
> compiled).
>
> First, this never plays my mp3:
>
> Shoes.app do
> @v = video "/test1.mp3"
> @v.play
> end
>
> However, this does:
>
> Shoes.app do
> @v = video "/test1.mp3"
> timer(0.01) { @v.play }
> end
>
> Does the event loop need to process before a new Video element can be
> played? I saw nothing in the docs.
>
> Also, is there no way to play more than one video/audio file at the same
> time? Nothing in to docs says you can, but nothing says you cannot, either.
> In any case, this never plays my second file:
>
> Shoes.app do
> @v = video "/test1.mp3"
> timer(1) { @v.play }
>
> @v2 = video "/test2.mp3"
> timer(2) { @v2.play }
> end
>
> In my quest to learn shoes I planned to create a small shoes game with
> moody music and sound effects, but I'm stumbling here.
>
> Marginally related, is there a bug tracker for shoes? I can't find any
> mention of one, or I would've just posted this there. Thanks all.
>
> -- Brian
>
>
>
>