locked
Setting Video Source from PlayTo Receiver to multiple MEdia Elements on same page RRS feed

  • Question

  • Hi I am trying to implement PlayTo Receiver code in one of my applications, and need to set PlayTo receiver's stream as a source to multiple media elements on the same screen/page, but it is not letting me do that?
    In my application I used PlayToReceiver class it is working fine for one Media Element in the Receiver App. am gettings videos from other devices (DLNA supported players). and It show that video source in media Element control in my application. for one single media Element without any problem. but as i set the same Stream as a source to multiple VideoPlayers (Media Elements) on the same page under  receiver.SourceChangeRequested() event. it would not actually set the source of media elements except the first one? 
    e.g
    videoPlayer1
    videoPlayer2
    videoPlayer3
    and
    videoPlayer4
    it plays video in that media element which comes first in my coding. and rest of all are blank.
    var stream = args.Stream as Windows.Storage.Streams.IRandomAccessStream;
    VideoPlayer1.SetSource(stream, args.Stream.ContentType);
    VideoPlayer2.SetSource(stream, args.Stream.ContentType);
    VideoPlayer3.SetSource(stream, args.Stream.ContentType);
    VideoPlayer4.SetSource(stream, args.Stream.ContentType);
    I did it with local video source file and it shows video in all four media element controls. but for PlayTo the same code does not work.
    I could not find any videobrush class in windows store app as I have in windows phone SDK. otherwise
    I want to show the same video in all four media elements.
    Monday, January 13, 2014 2:41 PM

Answers

  • Hello,

    This is not a supported scenario. What is your business need for this functionality. If you have a strong enough business need we may consider it for the next version of the product.

    Thanks,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, January 14, 2014 2:06 AM
    Moderator

All replies

  • Hello,

    This is not a supported scenario. What is your business need for this functionality. If you have a strong enough business need we may consider it for the next version of the product.

    Thanks,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, January 14, 2014 2:06 AM
    Moderator
  • James we are working on an app in which it streams to multiple Media Elements on same screen to generate hologram on Holographic Pyramid, so we definitely need that functionality, see details of the app on

    http://apps.microsoft.com/windows/en-us/app/video-hologram/0bab337c-b4f9-4719-a7bc-c4803e31799b

    Tuesday, January 21, 2014 12:44 PM
  • Hello,

    Your usage is very specific. I would recommend that you use the Media Engine and Direct 3D to keep the four images in sync. You can then create your own custom streaming protocol to serve and deliver the content.

    I hope this helps,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Saturday, January 25, 2014 12:02 AM
    Moderator