How to make chromecast a dlna receiver/client (indirectly) - raspberry-pi

I got a chromecast, rPi, PC, iphone, android tablet.
The apps I want to cast live video from only support DLNA, and I want to watch those lives using chromecast.
I think it maybe kinda like this:
[1.Phone apps] -> [2.Conversion server] -> [3.Chromecast]
1.Phone apps can show a list of DLNA receiver to cast its live video to;
2.Conversion server can be detected as DLNA receiver, it receives lives sent from phone apps and convert them to something that chromecast supports in real-time, then send them to chromecast;
3.Chromecast is plugged to TV, it receives things from conversion server, so I can watch them on TV.
Let's say the server is shown as DLNA receiver [myRelay]. The use case would be like this:
I open my app on my phone, select where to cast live video to(which is myRelay) from detected device list, myRelay do the conversion thing and send them to chromecast, then I can watch live video on my TV.
The problem is, I don't know how to set up the server, what kind of sofwares out there I can use.
Maybe there is some kind of server that can run on rPi? I don't know. I'm new to this.
Please help!

If you want to use the Pi, check out this instructable: https://www.instructables.com/id/Raspberry-Pi-Media-Server-MiniDLNA/
Keep in mind that depending on the model, the WiFi might chug when trying to stream high-bitrate content. It might be better to connect the Pi to the network via Ethernet.

Related

iOS and Bluetooth low energy, possibilities?

I want to connect a robot, via Bluetooth, with an iPhone (4S or more) via Bluetooth low energy (BLE) 4.0. This robots require to send all the notifications of the iPhone to the device.
For example: If the iPhone gets a new email, I must send the event to the robot, and it will blink an LED. Stop.
I want to know if the iOS Bluetooth APIs of the Bluetooth framework can do this, or better, can share the Internet connection or whatever that can do this work.
I'm asking this, because I have heard that the APIs have some restrictions.
PS: ANY solution that can do this is very accepted (no Wi-Fi connection solution).
Bluetooth LE would be the way you want to go here, because standard Bluetooth requires your device to be MFi-compliant. Standard Wi-Fi could also work, if you're able to require the presence of the supporting network.
As of iOS 6.0, you can set up your iPhone as a Bluetooth LE peripheral, which would allow it to send notifications to your device, if it is configured in a central role. That would be a pretty power-efficient way of updating your device with new data.
However, there's one large hurdle to doing what you want here. iOS applications have no access to system-wide notifications, so you won't be able to listen for incoming emails or other notifications like that. You'll be able to send data to your device via Bluetooth LE, but you're not going to know when emails come in so that you could send that to your device.
With bluetooth 4, you could control a robot, as well as create a "notification" bot. It could be done quite easily. However as mentioned, you can't access system wide notifications in iOS.
However, you could use an external solution to listen for system notifications and then an API to listen a singular encoded notification and have your app listen to that.
One such system is https://ifttt.com (no affiliation)
There are also some great plug and play BLE options for rapid prototyping.
You can do it. A simple solution would be let a phone check your email periodically. Don't rely or try to use external Apple applications to do that, but use services provided by your mail.
In the case of Gmail, try to go to https://mail.google.com/mail/feed/atom. If you are logged in your Gmail, you will see the unread mail in XML format. The way you would login using a URL is: https://username:password#mail.google.com/mail/feed/atom
So what you can do is periodically parse the output and when <fullcount>0</fullcount> value changes call your robot service via BLE which should act as a callback for this specific event.

Is it possible to build a smartphone app that stream a screen to a TV, while allowing you to remote control it with the phone itself?

Is it possible to build an Iphone/Ipad app (and Android app) that can do two things: stream an interface and the respective content (particularly video) to a TV and then let me use the phone itself as a remote control for this interface?
Basically the idea is, you don’t need a smart TV anymore or some kind of set-top box or other connected device, just the smart phone which you carry around all the time anyway and which is connected to your local wireless connection. Maybe a docking station with a HDMR connection to the TV, so you are not emptying your battery.
Do you know any comparable implementation or use?
If it is theoretically possible, can you anticipate any performance problems, bottlenecks and how those could be resolved?
If this it’s not possible, which links are missing, what technology would have to be developed first?
Thank you for your thoughts on this!
Jacob
The iPhone/iPad would work for this. It allows you to output to a second screen. You can stream video, audio, whatever. A cool example I saw was using the TV as the primary display and the phone as a controller for a game.
There are two ways to do it. You can use an hdmi output or a vga output. There is also a AirPlay, which will let you do it wirelessly. You would need an AirPlay capable device (like an AppleTV) for it to work though.

iphone live video broadcast to other iphone

I have 2 iphones. I would like to record live video from one, and show that video live on the screen of the other. Is there a way to do this locally (ie not bouncing through a server somewhere) maybe using local bluetooth/wifi, with gamecenter perhaps?
I'm open to existing apps too, if they exist. Thanks,
This is definitely possible with an existing app. Have a look at Airbeam.
I'm running it on two iPhones, one connected to the other through Personal Hotspot sharing. The app allows me to view and record video and audio on either device from the other, over ad-hoc wifi.
You can (and probably should) use Bonjour for handling communications between two iPhones. You can modify this tutorial example to send the recorded video from one device to another.
Update: Looks like a StackOverflow user has managed to do just this, although not perfectly.

video streaming between two iphones?

is it possible to show what is showing in camera in one IPhone to another iphone through
bluetooth(GKSession)..Remote Live is available in Appstore.any idea pls?
I have never developed for iPhone before, but the idea sounds like it should be possible. I would take the approach of remote desktop basically. On the host phone, start up the camera and capture the image/video stream, then on the receiving phone have the client app that pairs to the host via bluetooth (wouldnt a wireless connection be better?) and send the data to the client phone to be rendered?

iPhone - Browsing iPhone files through computer

I want to be able to send files from an iPhone app to a computer. What would be the easiest way of doing this?
I've made simple server client programs before, but in those, the client has always needed to connect to the server before being able to receive messages from it. There is an app for the iPhone called iSimulate, where you put a server on a Mac (the iPhone simulator), and then you use the iSimulate app of an iTouch or iPhone to send touch events to the server. This app does not require you to type in an ip-address. Instead it presents a list of available computers that have this server up and running.
How exactly is this being done? Can a server broadcast a message over a network, w/o anyone being connected to the server? How does that work? How does a client listen for that broadcast?
Here's a video of the app I'm talking about:
http://www.youtube.com/watch?v=N3Qpd1ycZh4
alt text http://a1.phobos.apple.com/us/r1000/051/Purple/7b/07/70/mzl.mvwjifyc.320x480-75.jpg
That app may be using Bonjour.
I've seen similar apps use a peer-to-peer Bluetooth connection to exchange files between a iPhone and a desktop.