언어 설정

Menu
Sites
Language
Resize display (or window) during playback

Hello,

I would like to give new geometry to my (ElmSharp) window, or Player Display. But I can't do it without set player to Idle. 
There is a solution ?

Thank you

Responses

7 댓글
Tizen .NET

Hi,
We can set Player's Display in the player's idle state but we can change the Geometry of MediaView or Window during playback after setting Player's Display.

 

Ali Demir

Hi thank you for you answer,

How can I do it? I can change first time the window.geometry of Player's Display(window) before PlayBack,
But when I to call during PlayBack second time window.geometry, no effect.

window.Geometry = new Rect(x,y,w,h);

Thank you

Tizen .NET

I asked the maintainer about resizing window. In Tizen, it's not allowed. Sorry for the misinformation.

Could you use MediaView instead of Window for Player's Display? (I checked it before.)

 

Ali Demir

Thanks for information,

I'm trying to replace by MediaView, and I take this like a reference : https://github.com/Samsung/Tizen-CSharp-Samples/tree/master/Mobile/PlayerSample/PlayerSample
Implemention,Renderer, PlayerService, All seems to be OK.
But I have an exception a this moment:


value contains "Tizen.Multimedia.MediaView"

 

private static readonly BindablePropertyKey NativeViewPropertyKey =
        BindableProperty.CreateReadOnly(nameof(NativeView), typeof(object), typeof(PlayerView), default(object));
public static readonly BindableProperty NativeViewProperty = NativeViewPropertyKey.BindableProperty;
public object NativeView
{
    get { return GetValue(NativeViewProperty); }
    set { 
=>>>>>SetValue(NativeViewPropertyKey, value); 
    }
}

Exception thrown: 'System.NotSupportedException' in 
Exception thrown: 'System.Reflection.TargetInvocationException' in System.Private.CoreLib.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in System.Private.CoreLib.dll

Dont understand why?

Thanks advance.

Tizen .NET
MediaView mv;

public void SetDisplay(object nativeView)
{
    mv = nativeView as MediaView;
    _player.Display = new Display(mv);
}
Now, you can change the Geometry of MediaView during playback as follows:
   
mv.Geometry = new ElmSharpRect(x, y, w, h);

BTW, how did you check the exception? As far as I know, Tizen log viewer or sdb shell is not supported with TV emulator.
Since it is difficult for me to check it myself, I asked the person in charge of it in TV product team.
The person in charge will replay after confirmation.

Ali Demir

Thank you for your reply,

but your information doesn't help me much.

Ali Demir

When I try to execute PlayerSample mobile app, on TV emulator, I have exactly same Expection thrown and more.. 

Exception thrown: 'System.DllNotFoundException' in 
Exception thrown: 'System.Reflection.TargetInvocationException' in System.Private.CoreLib.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in System.Private.CoreLib.dll
Loaded '/common/usr/share/dotnet/shared/Microsoft.NETCore.App/3.0.0/System.Diagnostics.StackTrace.dll'. Cannot find or open the symbol file.
Loaded '/common/usr/share/dotnet/shared/Microsoft.NETCore.App/3.0.0/System.Reflection.Metadata.dll'. Cannot find or open the symbol file.
Loaded '/common/usr/share/dotnet/shared/Microsoft.NETCore.App/3.0.0/System.Collections.Immutable.dll'. Cannot find or open the symbol file.
Loaded '/common/usr/share/dotnet/shared/Microsoft.NETCore.App/3.0.0/System.Text.Encoding.Extensions.dll'. Cannot find or open the symbol file.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.DllNotFoundException: Unable to load shared library 'libcapi-privacy-privilege-manager.so.0' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibcapi-privacy-privilege-manager.so.0: cannot open shared object file: No such file or directory
   at Interop.PrivacyPrivilegeManager.CheckPermission(String privilege, CheckResult& result)
   at Tizen.Security.PrivacyPrivilegeManager.CheckPermission(String privilege)

Solution doesnt allowed to play on tv emulator?