{"id":1288,"date":"2011-09-08T10:43:25","date_gmt":"2011-09-08T15:43:25","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=1288"},"modified":"2011-09-08T14:46:19","modified_gmt":"2011-09-08T19:46:19","slug":"streaming-all-your-music-from-ampache-to-an-iphone","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2011\/streaming-all-your-music-from-ampache-to-an-iphone\/","title":{"rendered":"Streaming all your music from Ampache to an iPhone"},"content":{"rendered":"<p>The latest reincarnation of Hang The DJ, my music player, is coming along nicely.  In the alpha stage, it&#8217;s currently an excellent way to stream your massive music collection to your laptop.<\/p>\n<p>It sits atop an open source media streamer called Ampache.  I had to extend Ampache to support the more advanced features of Hang The DJ.  But this extended version of Ampache still retains its full feature set.<\/p>\n<p>I have plans for a full set of Hang The DJ mobile clients, but they are further down the roadmap.  <\/p>\n<p>In the meantime, I can still use Ampache with my iPhone in a couple different ways.  There are some Ampache iPhone clients but they are rough and limited.  However, Ampache by itself has a nice web interface.  You can play your music by downloading, by streaming, or through a bare-bones flash player.<\/p>\n<p>Flash is out on the iPhone.  Downloading each song is cumbersome.  But the streaming works!  It&#8217;s not foolproof.  The silly Safari browser on the iPhone has a ridiculously short timeout on streaming requests, something like 16 seconds, and I don&#8217;t know of any way to adjust it.  So for a long time, it just didn&#8217;t seem to work for me.  But following these rules, I can get to my whole music collection from my iPhone:<\/p>\n<ul>\n<li>Make sure you have a decent server.  I recently upgraded my server to use a quad core i7 cpu and it seems to help.<\/li>\n<li>Make sure your upload bandwidth is sufficient, obviously.  I have really crappy crappy &#8220;10Mbit&#8221; service from CenturyLink, which gives me about 20kbps upload.  Hates it.  But it&#8217;s currently my only option and it&#8217;s working.<\/li>\n<li>Make sure your iPhone is in a 3G zone.  Edge service through AT&#038;T didn&#8217;t seem to work.  Stupid AT&#038;T.<\/li>\n<li>Stream 1 song first.  This is your best chance of completing the setup between Apache and Safari before timing out.  Once that&#8217;s confirmed to work, slowly bump it up until you get timeouts.  I can do 3-4 songs but 20 seems to fail consistently.<\/li>\n<\/ul>\n<p>Yeah it&#8217;s not ideal.  Just more motivation to get going on the iPhone client!  \ud83d\ude42  <\/p>\n<p>In the meantime, shoot me an email if you&#8217;re willing to try Hang The DJ out on a desktop or laptop, that would rock.  Peace.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest reincarnation of Hang The DJ, my music player, is coming along nicely. In the alpha stage, it&#8217;s currently an excellent way to stream your massive music collection to your laptop. It sits atop an open source media streamer called Ampache. I had to extend Ampache to support the more advanced features of Hang [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[7,23,8,10],"tags":[75,67,130],"class_list":["post-1288","post","type-post","status-publish","format-standard","hentry","category-hangthedj","category-iphone","category-sharethedj","category-tricks-tips-tools","tag-ampache","tag-apache","tag-safari"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-kM","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=1288"}],"version-history":[{"count":4,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1288\/revisions"}],"predecessor-version":[{"id":1292,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1288\/revisions\/1292"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=1288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=1288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=1288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}