How to change source file mime-type with callback filtering *.mp4 files.

36 views
Skip to first unread message

aybars yalçın

unread,
Nov 21, 2013, 2:55:31 AM11/21/13
to mongoos...@googlegroups.com
Hi, 
I am IOS developer. I have used mongoose server for html files. And I want to catch "*.mp4" files and change required source files of mp4 files.
I research and change mime-type. How can I write mime-type. This example in here. but can not anything.


Please help me!...

This sample not working code:


mg_printf(conn,

                          "HTTP/1.1 200 OK\r\n"

                          "Cache: no-cache\r\n"

                          "Content-Type: video/mp4\r\n"

                          "Content-Length: %d\r\n"

                          "\r\n",

                          [mimeType UTF8String],

                          strlen([newUrl UTF8String]));

mg_write(conn, [newUrl UTF8String], strlen([newUrl UTF8String]));

Sergey Lyubka

unread,
Nov 21, 2013, 3:29:20 PM11/21/13
to mongoose-users
You can specify an option:

extra_mime_types .mp4=video/mp4


--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages