Skip to content

A simple SSAP (LG Connnect App) protocol client, right in the browser!

License

Notifications You must be signed in to change notification settings

aabytt/webos-ssap-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssap-web

A hacky implementation of webOS remote control API on the web.

How it works

By default a server implementing SSAP on webOS prevents web origins from accessing its websocket. However there are exceptions to allow communication from chrome extensions and file:// origins. Both file:// and data: origins present themselves to remote server as Origin: null. We use that to allow http-based origin to communicate with SSAP server using a hidden iframe with src="data:..." communicating back and forth with the main http:// frame. This is implemented in wsproxy.js.

Limitations

Currently this client can't be effectively used on https:// origins due to mixed content security policies. Alternatively, user can be requested to manually approve self-signed certificate used for wss://:3001 server exposed by webOS.

Demo

Demo app in index.html can be used to preview current screen contents and perform basic remote control (arrow keys, enter = OK, escape = Back, home = Home)

About

A simple SSAP (LG Connnect App) protocol client, right in the browser!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.8%
  • HTML 9.2%