Meet Phlex - A Google Home Action for Plex Control (And more!) - Google Home

Hello everyone, I'm digitalhigh, and I'll be your driver for this fun ride.
This is the new official home of Phlex.
What is Phlex? Phlex is a PHP Web application I've written that allows you to link your Google Home with your Plex collection and control playback to any device on the network capable of speaking Plex or Cast.
In addition, Phlex supports integration with Couchpotato, Sonarr, Radarr, and Sickbeard, allowing you to add media directly to your watch lists in any of these apps, giving you total voice control over your media collection!
Phlex is currently in a very early Beta, meaning there are still bugs to be worked out, and various minor annoyances and issues that have yet to be fully resolved. However, the vast majority of scenarios should work, and it can only get better as the project matures!!
To get started, all you have to do is hope on over to https://github.com/d8ahazard/Phlex and follow the instructions to get things set up. You will need to either install a webserver via Xampp (this is all in the instructions), or clone/download Phlex into an existing webserver. Once set up, you'll need to forward a port to Phlex so it can talk to the outside world, and then register your client with the Main Phlex server in order to allow account linking with Goooogle.
Optionally, you can set up a custom URL for your server if you have dynamic DNS, reverse proxy, etc. set up.
Once all the fun setup and networking hoops have been jumped through, you can browse to the web interface on your phone and copy your client's API token into your clipboard.
Ask your google home to talk to "Flex TV", and go into the Home app and finish linking your account using your copied API token. Presto talko. You can now ask Flex TV to play movies and shows, pause/stop/seek/etc. You can ask it to fetch a movie or show, and it'll do it.
Here's a little demo video:
https://www.youtube.com/watch?v=FZBlNwBocAc
I'll be updating this thread as time allows, but I wanted to get things rolling as soon as I could over here so folks could try it out. It sure seems as if the gHome thread could use a little action.
XDA:DevDB Information
Phlex (Flex TV), App for the HP Web OS
Contributors
digitalhigh
Source Code: https://github.com/d8ahazard/Phlex
Version Information
Status: Beta
Created 2017-03-17
Last Updated 2017-03-17

RESERVED

This one too

