Re: How to use http-put for JavaScript source client

Jamie McClelland <[email protected]>
Newsgroups gmane.comp.audio.icecast.devel
Message-ID <[email protected]>
Hi all,

On Wed Jul 31, "Thomas B. Rücker" wrote:
> Hi,
> 
> On 07/23/2013 07:44 PM, Jamie McClelland wrote:
> > I'm following up on a thread started by Stephen a couple months ago
> > about building a JavaScript source client using webrtc.
> >
> > The first step suggested was to figure out how to mux the audio and
> > video. After I posted a feature request on the webrtc experiment js
> > library, we seem to have a solution:
> > https://github.com/muaz-khan/WebRTC-Experiment/issues/28#issuecomment-20791759
> 
> I saw that, I didn't grasp if that provides a proper Ogg muxed stream,
> but we'll find out.

Yeah... I somehow doubt it given Romain's response, but it's been
instructive trying.

> > Based on the last comment on the icecast Dec list, we now only need to
> > do do an HTTP put request to the icecast server (
> > http://lists.xiph.org/pipermail/icecast-dev/2013-May/002171.html).
> 
> That's correct. Make sure to use a recent beta version of Icecast 2.4
> though!

Done. (I documented this process back in December for anyone else
running Debian:
http://current.workingdirectory.net/posts/2012/vp8-and-debian/). I just
updated to the beta 3 version of 2.4.


> > Great! I've got my jquery ready, but am having trouble finding docs on
> > how to build the put request. I tried looking at the libshout source,
> > but my c skills aren't quite good enough to figure it out.
> 
> It's even easier, you can even use CURL (that's why we implemented PUT
> to provide better interoperability through standard compliance).
> 
> > Any help would be appreciated, particularly with an example.
> 
> Using my example from http://icecast.org/#release_2.4-beta2 :
> 
> cat foo.ogg | curl -u source:hackme -H "Content-type: application/ogg"
> -T - http://localhost:8000/mountname.ogg

Very elegant indeed. 

I'm continuing my debugging and discussion on the webrtc-experiment
issue tracker which seems more appropriate than the icecast list. I'll
give an update here if we get anything working.

Here's my latest status:

https://github.com/muaz-khan/WebRTC-Experiment/issues/28#issuecomment-21896312

Thanks for all the help.
jamie


-- 
Jamie McClelland

May First/People Link
Growing networks to build a just world
http://www.mayfirst.org
https://support.mayfirst.org

OpenPGP Key: http://current.workingdirectory.net/pages/identity/

_______________________________________________
Icecast-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast-dev
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJR+YDiAAoJELsLfuFfLkk1psUP/jkNSbG8Z4McW3/pUBAKxRM8
k492nk70RjF9EFtOPaDXqhPbLCy9hHEObQ1gRYEHTX6CwHAlNImvbG6M9kmXzWBi
mzBtAQU200PBN7wn76gtVSsrn7ldOFtgeeRUsovZsl8omcb3BuUMB+UnP4A2YZPT
7VPKtKsSw8v3AKLJv+z2x3leOlpeCbmnhVfIZ2++mIGJU0WHDTvWlHDVuj3tZKt1
0rHTt0FTJk+5spbeGsZDLpneYUb0KfmmWpBcikdMR8aFg6Q0FkABXlBXADal8rHd
HfNnD4yUJgEkvnAiStr1qB3rvYypTRke9Krkja5d/4jFZOlRmQwOvth1KYe9WjfP
PI2JS/tv8Cd8VbN2veDQFbmS9I4q+A37S5mLuyA6cN70gFn7W2TG3rUdr+cz0sjV
E0GpeN4hlCHpka7wznE3b76/xr7+CVpU98liW4xNHKjNeysn6Mj9Sgc4WrxXso+8
ue/TjqoT7TdXY/lIg+IqmTMRvQUvlBlnOcgnbg9bd5em4t8INqExCcL+KHwyQZtb
OwYOhtyt+DiJbeP+iYMrGhy0SAKkj2/UqNp7qsIScyehXQPZGhfTCiONLVw1H2D7
cT0POVyOXIsoUGaG8IfaV+WtGY3fkSAdmthdK+3T+Hr0W7HMVSIJuPVs/RBA1EyP
UqSVdjsOoH2E7Sj58iJ0
=9MV/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.