Saturday, March 8, 2014

Chromecast URL Player

I was annoyed by the fact that the Chromecast SDK has been out for the public for quite a while and yet googling for a simple URL player for Chromecast did not yield satisfactory results. So I sat down to create my own simple web app for playing back any http video or viewing any still image in Chromecast.

URL: http://movies.foamsnet.com

Source Code: https://github.com/vickyg3/UrlPlayer

Would love to hear feedback. Feel free to fork, send pull requests.


-Vignesh

25 comments:

  1. Hey Vignesh- this already exists at https://dabble.me/cast. It was something I threw together just hours after the SDK was released. Mashable picked it up, too: http://mashable.com/2014/02/05/vidcast-chromecast-app/

    ReplyDelete
    Replies
    1. thanks for pointing this out. could you try adding some keywords so that it shows up on the first page in google results for queries like "chromecast url player" etc. not being able to find this on google is exactly why i wrote this. :-)

      Delete
    2. You didn't find it because "URL player" doesn't make any sense. Every possible thing the Chromecast is going to play is going to use a URL.

      Delete
    3. i need to an app that can "play a URL" which i have in my hand. "URL Player" is a perfectly valid query for that. If it does not make sense to you, not really my problem.

      Delete
  2. I second that "URL Player" doesn't make much sense. Furthermore, I move that having an URL "in my hand" doesn't make much sense either.

    ReplyDelete
    Replies
    1. Can we please stop with this grammar nazi non sense. If you think it doesn't make sense then don't use the app. Many are finding it useful. So feel free to use whatever makes sense to you.

      Delete
    2. vernacular usage often does not make any sense, but having something at hand or in ones hand even if it is just used to mean having one conveniently available is a common usage.

      Delete
  3. @anonymous - In the right context makes sense to me. Maybe English is not your first language?

    ReplyDelete
    Replies
    1. Thanks for the comment. I know ypu didn't start it, But let us please not encourage unnecesary conversations that doesn't add any value to the topic. :-)

      Delete
  4. Vignesh, This is exactly what I was looking for! I have a bunch of videos files loaded on Amazon's AWS: s3.lucastream.com. I was looking for an easy casting page to paste my urls then send them over to the Chromecast. (I'm inexperienced and too lazy to code my own)
    Though, I like Paul's dabble.me/cast, I find that his code is hit or miss on picking up my urls (All of which are url.com/video.mp4 format).
    I copy/pasted your work for my personal use at cast.lucastream.com.
    Requests-
    Volume adjustment! Increment/decrement by .1?

    Cheers!

    ReplyDelete
    Replies
    1. Great. Glad it helps. I am working on adding volume controls support. I will push it soon. Watch put for it!

      Delete
  5. Hey, great code, I knew about VidCast and although it has the edge in simplicity by having a bookmarklet to make it easier to find the video URL and you can control the location of the where you want to be in a video with a seek bar, I have not found the source code for VidCast so I am really happy you decided to offer your code.

    If there is one thing I would ask for though, is if it would be possible to trick the Chromecast into playing local files through file URLs instead of http(s) URLs?

    ReplyDelete
    Replies
    1. One workaround to play a local file using this is to install a web server on the local machine and point to the file using: http:///filename.mp4

      Delete
  6. cool - thanks for sharing - it works for me like expected :)

    ReplyDelete
  7. Thank you so much .. I was struggling myself using the Chrome to cast a Tab and that consumes a lot of my processor.. then I deiced to look for a player for just an URL and here I am very happy =D

    Just a question ... will you plan in a near future to implement subtitles?

    ReplyDelete
    Replies
    1. yes, i'm working on implementing subtitles. will publish soon.

      Delete
  8. Hi,

    Thanks a lot for this url player and especially for releasing the source!

    You should add m4v as allowed content type as Chromecast plays these file without problems.

    Martin

    ReplyDelete
    Replies
    1. that's a good point. thanks for pointing it out. added here: https://github.com/vickyg3/UrlPlayer/commit/e6faba066396e0dad99bf05f5753ae4ff8a8289f

      Delete
  9. Hi, great app!
    Is it possible to stream .ts or .asf files?
    Thanks!

    ReplyDelete
    Replies
    1. thanks!

      Unfortunately only mp4 and mkv files are supported for now. You can convert your .ts and .asf files into one of the formats supported by chromecast using a tool like ffmpeg ( http://ffmpeg.org/download.html ).

      Delete