[ScreenMirroring] Support NUI window (#3413)
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 20 Aug 2021 05:34:04 +0000 (14:34 +0900)
committerGitHub <noreply@github.com>
Fri, 20 Aug 2021 05:34:04 +0000 (14:34 +0900)
src/Tizen.Multimedia.Remoting/Interop/Interop.ScreenMirroring.cs
src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs

index ef91193..20a9a46 100755 (executable)
@@ -39,6 +39,9 @@ internal static partial class Interop
         [DllImport(Libraries.ScreenMirroring, EntryPoint = "scmirroring_sink_set_display")]
         internal static extern ScreenMirroringErrorCode SetDisplay(IntPtr handle, int type, IntPtr display);
 
+        [DllImport(Libraries.ScreenMirroring, EntryPoint = "scmirroring_sink_set_ecore_wl_display")]
+        internal static extern ScreenMirroringErrorCode SetEcoreDisplay(IntPtr handle, IntPtr display);
+
         [DllImport(Libraries.ScreenMirroring, EntryPoint = "scmirroring_sink_set_resolution")]
         internal static extern ScreenMirroringErrorCode SetResolution(IntPtr handle, ScreenMirroringResolutions resolution);
 
index 6865586..62f631c 100644 (file)
@@ -134,7 +134,7 @@ namespace Tizen.Multimedia.Remoting
 
         ScreenMirroringErrorCode IDisplayable<ScreenMirroringErrorCode>.ApplyEcoreWindow(IntPtr windowHandle)
         {
-            throw new NotSupportedException("ScreenMirroring does not support NUI.Window display.");
+            return Native.SetEcoreDisplay(Handle, windowHandle);
         }
         #endregion