ruby-****@sourc*****
ruby-****@sourc*****
2010年 3月 28日 (日) 07:15:45 JST
------------------------- REMOTE_ADDR = 83.19.226.66 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?gst-duration-seek-position ------------------------- @@ -1,7 +1,9 @@ =gst-duration-seek-position Proof-of-concept Ruby/GStreamer application that could be used to query total duration of an audio file, current position and peform seeking. +Please note that in certain cases (e.g. some VBR encodings), total duration can change. In that case, GStreamer emits signal of type Gst::Message::Type::DURATION - this application doesn't handle that. In most (but not all!) cases, GStreamer would emit one at least once, but you cannot rely on that. Just perform querying after changing the state of the pipeline. Remember that you can query duration only after prerolling (in PAUSED or PLAYING state). + ==Download {{attach_anchor("duration.rb")}}