Answered by:
Developing a streaming camera phone application

Question
-
hi all,
i'm thinking about developing an application which would allow one to use the LUMIA 1200 as a live webcam feed. Thus, the idea is basically to use USB or home network to stream the feed to a windows app.
I've been reading thru some articles. Basically I was wondering it it would be possible to use the playto API to stream live content from the camera phone. And if so, wondering if anyone did it before. I can not find any app clearly pointing this out, nore documentation about playto API.
Thank you,
Tuesday, September 10, 2013 11:52 AM
Answers
-
Hello,
At this time we don't support PlayTo natively on Windows Phone 8. This feature is only available on Windows 8.x. Unfortunately there is no easy way to work with raw video data and codecs on Windows Phone 8. It is possible to get the raw video stream by using the VideoSink and then overriding the OnSample method. This will give you uncompressed frames in a format such as YUV. You should never request ARGB or RGB frames due to performance problems. Working with compressed formats such as mp4 can be complex and at this time it doesn't appear that we support the real time MP4 codecs on the phone.
Reference:
How to record video in a camera app for Windows Phone
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394041(v=vs.105).aspx
VideoSink Class
VideoSink.OnSample Method
I hope this helps,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/
- Proposed as answer by James Dailey - MSFTMicrosoft employee Wednesday, September 11, 2013 9:41 PM
- Marked as answer by Matt SmallMicrosoft employee Thursday, September 19, 2013 1:30 PM
Wednesday, September 11, 2013 9:41 PM
All replies
-
I'll forward this question to our media guy.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.Wednesday, September 11, 2013 1:01 PM -
Hello,
At this time we don't support PlayTo natively on Windows Phone 8. This feature is only available on Windows 8.x. Unfortunately there is no easy way to work with raw video data and codecs on Windows Phone 8. It is possible to get the raw video stream by using the VideoSink and then overriding the OnSample method. This will give you uncompressed frames in a format such as YUV. You should never request ARGB or RGB frames due to performance problems. Working with compressed formats such as mp4 can be complex and at this time it doesn't appear that we support the real time MP4 codecs on the phone.
Reference:
How to record video in a camera app for Windows Phone
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394041(v=vs.105).aspx
VideoSink Class
VideoSink.OnSample Method
I hope this helps,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/
- Proposed as answer by James Dailey - MSFTMicrosoft employee Wednesday, September 11, 2013 9:41 PM
- Marked as answer by Matt SmallMicrosoft employee Thursday, September 19, 2013 1:30 PM
Wednesday, September 11, 2013 9:41 PM