locked
[UWP] exposing application as MediaRenderer in DLNA RRS feed

  • Question

  • I want to expose my application as MediaRenderer in DLNA. That means the application plays media, and can receive remote control commands from other apps. I tried implementing the standard, but of course some ports are blocked, cause reasons. Is there any SDK for this?

    This is different than PlayTo, which uses the app as a source for a DLNA sink.

    This is also different than using Windows.Devices.Enumeration to discover other DLNA devices on the network.

    Monday, April 8, 2019 7:10 PM

All replies

  • Hi,

    Currently I don't have an idea about this. I need to ask the team later. There might be some time delay.

    Thank you for your patience.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 9, 2019 7:11 AM
  • It would seem that PlayToReciever class

    https://docs.microsoft.com/en-us/uwp/api/windows.media.playto.playtoreceiver

    would do what I want to do. I will have to test it.

    Tuesday, April 9, 2019 3:03 PM
  • Hi,

    Yes, please give that a try about that API. If it does not work. You could come back and we shall see if we could do something.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 10, 2019 2:05 AM
  • Ok, that class SEEMS to do something I want, but it is not everything.

    For example, it will not respond to "next"/"previous" commands.

    The setup I tried. Sample from MSDN (yeah, it requires 2015)

    https://code.msdn.microsoft.com/windowsapps/PlayToReceiver-sample-607f00ed

    foobar200 + upnp plugin

    https://www.foobar2000.org/components/view/foo_upnp

    The playToReciever will respond to stop/play/pause, but not to next/previous.

    I tried the 2 commands with a different implementation (not winRT) and it responds properly to it.

    Wednesday, April 10, 2019 5:35 PM
  • Hi,

    I'm asking another engineer which is more familiar with Media Playback. 

    It might take some time. Thank you for your patience in advance.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, April 12, 2019 6:39 AM
  • Hi mcosmin,

    What do you mean by "I tried the 2 commands with a different implementation". Can you offer more detail about how you are trying to send next and previous commands to the PlayToReceiver? The PlayToReceiver will recive a SourceChangeRequested event when the app receives a new media stream. Because of this I'm a bit confused by your asertion that it doesn't respond to next and previous commands. I must be missign something. 

    -James


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

    Thursday, April 25, 2019 9:32 PM
  • I was under the impression that the dlna standard allows for remote control. So the media renderer keeps its own internal playlist without relaying on the "SourceChangeRequest" event, but responds to commands like "skip next", "skip previous" etc.

    I e the media renderer plays something locally (not from an outside source) and you could use a controller purely for remote control (i.e play, pause, skip next). This is what I am looking to achieve.

    Is this possible with uwp API?

    • Edited by mcosmin Friday, April 26, 2019 1:10 PM
    Friday, April 26, 2019 11:49 AM
  • We added remote control capability using technologies like (DIAL) via the "media casting" APIs. 

    There is a DIAL Reciever scenario in the Media Casting sample:

    https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/AdvancedCasting

    Reference:

    Windows.Media.Casting Namespace

    https://docs.microsoft.com/en-us/uwp/api/Windows.Media.Casting

    I hope this helps,

    James


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

    Saturday, April 27, 2019 12:20 AM
  • I see. Missed this one. I will take a look. Thanks.
    Saturday, April 27, 2019 8:20 AM
  • Sadly I couldn't find a DIAL client / remote to check against. I will report back when I come back at this.
    Sunday, May 5, 2019 6:02 PM