Quantcast
Jump to content

webOS Open Source Edition For Developers


Recommended Posts

On March 19th, LG introduced  with the intention of opening up webOS again to the world of development to move beyond TVs. This is the second time an open-source version of webOS has been released, the first coming under the failed tenure of HP back in 2011. 

LG Chief Technology Officer Dr. I.P. Park. “webOS has come a long way since then and is now a mature and stable platform ready to move beyond TVs.”

webOS Open Source Edition Architecture

The following figure shows the overall architecture of webOS Open Source Edition (OSE). webOS OSE consist of a set of layers: Core Applications, Application Framework, Managers & Services, Base Components, and BSP/Kernel.

webOS Open Source Edition Architecture

Core Applications

  • webOS OSE has Core applications as the top layer and this layer includes System UI and System app.
  • System UI includes apps that are related to the basic user interface, such as Home Launcher and Notification. These apps are usually implemented using QML.
  • System app includes Settings app and web browser. Settings app is used to control the system properties and implemented using Enact. As a web browser, the Chromium browser is used.

Application Framework

  • To help developers creating better apps and services, webOS OSE provides enhanced options and environments compared to developing solely with HTML5, JavaScript, or CSS. The web app framework Enact, which is equivalent to jQuery, and Software Development Kit (SDK) are provided.
  • Enact
  • Enact is a web app framework optimized for developing web apps for webOS OSE. For more information and structure of Enact, refer to Enact developer site.
  • Enact is also an open source project and is provided separately from webOS OSE.

SDK

The SDK provides a development environment for web apps and services. In this release of webOS OSE, we provide a CLI-based SDK for developing and installing web apps and services. Web apps can be packaged with services that are developed using Node.js. For more details on development/packaging of web apps and services, see Command Line Interface.

Managers & Services

  • Managers & Services layer includes the following components.
  • System and Application Manager
  • System and Application Manager (SAM) oversees the behavior of apps. SAM manages each app throughout its lifecycle, including the installation, launch, termination, and removal of the app.

There are two types of apps in webOS Open Source Edition: native app and web app. In case of a web app, actual launching and management are performed by Web Application Manager as described below.

Web Application Manager

Web Application Manager (WAM) is responsible for launching and managing web apps. In addition, WAM performs CPU usage optimization, status monitoring and recovery processing, and access privileges management, all based on the running status of web apps.

Luna Surface Manager

Luna Surface Manager (LSM) is a component that works as a graphics manager. LSM displays graphical elements on the screen, manages the composition of these elements, and performs the event handling for input devices such as keyboard and pointer. LSM is also responsible for the execution and management of System UI, such as Home Launcher and Notification. LSM is implemented using Qt, and System UI is implemented using QML.

Activity Manager

Activity Manager is responsible for managing and executing activities requested from services. An activity is requested along with a specific condition, and it is triggered when the condition is met. You can configure the activity to perform tasks such as automatic execution of specific services, callback requests, and so on.

uMediaServer

uMediaServer (uMS) is a module that works as a server for the webOS media framework. uMS provides interfaces for media playback, manages resources, pipelines, and their policies, and manages the lifecycle of the media player.

Base Components

Base Components layer includes the following components.

  • LS2
  • LS2, also called Luna Bus, is a system bus used by webOS OSE. LS2 manages the interface registration and invocation required for the interconnection among apps and services. Originally based on D-bus, LS2 has been enhanced to optimize the performance for embedded device environment.

Web Engine

webOS OSE uses Chromium as the web engine. A web engine is the module that loads and parses a web app (or web page) consisting of HTML, CSS, and JavaScript, and performs all tasks required to represent the web app on the screen, such as layering and rendering. Currently the web runtime environment of webOS OSE is implemented according to the multi-process model of Chromium. Therefore, each web app is run as a separate independent process.

Chromium also includes browser logics a.k.a. Chromium browser which webOS OSE provides as the default browser app.

DB8

DB8 is an embedded JSON database that supports data storing and retrieving in the structure of key-value store. webOS OSE uses LevelDB as the back-end database. The default service associated with DB8 is the com.webos.db. The com.webos.tempdb, which allows you to configure temporary storage in memory, is also provided.

Node.js

The service framework based on Node.js is provided so that you can implement services with JavaScript language. Node.js is a JavaScript framework that is typically run on a server. In webOS OSE, Node.js has been built in to facilitate service development. For more information on developing services based on Node.js, see JS Services.

BSP/Kernel

BSP/Kernel layer consists of several components to support Raspberry Pi 3. Typically, it provides evdev for event processing, Mesa for graphics support, and Wi-Fi and wired LAN for connectivity.

Except as noted, this content is licensed under Creative Commons Attribution 4.0 and sample code is licensed under Apache License 2.0.

Visit: 

