Jsch X11 Forwarding using an android application built on android studio -


i've set android application remotely accesses computer using jsch library , sends controls. want ssh computers camera , use x11 forwarding display onto application. using android studio develop application , have found feature 'video view'. however. know can link youtube videos i'm unclear on how link x11 forwarded command video view feature. or advice appreciated !

x11 forwarding allows remote x11 client communicate local x11 server. not video stream. android not have x11 server built-in.

you not need x11 in order access /dev/video0. if want forward video camera, suggest take 1 of existing programs can stream video , forward that. example, if vlc installed remotely,

vlc -i dummy \     --sout '#transcode{vcodec=h264}:std{access=http,mux=ts,dst=:8080/video.mp4}' \     v4l2:///dev/video0 

will cause vlc act http server, encoding video device stream , serving @ path http://localhost:8080/video.mp4. if forward port 8080 jsch or other ssh implementation, can load passing url using local port mediaplayer or exoplayer or whatever use playback.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -