Author Topic: ADDING NEW MEDIA TYPES? LIKE OGG VORBIS  (Read 5494 times)

0 Members and 1 Guest are viewing this topic.

Offline dcypherd

  • Pre-Newbie
  • Posts: 6
    • View Profile
ADDING NEW MEDIA TYPES? LIKE OGG VORBIS
« on: September 02, 2002, 09:12:28 AM »
Ok, I want to add a new media type (Ogg Vorbis). So I created a new html template by the name of ogg.html.  Basically working off the mp3 template, with some mime type changes. I then uploaded a ogg.gif to the /media/icons directory.  Then under the settings I put under supported file types ogg.  My problem is that when I upload the file it says that it's an unsupported file type, and that it's not in the database.

Is there a database file I need to edit, or a line of phpcode that needs to be edited. I thought it would be fairly easy to add a file type.

I'm sure there is a post on adding media to the system, but I searched and couldn't find anything. It's probably in German.

Well Great Script. Love it.
Thanks for any help you can give.
JIM

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
ADDING NEW MEDIA TYPES? LIKE OGG VORBIS
« Reply #1 on: September 02, 2002, 10:02:45 AM »
You have to add a new line in "includes/upload_definitions.php":

Code: [Select]
$mime_type_match['ogg'] = array("application/octet-stream");

If you don't know the right mime-type, the error message will show this behind the filename:

  Error uploading image file: filename (file-extension, mime-type)

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

adminant

  • Guest
das problem ist bekannt -- the problem is known !
« Reply #2 on: September 02, 2002, 04:46:17 PM »
the problem ist that the webserver ALSO must support the mime-type OGG VORBIS !!!
At the apache U can Check that out at:

conf/mime.types !

grreezzz

Offline dcypherd

  • Pre-Newbie
  • Posts: 6
    • View Profile
FIGURED IT OUT
« Reply #3 on: September 02, 2002, 08:42:40 PM »
Thanks for the post...I managed to figure it out last night  :P. But I didn't want too say, just to make sure I got it exactly right.

Anyways, I do appreciate the help.

My problem now is it doesn't like to stream automatically. I've done some research and found that ogg vorbis (being that it is still in the developemental stages) does have any webbased streaming (or at least that I know of) the only mime type they give is "application/x-ogg" which unfortunately only allows download then play functionality. Does Anyone know of a way of streaming via the web with OGG VORBIS? And How I would integrate that with the ogg Template.

THANKS EVERYONE!

JIM