Comments (13)
https://github.com/entertailion/Caster
Might be interesting to see how this app launches the receiver app and starts playback.
Especially:
https://github.com/entertailion/Caster/blob/master/src/com/entertailion/java/caster/Playback.java#L201
https://github.com/entertailion/Caster/blob/master/src/com/entertailion/java/caster/RampClient.java#L128
from pychromecast.
The guy who wrote Caster and Fling (entertalion) has documented his understanding of the RAMP protocol here:
https://plus.google.com/+LeonNicholls/posts/b3wCmToPehK
and Note that neither Caster or Fling work anymore without a Developer account, and a whitelisted developer appid which you have to put into the app yourself. I guess google changed the method he used to send video to the default app and his method no longer works. So, now you need a custom receiver to make it work...
from pychromecast.
I'm really interested in getting this functionality working.
According to Google's Receiver Apps page, you only need a developer account whitelisted by Google if you're trying to use a custom receiver app. The default receiver app should allow streaming from anyone: https://developers.google.com/cast/docs/receiver_apps#default
from pychromecast.
First of all thanks for sharing this. It was helpful in my exercises.
I am trying to using the default app to play some local media file and do randomizations. @altf4 is correct that you don't need a developer account.
Where I am stuck right now is trying to decipher the json format used to post to the default receiver app
I have read the docs and based on https://developers.google.com/cast/docs/reference/messages something like this should work
start_app(host, APP_ID["DEFAULT_MEDIA_RECEIVER"],
{
"requestId":"0",
"type":"LOAD",
"title":"video",
"media": {
"contentId":"http://myurl/file.mp4",
"streamType":"NONE",
"contentType": "video/mp4",
},
"currentTime":"0",
}
)
When I do the above, I don't get any response and that is not helping.
Is there a way to debug this further ? or is this format better explained somewhere ?
Related to this is https://github.com/vickyg3/UrlPlayer which works fine for me but that requires Chrome and the Chromecast extension.
More info at
https://github.com/vickyg3/UrlPlayer/blob/master/js/castplayer.js#L220
Thanks
from pychromecast.
The default media receiver is part of the new API that Google implemented and cannot be started from PyChromecast because it only supports the original API.
from pychromecast.
thanks for the feedback. Will see if I can try the new API
from pychromecast.
btw, It should be possible ...
try this : https://gist.github.com/TheCrazyT/11263599
it works with me ...
from pychromecast.
@manatlan thanks for sharing. That is awesome. I did not have time to hack it but your example works perfectly fine with a local video as well.
from pychromecast.
I will ask the author if I can clean it up and integrate it into PyChromecast.
from pychromecast.
Yeah it is what I would have done (instead of the debugger interface) if I
had better debugging/RE skills... If you find yourself short on time, I
could do the integration... lemme know if you want help.
Fred
On Mon, Aug 18, 2014 at 9:43 AM, Paulus Schoutsen [email protected]
wrote:
I will ask the author if I can clean it up and integrate it into
PyChromecast.—
Reply to this email directly or view it on GitHub
#7 (comment).
from pychromecast.
This issue has been resolved. It can be started with
cast.launch_app(pychromecast.APP_MEDIA_RECEIVER)
And can be controller from the MediaController located at cast.media_controller
.
from pychromecast.
I am Using Default Media Receiver nd passing data .
MediaInfo mediaInfo = new MediaInfo.Builder(image ) // image is url
.setContentType("image/jpeg")
.setStreamType(MediaInfo.STREAM_TYPE_BUFFERED)
.setMetadata( mediaMetadata )
.build();
I didn't even created Receiver.I dont want to device to download Image from my url and show.
Just want to send data from my app to SCreeen.
How to send image from app but not by simply sending url.?
Please help me out !!!!!!
from pychromecast.
Is it possible to use a EXT-X-KEY
tag with the default receiver app?
from pychromecast.
Related Issues (20)
- UnboundLocalError: local variable 'host' referenced before assignment
- Getting error: module 'select' has no attribute 'poll' HOT 15
- 1st gen chromecasts not detected on network HOT 3
- GoogleAssistant
- chromecast.wait() never returns HOT 1
- ValueError: too many values to unpack (expected 5)
- Discovery doesn't work in an async context HOT 4
- Data difference when using GoogleTV Youtube vs Casting
- Custom http headers
- Idle chromecast custom screen example
- Command feedback
- Detect tv is on or off
- SiriusXM/Chromecast Casting Issue HOT 8
- Cannot initialize 'Chromecast' class HOT 2
- Not working with updated modules ('str' object has no attribute 'cast_type') HOT 1
- How to know if a specific connected TV is compatible ? HOT 1
- BBC Sounds conroller stopped working HOT 3
- Python 3.10 Depreciation Warning ssl.SSLContext()
- How to work with spotify HOT 5
- BBC iPlayer Live Stream - unable to get working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pychromecast.