Re:Apple TV for Torrent Streaming in JS
by mnutt on Monday July 08, 2013 @10:20AM
(#6006874)
I also thought this was for Apple TV. Even though it isn't, it's theoretically possible to write apps that you control through your Apple TV by taking over one of the existing apps that you don't use. MLB is one of a few good candidates. Many of Apple TV's "apps" are actually javascript apps, though unfortunately they aren't just running a WebView.
When you load the MLB app, it requests javascript and assets from mlb.com and operates on some sort of XML document rather than an HTML DOM. At my office we use 3rd-gen Apple TVs for AirPlay presentations, and I did some experiments with making a custom app that showed a rotating list of clients. We used a Raspberry Pi that functioned as both webserver and DNS, then pointed the Apple TVs' DNS at the Pi to reroute all requests going to mlb.com.
Re:Apple TV for Torrent Streaming in JS
by conradev on Monday July 08, 2013 @11:03AM
(#6007091)
I'm curious as to how this works - did you happen to write anything up about that endeavor? There are endless applications to writing web apps for an Apple TV.
(In addition, the second generation Apple TV can be jailbroken and the relevant software reverse engineered if there is anything unclear in what you discovered thus far)
Re:Apple TV for Torrent Streaming in JS
by greg5green on Monday July 08, 2013 @11:09AM
(#6007129)
I don't know if he had written anything up, but PlexConnect (https://github.com/iBaa/PlexConnect) uses a similar process to serve Plex up to the AppleTV via the Trailers app.
Re:Apple TV for Torrent Streaming in JS
by AaronO on Monday July 08, 2013 @09:09AM
(#6006540)
Hi there, I'm one of the two creators of TV.js
It's nice to see it get some love on HN, given that we just hacked it together from "scratch" yesterday.
I just wanted to clarify a few things briefly, this application is not intended to run on an Apple TV, it's meant to run on Desktops, Laptops and Raspberry PIs.
There's obviously a lot of room for improvement but as of now it works well, but the install process is relatively tedious (ok for developers, not so for others).
The application uses node-webkit to run as an App, we will possibly distribute bundled versions of this in the future.
And for those who may be asking, this is not our Startup, it's just a nice hack, we put together during our own personal Hackathon :)
Re:Apple TV for Torrent Streaming in JS
by Amadou on Monday July 08, 2013 @09:44AM
(#6006702)
If you have any control over that web page you need to get those over-sized PNGs resized and re-encoded to jpgs. They are 2MB each, they could be about 100KB and do just as good a job at being scaled-down thumbnails. You are burning bandwidth - 8MB just to load the page.
Re:Apple TV for Torrent Streaming in JS
by kunil on Monday July 08, 2013 @09:57AM
(#6006760)
Is it possible to use it with other TVs? How platform dependent is it? Although this is not related to my area, I am working as a software developer for a different smart tv company. This would be fun to try
Re:Apple TV for Torrent Streaming in JS
by weego on Monday July 08, 2013 @09:53AM
(#6006734)
I think it is wise to clarify that by smart tv you mean an HTPC or media center, not the actual Smart TV system as used by the likes of Samsung and LG as this is not a Smart TV app.
Downloading from a cloud service provider is more consistent and will probably provide a better experience for most people. But the use case is a bit different: The site linked above is not designed to search or widely share files but only to play them from cloud storage.
Re:Apple TV for Torrent Streaming in JS
by joezydeco on Monday July 08, 2013 @10:09AM
(#6006822)
Unhappy Apple TV owner? That's not possib...oh wait. Count me in.
Do you notice that streaming anything over in-home sharing is just plain broken? I've got everything in the house talking on 802.11n but trying to play a movie off the Mac just...takes....forever...to buffer?
Re:Apple TV for Torrent Streaming in JS
by MWil on Monday July 08, 2013 @10:18AM
(#6006858)
I switched from an Apple TV gen 2 and even the hackability with firecore didn't make up for all the issues I had. I knew within 5 minutes of using my Roku 3 that I had made the right decision (plus I sold the atv on ebay for a hefty markup so it actually paid to make the mistake).
Re:Apple TV for Torrent Streaming in JS
by camus on Monday July 08, 2013 @09:55AM
(#6006746)
"Disclaimer
There are obvious legal issues, with downloading copyrighted material you do not have a license for. We do not endorse such use cases and bare no responsability for the use people make of it."
ah ah ah ... well you are not doing anythin illegal i guess but :
- studios could take down your repo since you used copyrighted material ( movie posters ).You should change them ( us CC movies like blender short movies ).
- you are using Apple brand and associating it with an illegal activity ,they could sue you for that.
I love the idea of using the phone as a remote control , that's really smart ! i'm going to steal that idea for sure !
But could it work online ? i mean if the website is not on a localhost ?
Re:Apple TV for Torrent Streaming in JS
by alexhawdon on Monday July 08, 2013 @10:06AM
(#6006801)
Phone as remote control is great - OP might want to think about QR-code as a quick method of inputting the URL. I believe this is how YouTube remote control works.
A further improvement might be to use OPs internet-connected server to proxy the commands so the phone doesn't have to be connected to the same WiFi network, though I accept this is a very limited use-case and incurs some cost.
When you load the MLB app, it requests javascript and assets from mlb.com and operates on some sort of XML document rather than an HTML DOM. At my office we use 3rd-gen Apple TVs for AirPlay presentations, and I did some experiments with making a custom app that showed a rotating list of clients. We used a Raspberry Pi that functioned as both webserver and DNS, then pointed the Apple TVs' DNS at the Pi to reroute all requests going to mlb.com.
(In addition, the second generation Apple TV can be jailbroken and the relevant software reverse engineered if there is anything unclear in what you discovered thus far)
It's nice to see it get some love on HN, given that we just hacked it together from "scratch" yesterday.
I just wanted to clarify a few things briefly, this application is not intended to run on an Apple TV, it's meant to run on Desktops, Laptops and Raspberry PIs.
There's obviously a lot of room for improvement but as of now it works well, but the install process is relatively tedious (ok for developers, not so for others).
The application uses node-webkit to run as an App, we will possibly distribute bundled versions of this in the future.
And for those who may be asking, this is not our Startup, it's just a nice hack, we put together during our own personal Hackathon :)
Downloading from a cloud service provider is more consistent and will probably provide a better experience for most people. But the use case is a bit different: The site linked above is not designed to search or widely share files but only to play them from cloud storage.
Do you notice that streaming anything over in-home sharing is just plain broken? I've got everything in the house talking on 802.11n but trying to play a movie off the Mac just...takes....forever...to buffer?
There are obvious legal issues, with downloading copyrighted material you do not have a license for. We do not endorse such use cases and bare no responsability for the use people make of it."
ah ah ah ... well you are not doing anythin illegal i guess but :
- studios could take down your repo since you used copyrighted material ( movie posters ).You should change them ( us CC movies like blender short movies ).
- you are using Apple brand and associating it with an illegal activity ,they could sue you for that.
I love the idea of using the phone as a remote control , that's really smart ! i'm going to steal that idea for sure !
But could it work online ? i mean if the website is not on a localhost ?
A further improvement might be to use OPs internet-connected server to proxy the commands so the phone doesn't have to be connected to the same WiFi network, though I accept this is a very limited use-case and incurs some cost.
EDIT: Also - good work, OP!