I had to 'reinstall' phlex on my webserver, but somehow i can't link my plex anymore.
I tried to redo everything, removed the phlex 'device' from my plex account, but when I login to phlex i don't get to see my plex device, api key is blanc etc.
Is there a way to really start from scratch? (deleting the files on the webserver and copying them from the zip file didn't make a difference)

Would love to try this as a docker container.

Any plans for integration with nzbget?

Huge potential! Thanks! I see some issues, but I'll make a couple issues on GitHub.

allanak said:
Would love to try this as a docker container.
Click to expand...
Click to collapse
I have zero experience with creating docker containers. However, another web app I've contributed heavily to, Muximux, is already maintained by Linuxserver.io. My thought is that it's probably going to be very non-trivial to modify the docker-muximux package to run Phlex. I'll work on this as time allows, but there are more pressing things on my list in front of this.
trevorcobb said:
Any plans for integration with nzbget?
Click to expand...
Click to collapse
"Plans" would indicate that I thought any of this out beyond "Man, wouldn't it be neat if I could...". No, no direct plans, but I'm always open to suggestions and requests. If there's an API for it, then I'm happy to include support for it in Phlex.
seanvree said:
Huge potential! Thanks! I see some issues, but I'll make a couple issues on GitHub.
Click to expand...
Click to collapse
Appreciated! I'll take a look at them and try to address.

digitalhigh said:
"Plans" would indicate that I thought any of this out beyond "Man, wouldn't it be neat if I could...". No, no direct plans, but I'm always open to suggestions and requests. If there's an API for it, then I'm happy to include support for it in Phlex.
Click to expand...
Click to collapse
Yes it does. If you look in the Play Store, most of the NZB manager apps that talk to Sonarr, CP, Headphones, Mylar, Sickbeard, SABNZBD, etc... also are compatible with NZBGet. I like it a lot more than SAB.
https://github.com/nzbget/nzbget/wiki/API
I would also suggest that you consider publishing a Synology Disk Station Manager compatible package if you want wide adoption.

404 not found
Hi man,
Great project, but have some issues with adding Chromecast and getting a 404 error on the background. Any thoughts?
https: // s7.postimg.org / qdc33ygej / Screenshot_1.png (Screenshot, can't add URL's because I'm to new here)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

trevorcobb said:
Yes it does. If you look in the Play Store, most of the NZB manager apps that talk to Sonarr, CP, Headphones, Mylar, Sickbeard, SABNZBD, etc... also are compatible with NZBGet. I like it a lot more than SAB.
https://github.com/nzbget/nzbget/wiki/API
I would also suggest that you consider publishing a Synology Disk Station Manager compatible package if you want wide adoption.
Click to expand...
Click to collapse
That would be really cool! Do you know anybody who knows how to roll a DSM package? I looked into it a while ago, but never got around to learning.
For both the DSM and docker packages, if anybody out there has the know-how, contributions are welcome!
JoooostB said:
Hi man,
Great project, but have some issues with adding Chromecast and getting a 404 error on the background. Any thoughts?
https: // s7.postimg.org / qdc33ygej / Screenshot_1.png (Screenshot, can't add URL's because I'm to new here)
Click to expand...
Click to collapse
Did you enable sockets in php.ini? That's needed for chromecast devices. The background I'll fix today.

digitalhigh said:
Did you enable sockets in php.ini? That's needed for chromecast devices. The background I'll fix today.
Click to expand...
Click to collapse
Thank you for your quick reply, it looks like it's enabled when I request my phpInfo():
https:// s17.postimg.org/gye81kknj/Capture.png
Any specific settings I need to apply in php.ini? Fyi, I'm running Centos 7 PHP 5.6.30 in combination with Nginx.

allanak said:
Would love to try this as a docker container.
Click to expand...
Click to collapse
docker build -t d8ahazard/phlex https://github.com/d8ahazard/docker-phlex.git#master
I don't think cast/sockets is working yet, but I was happy enough to get it running that I thought I'd share.

It works great but I can only control the chrome player on the server, none of my other devices, I cannot see any other devices. Is there any php voodoo i'm missing?
It does see them in the XML if i look at the logs.
---------- Post added at 08:35 PM ---------- Previous post was at 08:07 PM ----------
khuizer said:
I had to 'reinstall' phlex on my webserver, but somehow i can't link my plex anymore.
I tried to redo everything, removed the phlex 'device' from my plex account, but when I login to phlex i don't get to see my plex device, api key is blanc etc.
Is there a way to really start from scratch? (deleting the files on the webserver and copying them from the zip file didn't make a difference)
Click to expand...
Click to collapse
I have the same problem, its not regenerating an API key + not connecting to plex after trying to restart from scratch

trueppp said:
It works great but I can only control the chrome player on the server, none of my other devices, I cannot see any other devices. Is there any php voodoo i'm missing?
It does see them in the XML if i look at the logs.
---------- Post added at 08:35 PM ---------- Previous post was at 08:07 PM ----------
I have the same problem, its not regenerating an API key + not connecting to plex after trying to restart from scratch
Click to expand...
Click to collapse
I ended up having to reinstall xampp to fix similar issues. Still having issues with it not connecting to my Plex Server though. It connects to my remote server, but not the one that's running on the same machine, so it's weird.

trueppp said:
It works great but I can only control the chrome player on the server, none of my other devices, I cannot see any other devices. Is there any php voodoo i'm missing?
It does see them in the XML if i look at the logs.
---------- Post added at 08:35 PM ---------- Previous post was at 08:07 PM ----------
I have the same problem, its not regenerating an API key + not connecting to plex after trying to restart from scratch
Click to expand...
Click to collapse
Is this on Windows? Is the firewall possibly blocking Xampp?

digitalhigh said:
Is this on Windows? Is the firewall possibly blocking Xampp?
Click to expand...
Click to collapse
No, I have the windows firewall completely disabled. I think it's having trouble getting the Plex Token for the local server.

My bad, it's just not working with OPEN-PHT
I/Tue, 21 Mar 2017 18:51:51 -0500: fetchDevices: Device Plex Web (Chrome) provides client player pubsub-player
I/Tue, 21 Mar 2017 18:51:51 -0500: fetchDevices: Device DESKTOP-E0MLK8T provides player
that is wierd I can use any of my plex devices to control it....is there a workaround for this?
Scratch that, latest OPEN-PHT prerelease works.
Now I just need GHome to stop saying that Flex TV isnt responding. Do we need the Apache and public port to match?

When I installed, I linked through phlex's settings page. Google redirected me and said it was linked. When I tried to use it, it did not work. To fix this, I needed to load up Google Home on my Android phone, search for Flex, add it, link it, manually type in the api key, and then it was linked.
But, now I'm stuck. Phlex will not talk to my plex server.
It shows my server under phlex settings|Playback Server. But when I click test, it says "Error: MyPlex not available". Trying to tell google home to ask what's playing, it responds with "It doesn't look like there's anything playing right now"

Pull the latest commits, I think this should fix your issue.

Related

[Android 2.2+][Windows Client] FilePush - "push" files from your PC to your device

[Android 2.2+][Windows Client] FilePush - "push" files from your PC to your device
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
FilePush lets you transfer files to your Android device with only two clicks. With the Windows Client you can create context menu entries that appear when you right-click a file inside Windows Explorer. With a click on the "Push file to device" entry the file will appear a few seconds later as a download on your device. It works much like Chrome2Phone just for files.
There is a paid version that costs $1.2 and a free trial that has all the features but lasts only for 14 days.
Paid $1.2
Free Trial
Windows Client (direct download)
Officially supported is Windows Vista, 7 and 8
WLAN transfer
It's faster but can obviously only be used if your PC is connected to the same Wireless Network as your Android device. A internet connection is still required on both the device and the PC as the transfer gets initiated by a Google Push message.
Google Drive Transfer
The file gets uploaded onto your Google Drive first and will then be downloaded onto the device. It's slower but should work anywhere with an internet connection.
Something that's probably a concern for a lot of people: Your Google password isn't stored anywhere, locally or on a server. It uses OAuth and you only have to login with your Google Account the first time you launch the Windows application.
More information:
App Website
FAQ
Changelog
Article on Techie Buzz
Error
Hi, I have a problem with exe program. If you want to send something into the phone on my PC displays message
ERROR: An unhandled exception occureed - ................... file not found.
Please help.
translated Google
mobajlnik said:
Hi, I have a problem with exe program. If you want to send something into the phone on my PC displays message
ERROR: An unhandled exception occureed - ................... file not found.
Please help.
translated Google
Click to expand...
Click to collapse
Can you post the file you are trying to send? Does it have some strange characters in it? Also, have you tried another file?
So I tried and downright do not send apk files and some world and Exel. Mp3 files, jpg, functioning normally.
translated by Google
mobajlnik said:
So I tried and downright do not send apk files and some world and Exel. Mp3 files, jpg, functioning normally.
translated by Google
Click to expand...
Click to collapse
That's weird, it shouldn't matter at all what file types you are sending. Can you please post a file that didn't work for you?
Thanks!
very usefull app........
Can you please clarify exactly what you want to send a file? Google translator does not translate very well.
Here I put the screen with an error screen as shown.
https://www.dropbox.com/s/0ii3putf45czp0v/Screen.png
very usefull app........
mobajlnik said:
Can you please clarify exactly what you want to send a file? Google translator does not translate very well.
Here I put the screen with an error screen as shown.
https://www.dropbox.com/s/0ii3putf45czp0v/Screen.png
Click to expand...
Click to collapse
Thanks for the screenshot. Does this happen when you send it via Google Drive or WLAN? Can you upload the file from that screenshot?
illuminatic said:
very usefull app........
Click to expand...
Click to collapse
I'm glad you like it!
Yes, the image is recorded as Google Drive and WLAN
mobajlnik said:
Yes, the image is recorded as Google Drive and WLAN
Click to expand...
Click to collapse
Yes, but can you upload that file so I can try it?
So I tried everything possible and just downright do not send apk files
Looks like a nice app, but whats the difference between this and Wifi Transfer Pro? Except for the fancy-pants GUI.
FatalIll said:
Looks like a nice app, but whats the difference between this and Wifi Transfer Pro? Except for the fancy-pants GUI.
Click to expand...
Click to collapse
There are a few differences. Once you have FilePush set up you don't have to do anything else than just click files and they are on your phone. It doesn't always have to run in the background because it uses push messages to initiate the file transfer. With Wifi Transfer Pro for example you have to launch the app on the phone, enable the small http server and type the IP (that could be different every time) inside the browser. This doesn't seem like a lot of work but if you just want to send one or two files at a random time of the day with FilePush you can just click it and don't have to worry about it anymore.
cTrox said:
There are a few differences. Once you have FilePush set up you don't have to do anything else than just click files and they are on your phone. It doesn't always have to run in the background because it uses push messages to initiate the file transfer. With Wifi Transfer Pro for example you have to launch the app on the phone, enable the small http server and type the IP (that could be different every time) inside the browser. This doesn't seem like a lot of work but if you just want to send one or two files at a random time of the day with FilePush you can just click it and don't have to worry about it anymore.
Click to expand...
Click to collapse
Well said I suppose you COULD configure wifi file transfer pro to use the same IP everytime if you know how to set it in the router but all other points are valid points. I might use this
very smart program and easy to use interface... much easier than the other competitors eg zumocast.
suggestions for improvement (which will motivate me to buy): allow transfer from phone to computer too; allow transfer of folders; allow it to work via 3g.
inertiaholic said:
very smart program and easy to use interface... much easier than the other competitors eg zumocast.
suggestions for improvement (which will motivate me to buy): allow transfer from phone to computer too; allow transfer of folders; allow it to work via 3g.
Click to expand...
Click to collapse
1. Phone to Computer is an often suggested feature but technically hard to accomplish to make it user friendly, but I'm working on it
2. Transfer of folders is also something that I want to do but has some downsides as I would have to zip all the files and unzip them on the phone again
3. It already works over 3G if you use Google Drive to transfer the files
Btw. tonight I released a update for both the Android app and the windows client:
Android version 1.1.3:
» Added option to redownload a file
» Added Jelly Bean Notifications with Buttons
» Migrated to the new Google Cloud Messaging (GCM) Service
Windows version 1.0.0.5:
» Changes for the new Google Cloud Messaging Service
» Fixed a crash that could occur when using Google Drive
Cool
Sent from my Galaxy Nexus using Tapatalk 2
hey =)
i bought the full version to support this great idea.. but the windows client can't find my smartphone device. there aren't entries in the context menu either..
the app on the phone is registered. logged in with the win-client too.
i already tried to install it as admin. but didn't help.
any suggestions? =)
teivos said:
hey =)
i bought the full version to support this great idea.. but the windows client can't find my smartphone device. there aren't entries in the context menu either..
the app on the phone is registered. logged in with the win-client too.
i already tried to install it as admin. but didn't help.
any suggestions? =)
Click to expand...
Click to collapse
First off, thanks for getting the full version!
Did you login with the same Google account on the windows client as you registered your device with?
Did you press "Refresh" inside the preference window of the windows client? You can bring that screen up by right clicking the FilePush Icon within the taskbar and then clicking "Preferences".
Thanks!

