Chromecast does not play media from internal webserver - android

I have a little app written, where you can choose different medias like video, mp3 and pictures.
For testing I have added some sample media like
Video - http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4, an mp3 file, and a picture.
These samples are working fine in chromecast.
Furthermore for better understanding I have not written a new receiver for chromecast. I am using the standard receiver from google.
Now I have a webserver running on my android phone. I have "installed" the correct mimeTypes "video/mp4 mp4" and when I enter the URL from my android phone in my webbrowser chrome on my laptop with the requested file (192.168.0.12:5555/myvideo.mp4) - it is working.
So Chrome plays the file correctly.
The file myvideo.mp4 is the same video from the sample link:http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4. It is not another video.
But when I take this link (192.168.0.12:5555/myvideo.mp4) and send it to chromecast, chromecast tries to load the file and than goes back to the default screen, the same screen chromecast shows after successfully establishing a connection from my app. (Standard site from google)
I am working in Eclipse. It is not a programming problem. No errors.
I hope anybody can explain me, why chromecast doesn`t play my video, mp3 or jpg from my webserver, but plays the same files from the web?
Thanks
Paul
//EDIT
In the chromecast debugger I get the information:
[151.045s] [cast.receiver.MediaManager] Load metadata error
I dont know what i should do with this information. Also google havent heard this problem yet.
Thanks for any help
//Solution
I have put metadata to the mediafile and some metadata was false written. Eclipse didn`t show me an error, but chromecast had a problem with that.
So everybody who has the same problem, check your metadata of your file.
Hope I can help anybody with that

Related

Check if Chromecast can play video file

Our customers can upload videos to our servers, when they download our Android application they can play the videos amongst other features. One of them other features is being able to cast these videos to chromecast devices. When they tap to play a video our server sends over a url similar to:
https://xxxxx.net/dl/standard-user/xxx/video-xxx?mime=true
At the moment we are using LocalCast to stream the content to a chromecast, but we get the error:
This CheomeCast device does not support the video or cant access it.
We can definitely access it because our server only keeps healthy/working links. We want to add something into our code to see if the video is playable on ChromeCast if it is not playable on ChromeCast then we want to grey out the cast button for that particular video.
How would we check to see if the video is playable on ChromeCast? Client side that is. We want to check once the video url has been passed to the device.
We have searched online and searched Googles official documentation but cant seem to find enough information to solve the problem
Thanks all

How does iMediaShare work android

I installed this application called iMediaShare which helps stream youtube videos on my tv. What I want to know is where would I find the protocol information or sample code where I can transmit an image/video file to my samsung tv. There must be some documentaion of some sort or some cookbook which would help me get started. Has anyone worked on something like this before. If so how exactly is the upnp protocol stream sent from android ?

mp4 video does not play in android if hosted on my server

I'm facing a strange problem. I tried to play a mp4 video on android devices and it fails to play when video is hosted on my server but same video file plays in same android devices if hosted on other server. I'm facing this problem only in android devices I can play video on my desktop no matter wherever it is hosted. Has anyone else ever faced such problem ?
Obviously its a server problem. But I Cant figure out how to change the settings that enable mp4 to play in android devices!
Server : apache2.2.3
Thanks.
Update your httpd.conf to add the MIME type for mp4
AddType video/mp4 .mp4
If you have a password restriction (like .htaccess), try and remove it and test again. Even if Chrome knows your password, the video player may not, and it doesnt prompt you for it. When played full screen, the player just says 'sorry, this video can not be played'.

Accessing video from server on Android

We are trying to move some of our media files from our application to a server, but we can't seem to figure it out. I created a video, embedded it in my app, and it played fine. So I sent that same video file to someone to put on the server. I then went to my browser and typed in "http://www.server.com/Android-app/testVideo.mp4" and I get an error saying "Sorry, this video is not valid for streaming to this device." I am using a Samsung Moment. So I was thinking it was something wrong with the server. But the video does work on someone's Droid, so that makes it sound like a phone compatibility issue. But it is the exact same file that worked on the phone earlier.
Is there a setting (on phone or server) that needs to be changed? I just can't make since of it. Thanks for any help.
You haven't really given enough details to give a definitive answer, but the first thing I'd do would be to check the Content-Type in the response header.

Android Video Streaming Problem

I am new to android and trying to streaming video from my server.
When i run the application it gives Error "sorry,this video is not valid for streaming to this Device.." than i download and push to sdcard of my device(samsung Galaxy 5)this time video is playing.... i convert this video by SOTHINK VIDEO CONVERTER..
Any Help??
Thanks..
We ran into exactly the same problem, and I found a solution at this link:
http://code.google.com/p/android/issues/detail?id=9044
In short, if you have access to a Mac, you can encode the videos using HandBrake. Be sure to check the "Web optimized" checkbox. I'm encoding as format:MP4 file, Video Codec: H.264. After I did this and uploaded I was able to view the videos (or at least listen to them) in a 2.1 simulator, which had been giving that exact warning message before. I have not been able to get a hold of an actual 2.1 device, but I suspect it will work. When I confirm that I'll check back in here to let you know.
It seems that you are talking about sothink video encoder engine. Actually this program only supports the apple devices in ios system, for example, iphone, ipad and ipod.
Here is the official product homepage of sothink video encoder engine, and hope it helps!
http://www.sothinkmedia.com/flash-video-encoder-command-line/
The only issue for error "sorry,this video is not valid for streaming to this Device.." is that there is some problem in video format. Just correct the format/codec of mp4 and then it would run gracfully.

Categories

Resources