link hidden, please login to view

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Topics

    • By Justin Tan
      Found multiplex application that use letsencrypt stop working in 30 September 2021 on LG WebOS 3.5. This appear to be wide spread multiplex version of WEBOS. 
      See 
      AND 

      link hidden, please login to view As PLEX blaming to be LG fault. LG please provide solution to only 2 year old TV
      LG
      Our current app is available on 4K/UHD LG television models running the following system software:
      webOS 3.0 webOS 3.5 webOS 4.0 webOS 5.0 No 720p or 1080p (“full HD”) sets are supported for our current app at this time.
      Note: Due to root certificate limitations with the device OS itself, only webOS 5.0+ devices support secure connections with a personal Plex Media Server. To allow connections to a personal server, devices running earlier webOS versions must be set to Allow Insecure Connections in the TV app settings and the Plex Media Server must be set to Preferred for the Secure Connections preference.
    • By News Reporter
      The importance of a well-balanced diet and its benefits for preventing diseases by boosting one’s immune system must never be underestimated. That said, an alarming number of people in Indonesia are malnourished and, unlike other parts of the world, this number is rising, not falling. This problem can be attributed to the number of children with limited access to nutrient-packed ‘superfoods’ like fruit, vegetables, beef, fish and nuts, according to a 2020 survey of low-income households that suggested children in Jakarta were not eating nearly as much nutrient-dense foods as they were before the pandemic.*

      Lee Taijin, President of LG Electronics Indonesia, and Kris Lee, Product Marketing Director of Home Appliances LG Electronics Indonesia, serve food to a waste disposal worker in Jakarta
      To take another step forward in its mission to make the world a better place for everyone, LG is bringing its healthier lifestyle initiatives to more underprivileged communities in Indonesia, most recently with its LG Lebaran Sehat (LG Healthy Eid) event. From May 4 to 6, the company set out to create social value in the nation’s bustling capital city, Jakarta, by delivering hot, healthy meals to hungry locals with LG’s flagship home appliances, including its cutting-edge microwave and expansive two-door refrigerator, playing their part.

      Every year, Eid al-Fitr marks the end of Ramadan and is celebrated by hundreds of millions of Muslims in Indonesia alone. After a full month of fasting and prayer, families participate in a nationwide exodus, known as mudik, to reach their hometowns in time to celebrate lebaran, which involves a family feast made up of various delicious, traditional meals. This year, lebaran meant even more to Indonesians of Islam as it saw the return of mudik, since restrictions on mass movement were finally lifted after 2 years living with the global pandemic.

      Believing that a spirit of solidarity within the local community would bring people together, LG Indonesia sent food trucks to three waste treatment facilities in the poorer areas of the city – Warung Buncit, Rawajati and Bantargebang. Hundreds of healthy meals were handed out to hard-working locals and deserving children, which were kept fresh and warm thanks to the advanced, energy-efficient LG products employed inside the restaurants on wheels.

      LG Indonesia endeavors to bring new social activities that better the lives of people from all walks of life, collaborating with various influential partners across multiple industries along the way to make sure no community is left behind.
      Contributed by LG Indonesia
      # # #
      *

      link hidden, please login to view
    • By Jim Brown
      I have a LG OLED C8 TV with a Soundbar and when connected to Optical the Volume Control is normal with a Percentage 0% to 100% but when connecting to HDMI ARC port like the Soundbar suggest to be connected it just show + or -,  you don't have anyway of knowing what the volume is set  to.    I have tried two Soundbars a LG LAS551H that was connected via Optical and when connected to HDMI ARC it also does not show Volume Control.  I have  got a new Sonos Beam Gen 2 that is now connected to HDMI ARC port and sounds great but if I connect it to Optical it's much lower in volume but has the Volume indicator.   Please advice.    
      I would like to suggest three enhancement request: 1. to show Volume Percentage on the HDMI ARC port.  2. Optical and HDMI ARC have the same output and 3. the Sonos be added to the Device list under Soundbars. 
      Thank you, 
      Jim Brown 
    • By Nathan Azzi
      hello, 

      Got a new 86nano75SQA
       
      google assistance BUILT in works fine - and if i ask it to play a video it does.

      But external google assistance on my google devices, only turns the TV on and off, and opens apps..

      I cant for instance say "Play big bang theory on LG TV"

      Or it says "I also need to know which device to use. try saying that again, and include the device's name"

      Can anyone do this? is it it expected it works? works fine with the built in assistant, but not external ones
       
    • Grammarly Writing Support
    • By Jim Brown
      I have a LG OLED C8 TV with a Soundbar and when connected to Optical the Volume Control is normal with a Percentage 0% to 100% but when connecting to HDMI ARC port like the Soundbar suggest to be connected it just show + or -,  you don't have anyway of knowing what the volume is set  to.    I have tried two Soundbars a LG LAS551H that was connected via Optical and when connected to HDMI ARC it also does not show Volume Control.  I have  got a new Sonos Beam Gen 2 that is now connected to HDMI ARC port and sounds great but if I connect it to Optical it's much lower in volume but has the Volume indicator.   Please advice.    
      I would like to suggest three enhancement request: 1. to show Volume Percentage on the HDMI ARC port.  2. Optical and HDMI ARC have the same output and 3. the Sonos be added to the Device list under Soundbars. 
      Thank you, 
      Jim Brown 
       
  • Similar Tagged Content


×
×
  • Create New...