Languages

Menu
Sites
Language
How to programmatically take a screenshot on a wearable device / ScreenMirroring (Tizen .net )

Hello, is there a way to take a screenshot on a wearable device, programmatically, namely in my case a Gear S3 with tizen 4.0? Because I know you can take a screenshot if you hold the powerButton and swipe on the screen.

What I'm trying to achieve is create, sort of a screen sharing API, that converts the screenshot into a string and transmits it to the Android phone once every 1 ~ 2 sec, with the help of the Accesory Protocol. I know it's a terrible ideea...

I've already tried to use Tizen.Multimedia.Remoting.ScreenMirroring, but I can't make it work, cuz I dont know what I'm doing wrong, and probably it's not even available for a wearable device.

It would be cool to be able to share the watch screen to another platform... that's why I tried using the ScreenMirroring API first.

If there is some other way to share the watch screen... I'm open to suggestions, and I don't mean the emulator, because you don't get acces to any kind of sensor data like (GPS, gyroscope, pedometer...) and of course Accesory Protocol.

Responses

5 Replies
Tizen .NET

Hi,

The screen capture feature is not provided in Tizen.

Plus, regarding ScreenMirroring API, it's not supported on Galaxy Watch.

ScreenMirroring API is available on a device that supports http://tizen.org/feature/network.wifi.direct.display feature.

We need to check if a device supports this feature or not before using ScreenMirroring API.

: Tizen.System.Information.TryGetValue<bool>("http://tizen.org/feature/network.wifi.direct.display", out screenmirroring)

Thanks.

 

 

 

Sebastian Paul

Hmm... thanks for the quick reply.

I figured the ScreenMirroring API, is not supported on the Watch.

And I just found that even the Tizen Native API for screenshots https://docs.tizen.org/iot/api/5.0/tizen-iot-headed/group__CAPI__EFL__UTIL__SCREENSHOT__MODULE.html

Is not for use by third-party applications... 

Well... that's it I guess, thanks anyways.

 

Peter Wegner

I have NO idea why "they" are doing this...

All I find required mandatory ROOT access...

Maybe in Tizen 16.12.3.2222...

 

I never found way to capture Video... only serial Pics... for few Seconds...

Tested with my SM-R760 and Tizen:

3

4

5

5.5

6

1 Command between Tizen 3 and 6... inclusive 6... to capture 1 Screenhot:

sdb shell enlightenment_info -dump_screen -p /home/owner/media/Images/ -n 1.png

Only as info...

 

No idea why this is such Top Secret Feature...

 

Best Regards

Peter Wegner

Galaxy Watch 3 is now available...

 

Somebody managed to use these Features?

com.samsung.screen-capture

 

sh-3.2# /home/scmirroring_test --help

=====================================================================
                          SCMIRRORING Testsuite(press q to quit)
=====================================================================
m : Make mirroring source handle(create handle)
a : set ip & port(ex. a 192.168.49.1 2022)
c : set resolution(ex. c 0 (0 : 1920x1080_P30, 1 : 1280x720_P30, 2 : 960x540_P30, 3: 640x360_P30)
f : set connection mode(ex. f 0 (0 : wifi_direct, 1 : Other)
C : Connect
I : dIsconnect
S : Start
P : Pause
R : Resume
s : Direct Streaming (ex. s 1 file:///tmp/file.mp4 (0:disable, 1:enable))
u : Switch to UDP
t : Switch ti TCP
T : sTop
D : Destroy
q : quit

 

 

Best Regards

Peter Wegner

Still not solved to create Video nor Screen Mirroring to any TCP stuff...

 

Meanwhile I have Tizen 5.5 for my SM-R820... and I see something like this:

Miracast...

 

sh-3.2# wifi_direct_test
Parsing argument...
Argument:
Call Test Program

 00: quit                              01: full menu                         02: initialize                        03: activate wifi direct
 04: deactivate wifi direct            05: start discover                    06: start discover with listen only   07: start discover specific channel
 08: start discover specific frequency  09: cancel discover                   10: get disvocery result              11: send connection req
 12: get link status                   13: connect peer                      14: cancel connection                 15: disconnect all
 16: disconnect                        17: enable push button                18: create group                      19: create group with ssid
 20: cancel group                      21: is group owner                    22: reject                            23: invite
 24: set device name                   25: get device name                   26: set ssid                          27: get ssid
 28: set wpa                           29: set channel                       30: set wps config                    31: set max client
 32: get max client                    33: set hide ssid                     34: activate persistent group         35: deactivate persistent group
 36: is persistent group activated     37: get persistent group list         38: remove persistent group           39: set auto connection
 40: is auto connection                41: set wps pin                       42: get wps pin                       43: get supported wps mode
 44: set current wps mode              45: get current wps mode              46: get connected peers info          47: get go intent
 48: set go intent                     49: get device mac                    50: is autonomous group               51: set activation cb
 52: set discover cb                   54: set connection cb                 55: set ip addr assigned cb           56: set peer found cb
 57: set device name cb                58: set state cb                      59: unset activation cb               60: unset discover cb
 62: unset connection cb               63: unset ip addr assigned cb         64: unset peer found cb               66: unset state cb
 67: get network if name               68: get subnet mask                   69: get gateway addr                  70: is discoverable
 71: is listen only                    72: get primary device type           73: get secondary device type         74: get operating channel
 75: get ip addr                       76: register service                  77: deregister service                78: start service discovery
 79: cancel service discovery          80: increase oem loglevel             81: decrease oem loglevel             82: deinitialize
 83: init miracast                     84: get peer info                     85: set passphrase                    86: get passphrase
 87: set autoconnection peer           88: init display                      89: deinit display                    90: set display
 91: set display availability          92: get display                       93: get display availability          94: get peer display type
 95: get peer display availability     96: get peer display hdcp             97: get peer display port             98: get peer display throughput
 99: get session timer                 100: set session timer                 101: set auto group removal            102: get peer rssi
 103: add vsie                          104: get vsie                          105: remove vsie                       106: get connecting peer
 107: get vsie info                     108: connect                           109: find peer to connect              110: get peer vsie
 111: set go intent per type            112: get go intent per type            113: set wps config method             114: get wps config method
 115: remove persistent device          116: remove all persistent device      117: activate alive                    118: deactivate alive