QUOTE(kjoonlee @ Feb 5 2006, 12:52 PM)
I think the most sensible thing to do would be to look at how VLC does it by looking at the source, or asking on the VLC mailing lists or the vorbis-dev@xiph.org mailing list.
I assume (since it is what winamp does for mp3's at least), that it is just asking the server the filesize. This can be done, because the protocol used is http, and just like you see the size when downloading a file from internet, a player can do so aswell.
Then, assuming you can get the info from the header of the file that tells its bitrate, you can do simple maths to get it (i'm not sure, but i believe that the average bitrate (for VBR files) is also present in ogg files)