locked
How to create a media sink?

    Question

  • Hello every body

    I have a problem: I want to capture video and audio from webcam and micro to stream, and display it in other machine

    I tried Realtime-communication sample, but it so complex, so can somebody show me a simple sample about it :D

    Thanks

    Monday, August 27, 2012 4:04 AM

All replies

  • Hello,

    I found two sample codes and hope them can help you.
    CameraCaptureUI Sample
    This sample demonstrates how to use the Windows.Media.Capture.CameraCaptureUI API, which displays a full-screen UI for capturing photos or videos. The Camera Capture UI provides controls for switching from photo to video, a timer for taking time-dela…
    http://code.msdn.microsoft.com/windowsapps/CameraCaptureUI-Sample-845a53ac

    Media capture using capture device sample
    This sample demonstrates how to use the MediaCapture API to capture video, audio, and pictures from a capture device, such as a webcam.
    http://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Proposed as answer by Jesse Jiang Wednesday, September 05, 2012 7:12 AM
    Monday, August 27, 2012 10:40 AM
  • Hello,

    I found two sample codes and hope them can help you.
    CameraCaptureUI Sample
    This sample demonstrates how to use the Windows.Media.Capture.CameraCaptureUI API, which displays a full-screen UI for capturing photos or videos. The Camera Capture UI provides controls for switching from photo to video, a timer for taking time-dela…
    http://code.msdn.microsoft.com/windowsapps/CameraCaptureUI-Sample-845a53ac

    Media capture using capture device sample
    This sample demonstrates how to use the MediaCapture API to capture video, audio, and pictures from a capture device, such as a webcam.
    http://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thank you,I looked at 2 examples, but my problem is: I need capture video to stream, send it over internet, and play it in another computer

    The sample that suitable for my situation is Real-Time communication, it use custom sink but I don't know how to write a custom sink

    Now I'm debugging the Real-Time communication sample, hope it help ^^

    Tuesday, August 28, 2012 10:15 AM