Page 1 of 1

streaming audio (mp3) to html5 issue

Posted: 27 Apr 2016 07:29
by joelu
my audio streaming works fine when using http (ogg/vobris) to desktop browsers, what i want is to make it compatible to ios safari browser, which I believe it does not take ogg format

so what i've done is to change it to http (mp3) streaming in VLC, however, it makes both ios and desktop browser unplayable

here's the command that I've tried:
:sout=#transcode{vcodec=none,acodec=mp3,ab=64,channels=2,samplerate=44100}:http{mux=ts,dst=:8080/} :sout-all :sout-keep

here's the html5 code
<audio controls="controls" loop="loop" id="livePlayer" >
<source src="http://216.18.21.102:8080">
</audio>

Am I doing something wrong? or is there any way to stream audio from vlc to ios safari?

tks in advance

Re: streaming audio (mp3) to html5 issue

Posted: 28 Apr 2016 06:21
by joelu
anyway, i found a solution by myself
step #1: install icecast, add a relay
step #2: open vlc, tools>preferrence>show setting all>streaming out>audio out>shoutcast check mp3 checkbox
step #3 open vlc, add icecast, choose audio-mp3

now you can play the stream in ios safari