I discovered from the vlc logs that shoes is using VLC 0.8.6h. I just git-ed it the other day. thanks to Tim Elliot I got the dependency files for windows (XP). I have 0.9.8a installed on my machine. I even tried messing with the Rakefile, putting VLC_0_9 = "0.9.8a" and more changes but to no avail.
I believe I need 0.9 because I'm trying to add a hook for libvlc_media_player_set_rate() to @vid.rate= Interestingly, although its using the VIDEO_SET_METHOD under #ifdef VLC_0_8 (which doesn't call the newer libvlc_media_player functions, but functions from the legacy api), the code I've added still works, although the audio quits. (the video changes speed, but audio goes mute). all I had to do was add (to shoes/ruby.c): VIDEO_GET_METHOD(rate, float, rb_float_new); VIDEO_SET_METHOD(rate, NUM2DBL); to the end of: VIDEO_METHOD(clear); VIDEO_METHOD(prev); VIDEO_METHOD(next); VIDEO_METHOD(pause); VIDEO_METHOD(stop); VIDEO_GET_METHOD(length, vlc_int64_t, INT2NUM); VIDEO_GET_METHOD(time, vlc_int64_t, INT2NUM); VIDEO_SET_METHOD(time, NUM2INT); VIDEO_GET_METHOD(position, float, rb_float_new); VIDEO_SET_METHOD(position, NUM2DBL); and also: rb_define_method(cVideo, "rate", CASTHOOK(shoes_video_get_rate), 0); rb_define_method(cVideo, "rate=", CASTHOOK(shoes_video_set_rate), 1); right below: rb_define_method(cVideo, "position", CASTHOOK(shoes_video_get_position), 0); rb_define_method(cVideo, "position=", CASTHOOK(shoes_video_set_position), 1); rb_define_method(cVideo, "time", CASTHOOK(shoes_video_get_time), 0); rb_define_method(cVideo, "time=", CASTHOOK(shoes_video_set_time), 1); can anyone figure out what's going on? thanks much cd On Sat, Jan 3, 2009 at 7:38 AM, comptroller killjoy <[email protected]> wrote: > Updates about both of my questions: > > I was confused about video. I rebuilt shoes with the VLC arguments > (line 1439 in ruby.c) changed, "--quiet" to "--verbose=2" and > "--no-video-on-top" to "--file-logging". Looked at vlc-log.txt and > realized that some videos weren't playing because the file paths were > being corrupted by the backslashes (not because of their resolutions). > So now all my videos work as long as I use forward slashes in the > paths. > > Extended text characters do work in alert boxes, but not in text > elements (changing the font doesn't help). They do show when pasted > into edit boxes, and transfer from those to show well in text elements > (as in the sample app in the UTF-8 section at > http://help.shoooes.net/Rules.html). But when text is loaded into an > edit box from within the ruby code for the app, it does not show well. > Moreover, the same string displays differently in edit_box from para. > > Shoes.app do > stack do > alert "pórtate bien" > para "pórtate bien" > edit_box "pórtate bien" > end > end > > the alert box displays "pórtate bien". the para displays "p". and > the edit_box displays "prtate bien". > > > cd > > > On Sat, Dec 20, 2008 at 3:36 PM, comptroller killjoy > <[email protected]> wrote: >> First of all, great work with shoes. I've never been so excited to >> get serious about programming. >> >> Now, first question. I can't get any text elements to display >> extended ascii characters. For example, para ("próxima") displays >> "pr", as do caption, inscription, alert(), etc.. What is the status >> or plans for support of extended ASCII characters? >> >> Second question. Video is working well. Except when I try to play >> video files with medium or large dimensions. I'm guessing that >> anything larger than 400x300 doesn't play, because of line 1500 in >> ruby.c in the shoes_video_draw function >> (http://github.com/why/shoes/tree/master/shoes/ruby.c): >> >> SETUP(shoes_video, REL_CANVAS, 400, 300); >> >> Am I correct that this line is the reason videos with larger >> dimensions won't play? Are there any plans for adding support for >> larger dimensions, or being able to specify the dimensions of the >> video element? >> >> >> thanks much >> >> cd with ruby shoes >> >
