make my phone as media server

271 views
Skip to first unread message

zein

unread,
Nov 15, 2012, 5:11:32 AM11/15/12
to up...@googlegroups.com
Hi all,

How can I make my iPhone as a media server? I want to stream the music from my phone to renderer.

my iPhone does not appear in the list of the device. Is there any other way to do that? 

Please help. Thanks

thebitmonk

unread,
Nov 15, 2012, 11:18:13 PM11/15/12
to up...@googlegroups.com
Hello Zein:

In order to do so you can run an embedded HTTP Server from your iPhone app eg: Cocoa HTTP Server // mongoose. The server shall stream your media content ( music  in this case ) to the renderer.

zein

unread,
Nov 16, 2012, 4:19:45 AM11/16/12
to up...@googlegroups.com
Hi thebitmonk,

It works!!!

Thanks for sharing, really appreciate it!

Jollo Joy

unread,
Nov 19, 2012, 8:29:24 PM11/19/12
to up...@googlegroups.com
I have the same question. How do you achieve it  with Cocoa HTTP Server or mongoose?
Thanks!

在 2012年11月16日星期五UTC+8下午5时19分45秒,zein写道:
Message has been deleted

thebitmonk

unread,
Nov 20, 2012, 2:08:15 PM11/20/12
to up...@googlegroups.com
Hello Jollo:

I hope that you have already gone through the UPNP v 1 document ( http://www.upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.0-20080424.pdf ) and have a basic understanding of media server / renderer / AVTTransport etc. I also assume you have successfully been able to use upnpx iphone project to list all media servers and renderers. You can have a look at http://code.google.com/p/upnpx/source/browse/trunk/projects/xcode4/upnpxdemo/upnpxdemo/PlayBack.m#79 to see how to setAVTTransportURI and play a media content. I shall suggest try a hardcoded mp4 url since mp4 format is supported by most DLNA renderers.

Now once you have got the above working playing local media content is not much different. You shall have some image or video // audio files on your mobile phone. You simply run an embedded HTTP server. Now you can setUri for DLNA renderer to some endpoint of your local HTTP Server . The DLNA renderer shall request your local server for data just like it did for the hardcoded mp4 url . You now have to capture this request and return the data stream of your local audio // image // video media file and along with mimetypes. That is pretty much it.

I hope it helps :)

Jollo Joy

unread,
Nov 26, 2012, 11:18:40 AM11/26/12
to up...@googlegroups.com
You are Right. I have already achieved DMC and DMR.
I will do that as you said.Thank you very much!

在 2012年11月21日星期三UTC+8上午3时08分15秒,thebitmonk写道:
Reply all
Reply to author
Forward
0 new messages