Streaming audio mp3 with limit download

19 views
Skip to first unread message

Emílio Yaakov

unread,
Jan 7, 2014, 10:58:26 AM1/7/14
to rubyonra...@googlegroups.com
I want to provide streaming audio from my rails application, but the
files are not in my server, they are in others servers and I don't have
folders access, just http request.
My biggest concern is in places that limit download files up to 10mb,
for example.
I tried using Icecast and Red5, but they need the files are on my
server.
Any suggestions?

Thanks in advance.

--
Posted via http://www.ruby-forum.com/.

Walter Lee Davis

unread,
Jan 7, 2014, 11:05:14 AM1/7/14
to rubyonra...@googlegroups.com

On Jan 7, 2014, at 10:58 AM, Emílio Yaakov wrote:

> I want to provide streaming audio from my rails application, but the
> files are not in my server, they are in others servers and I don't have
> folders access, just http request.
> My biggest concern is in places that limit download files up to 10mb,
> for example.
> I tried using Icecast and Red5, but they need the files are on my
> server.
> Any suggestions?
>
> Thanks in advance.

If you're allowed to access the files, and don't mind storing them locally (or in S3), I would try cacheing them on your server. You can do this very easily with the Dragonfly or CarrierWave asset toolkits -- they both have a method built-in that will allow you to grab a file by URL and save it as an attachment to your regular model. There's a Railscast about Carrierwave.

Walter

>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b7afe6b6f4e0242cd3d99d0c480926fb%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Emilio Yaakov

unread,
Jan 8, 2014, 11:34:07 AM1/8/14
to rubyonra...@googlegroups.com
Hi Walter!
Thanks for the answer.

I can't store all the files because need a lot of space. For now I don't
have money to spend with storage.

Caching maybe is not a good idea, the average size is 60 MB then it will
take a long time to download and start playing the audio in streaming
server.

And don't resolve my problem of limit download files.
Reply all
Reply to author
Forward
0 new messages