ffmpeg/mux.c: implement MUX_GET_MIME.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 17 Feb 2007 21:28:05 +0000 (21:28 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 17 Feb 2007 21:28:05 +0000 (21:28 +0000)
flash.html: we don't need to force the mime type manualy anymore (in the sout chain).

modules/codec/ffmpeg/mux.c
share/http/flash.html

index 9350d26..2d61684 100644 (file)
@@ -428,6 +428,12 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
         return VLC_SUCCESS;
 
     case MUX_GET_MIME:
+    {
+        char **ppsz = (char**)va_arg( args, char ** );
+        *ppsz = strdup( p_mux->p_sys->oc->oformat->mime_type );
+        return VLC_SUCCESS;
+    }
+
     default:
         return VLC_EGENERIC;
     }
index d33076a..fbfbef2 100644 (file)
@@ -23,7 +23,7 @@ host = document.location.toString().replace( /http:\/\//, '' ).replace( /[:/].*/
   <vlc id="include" param1="dialogs/input" />\r
   <vlc id="include" param1="dialogs/playlist" />\r
 \r
-  <input id="sout_mrl" type="hidden" value=":sout=#transcode{vcodec=FLV1,acodec=mp3,channels=2,samplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv} :no-sout-keep" />\r
+  <input id="sout_mrl" type="hidden" value=":sout=#transcode{vcodec=FLV1,acodec=mp3,channels=2,samplerate=44100}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8081/stream.flv} :no-sout-keep" />\r
 \r
   <div style='height: 100%; width: 100%; text-align: center;'>\r
   <object type="application/x-shockwave-flash" data="http://flowplayer.sourceforge.net/video/FlowPlayer.swf" width="800px" height="600px" id="FlowPlayer" style="z-index: 0">\r