API Casting

Topics: Windows 10 UWP
Sep 18, 2015 at 7:11 PM
Hi,
I want to use the casting API in order to send the media to other devices (DLNA,Miracast, etc.) I have searched information about this, and I have found with the Media Element but I don't find of the player FrameWork. How should I make it?
Thanks
Coordinator
Sep 19, 2015 at 1:16 AM
Edited Sep 19, 2015 at 3:58 AM
We will add the support and a sample in the next release of PF coming soon.
Sep 19, 2015 at 8:53 PM
Thanks for your answers. Ok I'll be waiting impatiently
Coordinator
Oct 7, 2015 at 3:50 PM
Edited Oct 7, 2015 at 3:51 PM
Added in latest release v 3.0.0.1:

<mmppf:MediaPlayer x:Name="player" Source="..." IsCastVisible="True" IsCastingEnabled="True"/>
Marked as answer by cansado2930 on 10/7/2015 at 1:59 PM
Oct 7, 2015 at 9:58 PM
Thanks you and your team for the new release!!
Oct 11, 2015 at 4:16 PM
Edited Oct 11, 2015 at 4:17 PM
ibennett wrote:
Added in latest release v 3.0.0.1:

<mmppf:MediaPlayer x:Name="player" Source="..." IsCastVisible="True" IsCastingEnabled="True"/>
Hi ibennett,
I have tried to compile your example but it failed, I can't get it works with the last Update of yesterday. the properties "IsCastVisible" and "IsCastingEnabled" aren't available. Could you explain me if I have done something bad?
Thanks!
Oct 12, 2015 at 6:32 PM
Now it Works with the last Update.
Oct 21, 2015 at 4:47 PM
Is it possible to enable casting using JavasScript too? Short example would be great. Thanks!
Coordinator
Oct 21, 2015 at 5:25 PM
aajax wrote:
Is it possible to enable casting using JavasScript too? Short example would be great. Thanks!
In the Samples (https://playerframework.codeplex.com/downloads/get/1494477), take a look at Microsoft.PlayerFramework.Samples\UWP.Js.Samples\pages\common\options\options.html

Specifically:
<div style="width:100%; height:100%" data-win-control="PlayerFramework.MediaPlayer" data-win-options="{
        ...
        isCastingEnabled: true,
        isCastVisible: true,