Chromecast - Java for Android App Development

Hi,
i am currently got stuck in developing a video -> chromecast tool. I know how to detect the upnp chromecast adapters and i also think i understood how chromecast works. I'm able to start a youtube video by POST command to my chromecast and i'm also able to stop the stream via DELETE and go back to the main window. How do i stream a local video or music file resp. an hls stream? I suppose it is the PlayMovies app which starts https://play.google.com/video/avi/eureka?${POST_DATA}.
Peter

PMKnecht said:
Hi,
i am currently got stuck in developing a video -> chromecast tool. I know how to detect the upnp chromecast adapters and i also think i understood how chromecast works. I'm able to start a youtube video by POST command to my chromecast and i'm also able to stop the stream via DELETE and go back to the main window. How do i stream a local video or music file resp. an hls stream? I suppose it is the PlayMovies app which starts https://play.google.com/video/avi/eureka?${POST_DATA}.
Peter
Click to expand...
Click to collapse
Hi Peter,
having literaly no experince with the chromecast, im afraid the best i can offer you is this link and also this one
good luck!

Related

Streaming Video to EVO

UPDATE: VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded. There is still a tiny bit of audio lag, but no where near as bad as my methods below.
I am on CM6 nightly.
--- original post ---
Just wanted to share what I use to stream both pre-recorded and live video to the native video player on the EVO. I am using the latest Ubuntu 10.04 with VLC and a Video4Linux compatible BTTV card. The settings I have here are 320x180 res at a very low bitrate as I use this mostly over 3G. Adjust the 'width' 'height' 'vb' and 'ab' to your pleasure.
This is a work-in-progress and any other methods or contributions are greatly appreciated!
To play a movie:
Code:
# vlc -v video.avi -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my Dish Network feed (Composite):
Code:
vlc -v vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=1 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
To Watch my home security cameras (ATSC US Cable #104):
Code:
vlc -v v4l2:///dev/video0 :v4l2-standard=3:v4l2-standard=45056 :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=0 :v4l2-io=1 :v4l2-width=640 :v4l2-height=480 :v4l2-tuner=0 :v4l2-tuner-frequency=673250 -I dummy --sout "#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},width=320, height=180,acodec=mp4a,ab=64,vb=384}:rtp{dst=,port=4555,sdp=rtsp://server:4555/stream.sdp,mp4a-latm}"
------
Start Movie Client Stream on Android:
- Open browser
- Browse to “rtsp://server:4555/stream.sdp”
- Watch stream!
** Also worth noting the VLC HTTP interface seems to be working partially and apparently you may be able to setup playlists and such within there. I mainly am using this method to view live content so I havent explored much of that yet.
** Someone with more time than I could theoretically whip up a simple PHP page that enumerates a directory and launches vlc for video library type of support.
Thanks OP.
Forgive my ignorace. But for stored content, this doesn't start the stream until the Android client opens it, right? Not sure since you say that you usually use it for live streams.
I've been looking for a way to stream movies from my 7MC box to the EVO. This might work if the windows version of VLC has the same function. What kind of quality can you get from a stream on the local network vs. WAN?
Well I've been trying this on the windows machine and I'm starting to think this is not a very polished solution. What I would like is to be able browse the media in folders and start a video stream all from android. I'm not sure how possible this is. I have found so far:
Gmote - can only stream one format I think. I don't feel like converting
Orb - closer, but I'd really like to do all this through the home wifi network, not involving an orb server at all. Plus the video quality is a bit less that what I was hoping for.
VLC - can supposedly transcode on the fly from nearly any format to mp4 to play on Android. But I don't see a way to start a stream from android. I can use the HTTP interface to start the player but I don't see how to start a stream or browse more than a playlist (can't create one).
Maybe I missed something.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Search market for AndroStream... Supposedly an app that uses VLC for streaming AND lets you initiate streams from your phone. I tried it but couldn't get it to stream over WAN.
nhutpham said:
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
I've been trying to get the VLC Stream and Convert app to work, I can control VLC player on my PC but I can't get the streaming to work.
Is our phone supposed to play the H.264 stream fine? It seems like zonyl got it working, I tried all different video sizes and I'm using the mp4 latm audio, but nothing shows up on screen when it's playing, no sound, nothing.
Anyone have any advice?
Click to expand...
Click to collapse
VLC Stream and Convert does everything for me now. I can browse the server directory and watch movies transcoded.
I am on CM6 nightly.
Click to expand...
Click to collapse
Thanks for the tip. I'll try it out. Will this work on a sense Rom tho? Might have to flash cm6
nhutpham said:
Any advice on settings and such?
I can browse and everything, but when it plays I get nothing except the moving bar and the timer starts running.
I'm on the rooted stock froyo rom.
Click to expand...
Click to collapse
I'm just running with the stock settings for the most part. Changed the resolution to whatever my bandwidth can tolerate at the time and make sure audio sync is turned on.
Sent from my PC36100 using XDA App
Got to try this app last night. Wow, very cool. Easy setup (visit the devs website), decent video quality, easily browse the pc for media. Dev has a donation version that i'll pick up for sure.
Another +1 for this app. Wish it did a better job with aspect ratios, but it still streams most of my media great.
Sent from my blah blah blah blah
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
I know its 2 months old.
Anyone have any tips on setting up the VLC convert app to work with Mac. I am unable to find the file that the developer is suggesting I modify.
Thanks
engagedtosmile said:
hate to necro a thread but im trying to set this up for over 3g/4g. any luck? if so, what settings am I missing?
Click to expand...
Click to collapse
Don't know if you've done it already but, turn on your wifi (no need to connect to a network, just turn on)
read this http://traveldevel.com/vlc-stream-convert/streaming-over-3g

AllShare....

How do I use this thing? I Googled it but couldn't find much info. How do I add a server? Is it all done over WiFi?
How to use All Share
All Share allows you to stream pictures, video and music to and from your device over your local wifi network. It should work with DLNA certified devices. It works using uPnP. Basically, you can use it some TVs, home media servers and gaming consoles such as PS3. That said, I don't own anything like that. There is free software the will allow you to access and play files to and from your computer with ease.
I suggest XBMC.
Once XBMC is installed go to:
Configure Sysytem -> Settings -> Network
Check the following boxes:
1) Share video and music libraries through UPnP
2) Allow control of XBMC via UPnP
Now fire up All Share on your device select play file from your phone to device. In addition to your local computer you should see XBMC, select it and enjoy the stream. I've been very impressed with the video quality. I'm sure there are other application that will allow you to stream to your PC but so far this was the simplest solution I've found.
Oh and prepare to be disappointed, Avatar was not an option, aside from the trailer. If your looking to convert your own movies for mobile use I'd suggest you start with Handbrake. It's very easy to use.
BritCrit said:
All Share allows you to stream pictures, video and music to and from your device over your local wifi network. It should work with DLNA certified devices. It works using uPnP. Basically, you can use it some TVs, home media servers and gaming consoles such as PS3. That said, I don't own anything like that. There is free software the will allow you to access and play files to and from your computer with ease.
I suggest XBMC.
Once XBMC is installed go to:
Configure Sysytem -> Settings -> Network
Check the following boxes:
1) Share video and music libraries through UPnP
2) Allow control of XBMC via UPnP
Now fire up All Share on your device select play file from your phone to device. In addition to your local computer you should see XBMC, select it and enjoy the stream. I've been very impressed with the video quality. I'm sure there are other application that will allow you to stream to your PC but so far this was the simplest solution I've found.
Oh and prepare to be disappointed, Avatar was not an option, aside from the trailer. If your looking to convert your own movies for mobile use I'd suggest you start with Handbrake. It's very easy to use.
Click to expand...
Click to collapse
This is badass. Worked like a charm... Thanks! And can this be done over the internet? Like how would I stream it to an IP/Port?
Has anyone tried WDTV Live? All share does not see WDTV Live as media rendered?
I want to push video from phone to WDTV or vise versa?
hah2110 said:
This is badass. Worked like a charm... Thanks! And can this be done over the internet? Like how would I stream it to an IP/Port?
Click to expand...
Click to collapse
It's intended to work over wifi only, however, this might be possible through ORB. It does recognize the device in All Share but frankly haven't tooled around with it much. I'll let you know what I find out.
mveksler said:
Has anyone tried WDTV Live? All share does not see WDTV Live as media rendered?
I want to push video from phone to WDTV or vise versa?
Click to expand...
Click to collapse
I have been able to stream to my wdtv live with no issues. I don't have custom firmware, just the latest stock firmware.
However, my phone will not see wdtv as a server or nas? Which sucks cause that's where all the media is.
Playon, tversity, ps3media server and Xbmc all streamed media from a hard drive or my pc perfectly.
Playon was not able to stream, online media I.e. Hulu, adult swim.
I've been able to stream videos to my phone using AllShare from two of my Windows 7 machines, no additional software needed. I have a Homegroup setup and just have the the folders containing the videos shared with the Homegroup.
jrparker99 said:
I've been able to stream videos to my phone using AllShare from two of my Windows 7 machines, no additional software needed. I have a Homegroup setup and just have the the folders containing the videos shared with the Homegroup.
Click to expand...
Click to collapse
Can you describe this more in depth?
hah2110 said:
Can you describe this more in depth?
Click to expand...
Click to collapse
Windows 7 supports DLNA, which is what AllShare uses for media streaming. I'm able to share videos, music, and pictures over Wifi on my home network. I like to stream videos from my PCs to my phone for viewing either on my phone, or on my TV through the video out capability of the Vibrant's 3.5mm headphone jack.
Take a look at this link to enable your media sharing on Windows 7:
http://blogs.msdn.com/b/e7/archive/2009/05/12/media-streaming-with-windows-7.aspx
I did have to reboot my PC after changing my Windows settings to see the shared folders show up in AllShare. I'm not sure if this step is required, just my experience.
If you have any other specific questions, please let me know.
Edit:
If you don't have Windows 7, you can install the Samsung server software (PC Share Manager) on Windows XP or Vista, available here :
http://www.samsung.com/us/consumer/...XAA/index.idx?pagetype=prd_detail&tab=support
(Click the Software link under then Downloads tab)
This was mentioned in another thread by user siberslug
Thanks for the tips, certainly a better solution than a third party players.
jrparker99 said:
Windows 7 supports DLNA, which is what AllShare uses for media streaming. I'm able to share videos, music, and pictures over Wifi on my home network. I like to stream videos from my PCs to my phone for viewing either on my phone, or on my TV through the video out capability of the Vibrant's 3.5mm headphone jack.
Take a look at this link to enable your media sharing on Windows 7:
I did have to reboot my PC after changing my Windows settings to see the shared folders show up in AllShare. I'm not sure if this step is required, just my experience.
If you have any other specific questions, please let me know.
Edit:
If you don't have Windows 7, you can install the Samsung server software (PC Share Manager) on Windows XP or Vista, available here :
(Click the Software link under then Downloads tab)
This was mentioned in another thread by user siberslug
Click to expand...
Click to collapse
I have windows 7, I created a homegroup and shared my libraries ...I cannot see the files or folders with allshare. It tell me no media. I restarted my computer and phone. I don't know what the problem is but I've been messing with it for a while now and thought I'd try and get some help
sorry had to remove the links on the quote above because i'm still new. I guess.
lemarg said:
I have been able to stream to my wdtv live with no issues. I don't have custom firmware, just the latest stock firmware.
However, my phone will not see wdtv as a server or nas? Which sucks cause that's where all the media is.
Playon, tversity, ps3media server and Xbmc all streamed media from a hard drive or my pc perfectly.
Playon was not able to stream, online media I.e. Hulu, adult swim.
Click to expand...
Click to collapse
If you remember, what file format were you able to steam through playon to your phone? I couldn't get any files or online streams to work. Also did you use the "My Media" or the "Local Files" plug-in?
Thanks!
tacomaguy20 said:
I have windows 7, I created a homegroup and shared my libraries ...I cannot see the files or folders with allshare. It tell me no media. I restarted my computer and phone. I don't know what the problem is but I've been messing with it for a while now and thought I'd try and get some help QUOTE]
Figured out I was being blocked by my firewall. I got it working now
Click to expand...
Click to collapse
how to use allshare between vibrant and ps3?
hi guys... i've been reading all the threads on allshare but could not find an answer for the ps3 sharing. my ps3 recognized the vibrant right away but there was no content in video,audio or pictures. (yes i did choose files on the phone and added to playlist)..
any suggestions please? thanks...
** sorry for posting too soon... problem solved...
Holy shiznit....This is bad ass...I can now stream all of my TV shows from my PC to my phone while I am laying in bed. Now I can watch episodes of Burn Notice while my wife hogs up the TV.
I just tried it and it works like a charm.
Those of you who aren't sure how to do it I will explain:
-Using Windows 7, download the latest Windows Media Player
-Add your videos to a playlist
-Open up Allshare and select the second option
-Find your playlist and start watching
Can your iPhone do this?
So i can use XBMC and be able to control video on my PC from my phone, but when i try to play media on my PC to my phone the video and music library says no content. I'm not sure what I'm doing wrong...maybe I need my media in a specific folder? I tried my shared libraries in Win7, but nothing in those folders show up.
aztimmay said:
So i can use XBMC and be able to control video on my PC from my phone, but when i try to play media on my PC to my phone the video and music library says no content. I'm not sure what I'm doing wrong...maybe I need my media in a specific folder? I tried my shared libraries in Win7, but nothing in those folders show up.
Click to expand...
Click to collapse
I had the same issue with Win7. Do you have the latest version of windows media player? If not upgrade, then make certain to select "allow remote control of my player" and "Automatically allow devices to play media" from the Stream tab in windows media player. This should to access the files instead of just seeing empty folders.
It works with an Xbox 360 using media center too.
Pretty useful for showing video clips on my phone via a bigger screen.
BritCrit said:
I had the same issue with Win7. Do you have the latest version of windows media player? If not upgrade, then make certain to select "allow remote control of my player" and "Automatically allow devices to play media" from the Stream tab in windows media player. This should to access the files instead of just seeing empty folders.
Click to expand...
Click to collapse
Still not working...I have the latest and enabled the two options listed, but when I select from my phone "play file from server on my phone" now my PC doesn't show up as an option.
The only time I see my PC as an option on my phone is if i'm running XBMC, but even then I don't see any videos to select.
Found this video that helped explain how to setup the video library in XBMC which was easy to do, but now when add any of my movies to the playlist it says it cannot play the video even though most of them are AVI...unless it can't play AVI on the phone player...if that's the case, that good sir is LAME.
Almost forgot the link to the helpful video
youtube dot com slash watch?v=bCx0XtWB37w
(can't post links yet with all my noobness)
edit: Found a WMV file on my PC...put that file in the library and added it to the playlist...it keeps looking like it's loading or something, but nevers ends up playing it was never meant to be I guess

Is there something like Allshare DLNA on LG G2?

Hello
i was searching for hours now without luck.
I read there is an DLNA Native Client in our LGG2 but only thing I found Is smartshare (stream to tv) smartshare beam ...
When I had Allshare on Samsung i could pretty see my WMP dlna server with files to play. Or play from Laptop via "Send to"
I repeat , I want to play Video files or Music on LGG2 streaming from Windows Media Player via DLNA.
Do I need an external app for this?
Thanks and btw. Phone is great now with 4.4 and recovery....
JinRed
// okay with external app BubbleUPnP it works. But I dont believe that our fantastic LG hasn't any stock DLNA Player...Poor
JinRedfield said:
I repeat , I want to play Video files or Music on LGG2 streaming from Windows Media Player via DLNA.
Do I need an external app for this?
Click to expand...
Click to collapse
No, you don't need nothing. If Windows Media Player streaming is turned on you got to start stock Video player and choose in upper list "Nearby devices" and you'll all your WMP files. No need to BubbleUPnP or smthng

Network Storage

Anyone know if there is a compatible application that can stream media from my network to my nexus player?
Do a search for kodi/xbmc. Choose the latest x86 nightly
ckavvouras said:
Anyone know if there is a compatible application that can stream media from my network to my nexus player?
Click to expand...
Click to collapse
Bubble UPNP with google cast to NP, or install directly to NP.
I find ES Explorer and MX Player combo work fine with streaming videos to the NP.
ckavvouras said:
Anyone know if there is a compatible application that can stream media from my network to my nexus player?
Click to expand...
Click to collapse
I use Kodi. Since your post, they've released the final build of Kodi 14.0 (formerly XBMC). It runs beautifully. The only "issue" that I have is that my HDD goes into deep sleep. So sometimes I'll open Kodi and the first video that I select will give me the popup dialog of "video no long available, remove from library?" I just select no, and by then, the HDD is awake, so I select the video again and it plays.
For the record, my HDD is plugged into my router directly via USB. So Kodi is streaming off of this through the router (Wireless-N).

Any way to cast video files from my Windows 10 laptop?

This method is supposed to work for Chromecast:
http://www.geeksquad.co.uk/articles/stream-windows-10-google-chromecast
Unfortunately it doesn't work for me with the Shield, has anyone else had any luck?
There are some chrome extensions for this, but they all seem to render the video in a tab and then re-encode it before transmission, resulting in horrible quality. Dragging and dropping the video files into Stremio or Popcorn Time sometimes allows me to cast them. But that is neither clean nor reliable.
Download AirPlay
If all else fails, you could try going the other way - playing videos on your Shield from a Windows share or Plex server.
I've come up with an okay solution. If I install Kodi on the Shield and enable UPnP then I can cast natively from Windows, but only if Kodi is already running. It's not 100% reliable but it's better than what I had and it doesn't require any "hacks", just an install from the Play Store.
You can cast straight out of the Chrome browser if your video will play in it.
cookiehead2 said:
You can cast straight out of the Chrome browser if your video will play in it.
Click to expand...
Click to collapse
Thanks, this works great for .mp4, unfortunately .mkv and .avi aren't supported.
Using Plex is a good option, but Chrome's cast also has an (experimental) option to cast your screen. Click the little down arrow on the top right of the cast menu.
Videostream works amazing well
Sent from my SM-N920T using XDA-Developers mobile app

Categories

Resources