When talking
about "size", we mean dimension, not filesize or
playlenght, right?
Exactly, see my second mail.
All I'm really asking for is embedding
internal and external video's,
flash, whatever, ... the same way (and with the same code). Right now
internal uses <object>, external uses <iframe>. That is very
inconsistent IMHO.
Indeed, this was just a quick hack. Quite ugly all in all, especially
the guessing of the file-type depending on the extension. A head
request that is cached would be much cooler.
I have two proposals:
1. extend the link syntax:
+http://tinyurl/video.mpeg:witdth:640:height:480+
I tried to avoid that, most other wikis do that. Probably there is no
other way around this.
2. Extend PRFile to include more meta information
depending on the
type (eg. a video would have width and height, a Java Applet would
have parameters, ...
And where do you get this information from?
Make a description, let the user provide it there is no where esle we
can get it from.
Then we make a
PRExternalFile that instead of file upload has an
external url.
I am lost, could you rephrase proposition 2?
Right now we have PRFile which has only a MAFileDescription which more
or less a MAFileModel that only stores the binary contents and the
filename (and computes the mime-type). Now for video files we
additionally store the width and height. Either in MAFileModel
(probably not possible because it's orthogonal to internal <->
external), PRFile or somewhere else.
When you upload a video file you can additionally provide the width
and height of the video.
Same for flash, java, ...
Now for url we make a new kind of structure (PRExternalResource or
whatever) that is very much like PRFile but does not have a
MAFileDescription but a MAResourceDescription (or whatever) that is
just the url. It has the same metainformation for videos like a
PRFile.
The cool thing about that is that it's very uniform. It's just a
structure that you embed.
Philippe
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki