一、播放本地文件
ffserver.conf文件的配置:
ffserver.conf
1 Port 10535 2 RTSPPort 5454 3 BindAddress 0.0.0.0 4 MaxHTTPConnections 2000 5 MaxClients 1000 6 MaxBandwidth 1000 7 CustomLog - 8 NoDaemon 9 10 # MP3 audio 11 <Stream test.mp3> 12 File "/home/wyq/test.mp3" 13 Format mp2 NoVideo </Stream> 14 AudioBitRate 64 15 AudioChannels 1 16 AudioSampleRate 44100 17 </Stream>
以上是一个本地音频文件的播放