ChromeCast Linux + hacking

Hi all,
I'm going to start hacking on the ChromeCast... to boot or run a tiny Linux distro, and also to run homebrew apps without the necessity of the whitelisting process, etc. I'll be keeping a log of my work at chromecastdev.com. Collaboration is welcome.
The first thing I'm going to play with is trying to dump the bootloader (resides in the little NAND on the Marvell SOC?).
milesc
I wish you luck in your conquest!
Hopefully developers on this forum can do some cool stuff with Chromecast!
Port it to Raspberry Pi. *fingers crossed*
Wait, it's an enclosed system, how do you plan to snoop it?
Ethernet over HDMI or the USB port could provide a path. Also there is a header inside it looks like that isn't listed as a spec so it could be a serial/JTAG point. High hopes for this getting hacked and running an XBMC or Plex client, although I guess Plex web might be fine.
Sent from my XT912 using Tapatalk 4 Beta
I don't know if you've already found it, but there are various source files available here. Bootloader sources are in the "sdk" repo. A cursory glance at them makes it seem like you can boot from a USB device by holding down the button on boot, but the image needs to be signed by Google.
any chance you can take some high-res photos of the pcb? The marvell chip isn't listed on the marvell website yet, would be great if we could find a block diagram.
I would sink porting Android would be the best step right now as this is an android forum and is younger brother ran android
Just my opinion.
Sent from my SCH-I535 using Tapatalk 2
Thanks tchebb!!! And here I thought I was finally going to have a reason to play with a logic analyzer to try to dump the bootloader off the bus.
Edit: Well, maybe it's not that simple after all. They didn't include everything... for instance, pin_settings.h is missing.
hajj_3 said:
any chance you can take some high-res photos of the pcb? The marvell chip isn't listed on the marvell website yet, would be great if we could find a block diagram.
Click to expand...
Click to collapse
Just found this on the chromecastdev.com site - http://chromecastdev.com/ccdev/viewtopic.php?f=15&t=7
milesc22 said:
Thanks tchebb!!! And here I thought I was finally going to have a reason to play with a logic analyzer to try to dump the bootloader off the bus.
Edit: Well, maybe it's not that simple after all. They didn't include everything... for instance, pin_settings.h is missing.
Click to expand...
Click to collapse
Yeah, the source doesn't seem to be in a buildable state. I was thinking there might be something like an Android repo manifest.xml to bring all those git repos together into one source tree, but I couldn't find anything like that. Also, like you said, there are lots of missing files referenced in the build scripts.
I found the link to the source after downloading the Chromecast app (my device hasn't arrived yet) and letting it scan and fail to find anything. It directed me here, which has the Google Code link in the "What's Under the Hood?" entry.
The other interesting documentation I found is here, specifically the part about pressing "Apps" seven times to enable developer mode (very reminiscent of dev mode on new Android versions). It's unclear whether that just exposes additional info in the desktop app or actually sends a packet to the Chromecast to enable some sort of on-device dev mode.
Once I get mine, the first thing I want to do is get a full packet capture of the setup and update process, and some sample network traffic generated by normal use.
http://arstechnica.com/gadgets/2013...ongle-is-left-a-little-too-open-to-hijacking/
https://plus.google.com/117916055521642810655/posts/Md6py81N2Ag
DIAL server (developed by netflix/google)
http://www.dial-multiscreen.org/
FAQ for developers (about app on 2nd screen(aka app on your phone/PC), and 1st screen(on the chromecast)
http://www.dial-multiscreen.org/details-for-developers
there is example source code available
supported apps:http://www.dial-multiscreen.org/dial-registry/namespace-database
looks like there should be hulu, BBC, Time Warner, Yahoo, SLing support soon
nmap scan.
Here is my nmap scan of the dongle.
Code:
Starting Nmap 6.25 ( _REMOVED_URL ) at 2013-07-26 20:01 CDT
Nmap scan report for 192.168.1.90
Host is up (0.015s latency).
Not shown: 998 closed ports
PORT STATE SERVICE VERSION
8008/tcp open http?
9080/tcp open http Mongoose httpd
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at
_REMOVED_URL:
SF-Port8008-TCP:V=6.25%I=7%D=7/26%Time=51F31BE8%P=x86_64-apple-darwin12.4.
SF:0%r(GetRequest,32,"HTTP/1\.1\x20501\x20\r\nContent-Type:\r\nContent-Len
SF:gth:0\r\n\r\n")%r(FourOhFourRequest,32,"HTTP/1\.1\x20501\x20\r\nContent
SF:-Type:\r\nContent-Length:0\r\n\r\n")%r(HTTPOptions,32,"HTTP/1\.1\x20501
SF:\x20\r\nContent-Type:\r\nContent-Length:0\r\n\r\n")%r(RTSPRequest,32,"H
SF:TTP/1\.1\x20501\x20\r\nContent-Type:\r\nContent-Length:0\r\n\r\n")%r(SI
SF:POptions,32,"HTTP/1\.1\x20501\x20\r\nContent-Type:\r\nContent-Length:0\
SF:r\n\r\n");
Service detection performed. Please report any incorrect results at _REMOVED_URL.
Nmap done: 1 IP address (1 host up) scanned in 150.36 seconds
I will run more scans but I thought I would point out that it appears to be running a web server on two ports 8008 & 9080. One of which is listed as Mongoose.
I am too new to post links so I removed all outside URLs. Mongoose can be found on Google Code.
https://github.com/dz0ny/leapcast
Does this do anything for you?
Sent from my SPH-D700 using xda premium
moocow1452 said:
https://github.com/dz0ny/leapcast
Does this do anything for you?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Nice find man. This is for sure the beginning of good things to come.
oh my...it runs Android!!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SSH/Telnet access is now possible! All we need now is the unlocked bootloader image and a powered MicroUSB OTG cable.
Nooter said:
SSH/Telnet access is now possible! All we need now is the unlocked bootloader image and a powered MicroUSB OTG cable.
Click to expand...
Click to collapse
they did it! http://blog.gtvhacker.com/2013/chromecast-exploiting-the-newest-device-by-google/
moocow1452 said:
https://github.com/dz0ny/leapcast
Does this do anything for you?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
The only thing that works for me is starting a youtube video from the Android youtube app.
No controls yet, it is not implemented.
Tab casting from Chrome spawns an empty chrome window.
Other Chromecast apps (Play Music) do not detect leapcast yet, or more precisely detects it but do not show the cast button.
bubbleguuum said:
The only thing that works for me is starting a youtube video from the Android youtube app.
No controls yet, it is not implemented.
Tab casting from Chrome spawns an empty chrome window.
Other Chromecast apps (Play Music) do not detect leapcast yet, or more precisely detects it but do not show the cast button.
Click to expand...
Click to collapse
We may want to keep any eye on this project too.
https://github.com/taterbase/hello-chromecast-sender

Extra Settings on Chrome

I found some extra settings on the Chromecast extension for Chrome.
So I went to my Chrome extensions window and clicked "Options" for the Google Cast extension.
In the tab, I right clicked > Inspect Element.
I noticed that a section of the page had a "display: none;" so I removed that and got this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just wanted to share my findings in case anyone was interested .
Oh really nice find!
Just tested this and confirmed. The line you are looking for is highlighted in the image.
Needs Reciever app?
Man I thought i was onto something with the whole URL for Flinging Command.
Apparently some have seen in the SDK that an example video using the big buck bunny video url could be casted. http://forums.anandtech.com/showthread.php?t=2332706&page=2
USER: vshah
the sample code, for example, simply passes this URL to chromecast to play "big buck bunny"
http://clips.vorwaerts-gmbh.de/VfE_html5.mp4
if smb shares are supported by chromecast, then i see no reason why it shouldn't work.
Click to expand...
Click to collapse
Also a great idea by user blackdogdeek
Forgive my possible ignorance, but couldn't you just run a web server on your smb box and give the URL of your local vid stash?
ie - pass http://192.168.1.10/public_html/vids/movie.mp4 to chromecast
Click to expand...
Click to collapse
So we need to figure out how to initiate the fling command? Is there a receiver app in the SDK kit or something?
I'm a total noob when it comes to this but this has my jimmies rustled and i'm excited about the possibilities.
I posted about this 2 days ago:
http://forum.xda-developers.com/showthread.php?t=2379682
Google SDK
Whitelisting Chrome apps
To permit your Chrome sender application to use the SDK, you must register the application's domain in the Google Cast extension for Chrome.
Be sure you are running Chrome version 28 or later.
If you haven't restarted Chrome in a while you may be running an older version; restarting will update Chrome automatically.
In the Chrome omnibox, enter chrome://extensions, and check the Developer mode checkbox to enable developer mode.
Install the Chrome extension for Google Cast.
On the Cast icon in Chrome's upper right corner, click four (4) times.
In the Cast extension, scroll to the Developer options.
In the Cast SDK additional domains field, click Add and enter the domain of your application, for example, "www.mydomain.com."
Code your application's HTML tag as follows:
<html data-cast-api-enabled=”true”>
Click to expand...
Click to collapse
I couldnt get the above to work but I found it in the options by removing the display:none from <section ng-show="doubleClicks > 1" style="">
So someone who gets "White Listed" could try sending a URL to the ChromeCast?
Edit: So someone can start making a webpage that uses this correctly and just add that domain to the Chromecast extensions whitelist?
see https://developers.google.com/cast/chrome_sender
xDman11x said:
Google SDK
I couldnt get the above to work but I found it in the options by removing the display:none from <section ng-show="doubleClicks > 1" style="">
So someone who gets "White Listed" could try sending a URL to the ChromeCast?
Edit: So someone can start making a webpage that uses this correctly and just add that domain to the Chromecast extensions whitelist?
see https://developers.google.com/cast/chrome_sender
Click to expand...
Click to collapse
Adding the domain is just a way of telling your extension that the domain is serving a chromecast receiver. They haven't opened the floodgates for developers so they are keep everything controlled, hence the whitelist process. You do "send" a URL to the chromecast but it's really just for the chrome extension to know that a websocket can be opened for the receiver site and the client (the chrome extension).
Someone else found the same thing and posted it on Reddit. Here's the link
Also note that the user Ranek520 said: "Unfortunately, none of those advanced options are actually hooked up. The JavaScript to store or load the values is removed for the release version of the extension. That's why the values are all blank.
Source: I wrote the max frame rate option."
So currently these options do nothing.
Nice find! Thanks!
umer936 said:
Someone else found the same thing and posted it on Reddit. Here's the link
Also note that the user Ranek520 said: "Unfortunately, none of those advanced options are actually hooked up. The JavaScript to store or load the values is removed for the release version of the extension. That's why the values are all blank.
Source: I wrote the max frame rate option."
So currently these options do nothing.
Click to expand...
Click to collapse
Still, they are for a reason. I guess they are waiting for a future update to activate them, or may be some dormant hardware like LTE in Nexus 4.
Anyway, it opens the door to many possibilities...
Ugh I wish I could get this on Android. With certain variations of these settings, the connection is so much better on my Chromebook than it is on any of my android devices.
Thanks, very good
Enviado con mi Note 2 Lollipop

My Library App

Hi,
As an owner of NGT I've decided to start programming in java and android API. Let me introduce my first project.
As I rooted my device I was missing Library launcher, ralaunch was fine but I was looking for shelves supporting launcher, epub launcher was nice but limited. So, I decided to fill the gap. I was inspired by nook library, which I think was very well designed.
For now it's in alpha stage and for easier developing it's as application, in future I'll make it as a launcher.
So, here are the screen-shots of actual developing state:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm using Calibre and its meta attributes:
<meta content="shelf name" name="calibre:series"/>
<meta content="1" name="calibre:series_index"/>
calibre:series_index is treated as integer, not as a float so if you have it as float, let me know.
Please let me know what you think about it. Let me know which features or ideas you wished to have in this app.
If anybody could contribute pictograms icons which will fit better, let me know.
---- uploaded first pre-alpha version of app ---
v0.1 - limitations:
scanning of ebooks is limited only to whole /sdcard/, no internal memory is scanned,
file browser don't remember locations, always start from root,
file browser don't have a bookmarks yet,
epub file's attribute "calibre:series" is treated as integer value, so 1.5 is 2, 1.4 is 1. Anybody uses fractions on this attribute?
sorting is done on re-run of app or on refreshing library, to be fixed,
for now, only epub filetype is handled,
searching doesn't work,
no preferences yet
v0.2
fixed adding of shelves
fixed scanning of whole /sdcard/
v0.3
added working bookmarks
added root access in manifest (in future will be used in "my file" browser to get access to blocked paths)
some general fixes
Let me know what you think about it.
Cheers
Reserved
Yes yes yes! THIS IS GOOD!
I've uploaded first version of my app. Hope that'll work for you.
Nice app, thanx! :thumbup:
OB
Sent from my SPH-D710VMUB using Tapatalk 2
Looks great - thanks! For future versions, I'd love to be able to do a dual-sort starting with genre tag so you could show shelves by tag then by series (so you could just see your SciFi series for example) or tag then by author etc. Thanks for the good work.
Hi,
New version uploaded, more info in first post.
Due to some manifest changes in code which fail to run I must upload again to have it working
Cheers.
I'm extremely impressed, especially considering that you said you have just started programming. Very good start sir! :thumbup::beer:
OB
Sent from my SPH-D710VMUB using Tapatalk 2
OverByter said:
I'm extremely impressed, especially considering that you said you have just started programming. Very good start sir! :thumbup::beer:
OB
Sent from my SPH-D710VMUB using Tapatalk 2
Click to expand...
Click to collapse
Thanks, I've learned C/++ for years, so learning Java was quite easy. The biggest problem was Android API, which is complex, especially API 7 which lacks many features.
Good work! I like the way this library app opens AlReader by default and allows the standard Nook library to open the stock reader by default. I have one feature request. As many of the third party readers will open .mobi files as well as .epub, can this library be modified to use both? My practice is to have my non-DRM books in .mobi format to open with AlReader so that they do not even show up in the stock library app which I use for B&N content only. I find this a effective way to separate the two different forms of content.
David0226 said:
Good work! I like the way this library app opens AlReader by default and allows the standard Nook library to open the stock reader by default. I have one feature request. As many of the third party readers will open .mobi files as well as .epub, can this library be modified to use both? My practice is to have my non-DRM books in .mobi format to open with AlReader so that they do not even show up in the stock library app which I use for B&N content only. I find this a effective way to separate the two different forms of content.
Click to expand...
Click to collapse
Hi, I plan to add mobi/pdf/epub only the question is how to handle this, altogether or separate in tabs.
Beside I'll add scan paths. So, for mobi we could set one dir and exclude it from scanning.
Tarnak said:
Hi, I plan to add mobi/pdf/epub only the question is how to handle this, altogether or separate in tabs.
Beside I'll add scan paths. So, for mobi we could set one dir and exclude it from scanning.
Click to expand...
Click to collapse
Actually, for my purposes, there is no need to separate .epub and .mobi. Your app will not be able to read B/N DRMed epubs anyway. For me, if it just picked up .mobi files when it does a library scan and displayed then alongside DRM free epubs, that would be fine.
Again, thanks for the great work on this.
~David
I really like the app, but it can't seem to get it to work properly. I only get three or four shelves to start and I can set the view to all to see all my ebook files. This view shows all of the books but without an authors name, shows null null. Hitting the refresh button the app rescans the device and shows all the authors on the books. Switching the view to shelves does not carry over, hitting the refresh button does not change the shelves shown. Going throughout the option menu to delete data and then rescan does nothing as well. Any ideas? Can post the debug if needed
Also for future dev adding the file types cbr/Cbz for comic books would be awesome. Showing them inline with other shelves or on a separate tab would be cool
Hi
I was oo for a while. Could you PM me debug, I'll look for it. Strenge, as ebook should be readed all the time the same way.
sorry about the two seperate pms but the first is what it normally looks like and the second is when i rescan files in the all files view.
Feature request. Sync with google play books or any other service that have upload and page sync. I want to be able to upload books on my phone and sync over to nook.
Hi, I'll look how that could be achieved. I had a plan to make my own build of reader with sources and add reading with last page shown in library app.
Sent from Umi Zero - Tapatalk
This app is exactly what I have been looking for. However, I installed it on my NST and have similar issues as above. Also when I try to assign books to a shelf it will add some but not all that I have selected and will add some random books as well.
I hope the developer keeps working on this app.
Sent from my SM-G900F using XDA Free mobile app

[ROM] rCast - Chromecast as a standalone media player without wifi

*** Now based on Eureka ROM 44433.01 ***
I have created a custom ROM (based on latest Eureka mod version 44433.01) that will let you play local media files without any wifi or other devices to control it.
It essentially becomes a self contained media player.
Media files can be stored either locally on the internal flash, or from an attached USB memory.
Playback is controlled by the button on the device.
What it does:
#1 - Getting the device to start up without network
Google has made a lot of checks to ensure the device is connected to the internet before it lets you start up.
- cast_shell and net_mgr makes http requests to google servers. I have patched those binaries so they make requests to the local web server instead.
- The device make a dns lookup sent to server 8.8.8.8. I have worked around that by creating an alias for 8.8.8.8 on the local host and run a dns server.
- The device will not finish booting until it has received an updated time from pool.ntp.org. This is fixed by adding pool.ntp.org as 127.0.0.1 in the hosts file, and locally running a sntp server.
Those workarounds will let the device start up normally even when network is missing.
The scripts are made so they only do something when we do not have internet. For normal connected usage none of the above is performed.
When we have detected that there is no internet (if we fail to get a new time from NTP server), the above fixes are performed.
After this the system may have a "brain freeze", but wait until the idle screen is back up again and it will be finished.
#2 - A cast sender that talks to the device and tells it what media to play.
To actually play any media files I have created a media player with a cast protocol implementation that talks to the device locally, and a cast sender implementation.
In addition there is a cast receiver app on the local web server.
An FTP server is also started at boot to make it easier to load media onto the internal flash.
HOWTO Install
1: Before you start you should set the Whitelist Provider to "Locally Stored" in the Eureka ROM Device settings.
A custom whitelist is required so we can have a local idle screen and also for the media player to work
2: Flash the zip-file like any other flashcast zip, and wait until it reboots.
Now the device is prepared with all the rCast files, but it's not yet activated. So far it is almost identical to the Eureka ROM, except for patches to cast_shell, net_mgr and a fix to launch user scripts during boot.
3: Login to the CC using telnet and run the following commands
Code:
busybox cp /system/rcast/apps.conf.template /data/eureka/apps.conf
busybox cp /system/rcast/user_boot_script.sh.template /data/user_boot_script.sh
chmod 755 /data/user_boot_script.sh
Reboot the device.
You should now be good to go.
To remove rCast features, remove or edit /data/user_boot_script.sh. This is the file that actually launches all the rCast features
HOWTO Control Media playback
The device only has one button so it is used for all control. Every command is a sequence of long and short presses.
a short press is < 1 second, a long press is > 1 second.
When there has not been any button pressings for 1 second the command times out and is executed.
Play/Pause: 1 short press.
Next video: 2 short presses
Previous video: 3 short presses.
Stop playback: 1 long press
HOWTO upload media files
Find out the ip-address of the device and connect with a FTP client.
All videos are placed in /data/rcast/videos are included in the playlist.
Reboot the device. The playlist is created during the start phase.
Currently only mp4 files are supported.
Download ROM
rCast 1.1.1 based on Eureka ROM 44433.01 available HERE
This version does not work properly when there is no wifi. It works when there is wifi, but no internet.
-------
Older versions
v1.0 based on Eureka ROM 27946.002 available HERE
This version has no restrictions for wifi.
Sources are available at https://github.com/rundgong
Thanks to @tchebb and @ddggttff3 for answering some questions I had about the Eureka ROM, and of course the entire Eureka team for making their ROM.
Awesome to see new development still on these devices. In your post you say attached USB storage and I guess rooting means a usb otg isn't hard to come by, but do those files have to be in a specific folder as well?
This is incredible work and super useful!
I take it, if you use a Y power cable and USB Flash Drive (FAT32?) it will add those mp4's to the playlist too?
Cheers Rob.
ImCoKeMaN said:
Awesome to see new development still on these devices. In your post you say attached USB storage and I guess rooting means a usb otg isn't hard to come by, but do those files have to be in a specific folder as well?
Click to expand...
Click to collapse
No, they do not have to be in a specific folder on the USB storage.
All mp4 files on the USB stick will be included in the playlist.
halfluck said:
This is incredible work and super useful!
I take it, if you use a Y power cable and USB Flash Drive (FAT32?) it will add those mp4's to the playlist too?
Cheers Rob.
Click to expand...
Click to collapse
Yeah, I use the same USB-storage + Y-cable for power that I use while flashing ROMs.
The USB drive I use is prepared by flashcast during the rooting process, but I suppose it will work also for any regular USB drive.
THIS is the reason I want to keep root. Cool new functions.
Don't think I will use this method but it's awesome to see the potential what can be done.
Skickat från min GT-I9505 via Tapatalk
Thank you!
I like this a LOT. Thank you!
I'm also curious to see if eventually this code can get modified and tweaked a bit so that that the whole "must be connected to the internet" crap gets by-passed and i can start using this as a simple wireless HDMI cable between my iPad and the hotel TV. Thanks again!
Daveychan said:
I like this a LOT. Thank you!
I'm also curious to see if eventually this code can get modified and tweaked a bit so that that the whole "must be connected to the internet" crap gets by-passed and i can start using this as a simple wireless HDMI cable between my iPad and the hotel TV. Thanks again!
Click to expand...
Click to collapse
It already bypasses the "must be connected to the internet" crap
It does not differentiate between "no internet" and "no wifi" though
LOL
It does not differentiate between "no internet" and "no wifi" though[/QUOTE said:
You're absolutely right, of course!
Yes indeed... WiFi ability so I can stream from my iStuff but no Internet Check, so i can just plug and play with any TV.
Click to expand...
Click to collapse
Genius! Thank you so much for your work! [emoji106]
Wow, an unexpected thread!
Few questions, loading the eureka rom we page is still available?
And how about the eureka ota update process?
Pietplezier said:
Wow, an unexpected thread!
Few questions, loading the eureka rom we page is still available?
And how about the eureka ota update process?
Click to expand...
Click to collapse
The web page is still there with all the settings. This rom removes no functionality from the original rom. Except for the few patches to binary files mentioned in the first post.
If you have it set to allow eureka OTA updates, I believe it will overwrite my changes when they decide to send out an update. But I'm not 100% sure how those updates work...
To telnet into the Chromecast, how? Using the 8.8.8.8 IP? Same with FTP?
I'm going to flash it this weekend and want to make sure I don't get stuck anywhere.
zul8er said:
To telnet into the Chromecast, how? Using the 8.8.8.8 IP? Same with FTP?
I'm going to flash it this weekend and want to make sure I don't get stuck anywhere.
Click to expand...
Click to collapse
There is no difference about the ip-address compared to Eureka ROM, when it is connected to a network.
Just use the Chromecast settings app, it will show you the ip.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Yay!
Sent from my VS985 4G using Tapatalk
Will this work with Chromecast 2015 (2gen)?
konradit said:
Will this work with Chromecast 2015 (2gen)?
Click to expand...
Click to collapse
No, 2gen Chromecast is not yet rooted. And who knows, if ever will be.
First post has now been updated with link to sources at github.
Some of the build scripts are a bit messy because I don't have any toolchain for chromecast, and had to use the toolchain for android instead.
But hopefully you can understand what is going on anyway.
Will you update your ROM to 44433 now, when @Team-Eureka release their new rooted build?
Srandista said:
Will you update your ROM to 44433 now, when @Team-Eureka release their new rooted build?
Click to expand...
Click to collapse
I'm on vacation right now, but when I get home I will update it.
That might take a few weeks though.

Categories

Resources