Filter
-
Content Type
-
Category
Mobile/Wearable
Visual Display
Digital Appliance
Platform
Mobile/Wearable
Visual Display
Digital Appliance
Platform
Filter
Connect Samsung Developer Conference
webtech square products and services using our new technology are displayed in the space by each field, and you can find details in the keynote speech and sessions. platform innovation home & health experience mobile & screen experience sustainability category platform innovation home & health experience mobile & screen experience sustainability smartthings matter/hub the most comprehensive iot platform for matter. the matter-compatible smartthings hub has been deeply integrated across samsung tvs, family hub refrigerators, smart monitors, and mobile chargers. working together, these hubs can form a multi-hub network for wider coverage and better reliability. setting up a new hub is also easier than ever with our new hub replacement tool. smartthings find & galaxy smarttag2 to keep your belongings and loved ones safe, you can use the newly updated smartthings find and smarttag2. with the new lost mode, someone who has found your misplaced key simply can tap their phone to the tag2 to contact you. you can even use tag2 to keep your pets healthy. attach a tag2 to your dog’s collar and keep track of their walking habits. smartthings home view smartthings home view provides an indoor map of your home, allows you to set the location of rooms and easily control your home devices at once, and displays environmental information such as room temperature and humidity, making your smart device experience easier and more intuitive. we also provide various ways to create indoor maps using ai technology. smartthings tv experience find out more about enhanced tv experiences with smartthings, including ring my phone, built-in smart home hub and home monitoring, and on a galaxy smart phone, the quick tv remote functionality. wwst partner find out about upcoming "works with smartthings" partner devices, including interesting gadgets, harman speakers, and presence sensors. calm onboarding calm onboarding is a stepping stone to a convenient life. it allows the user to complete device registration in the background by linking product purchase information, or by temporarily registering nearby devices and completing the final confirmation - the user just needs to have a previously registered device to connect to. smartthings ecosystem wall smartthings has been developed with support for the matter protocol and hca standards. it's an ever-evolving system, continually expanding user device options and enhancing usability. in close partnership with major home iot companies like philips hue / aeotec and other device-focused allies, we're delivering unique advantages to both partners and end-users. back to previous page vision ai pro cooking: bespoke view camera oven and camera wall oven the vision ai pro cooking camera oven optimizes cooking settings while monitoring food. if the oven is set to cook a recognized dish, it recommends a cooking mode, temperature, and time. the user can see how their meal is coming along in real time. during cooking, the oven detects cooking status, and afterwards, creates a time-lapse. screens everywhere at home we are building a screen ecosystem by expanding the tizen os to all of our home appliances. in this booth, we will display a family hub refrigerator with a 32-inch screen and a wall oven with a 7-inch screen, which you can use to experience various services such as multimedia, iot, and ai. samsung food: food your way samsung food offers a single platform to take you from "what’s for dinner?" to food on the table. discover recipe inspiration and storage, meal planning, nutritional information, automatic shopping lists, guided cooking, and sharing recipes and reviews with your friends. we put the world’s food knowledge at your fingertips! expand your health experience with samsung health making healthy habits easier with samsung health and new galaxy watch. samsung health can help you develop healthy habits by providing insights on what you’re doing well and what needs improvement, based on measurement data. leveraging galaxy watch's advanced health sensors tracking of raw or processed health sensor data from a galaxy watch is available through the samsung privileged health sdk. specialized features of the galaxy watch, like body composition and skin temperature measurements, can easily be utilized in wear os applications. the sdk maintains low watch battery consumption during continuous data tracking. empowering research & clinical experiences with samsung health stack samsung health stack is an open source project that provides end-to-end solutions such as application sdk, web portal, and backend systems for various use cases from medical research studies to clinician services using wearable devices. in this booth, you can explore all features of samsung health stack and check out some of its real-world use cases. back to previous page where gaming comes together gaming hub is an all-in-one platform where users can spend more time together and enjoy a variety of games through streaming, with over 3,000 titles from industry-leading partners. in addition, we'll be demonstrating to game developers how to utilize gamepads effectively with live demos, and have content for gamepad manufacturers interested in tv integration. deliver the best multi-device experience between samsung devices multi-control allows you to control two or more devices at the same time with a keyboard or mouse. you can access content such as news and netflix using your mouse, without needing the remote control, and then immediately continue using the mouse to work with your pc. introduction to iris (instant rendering & immediate sign-off) for hdr10+ gaming iris is a software tool that provides real-time, simulated rendering of hdr10+ gaming, hdr10, or sdr on multiple connected displays. this exhibition covers the overview of hdr10+ gaming, iris features, and how game developers can utilize it for their development and qc process. currently, iris works based on an nvidia api for the hdr10+ gaming communication protocols. feel the pleasure and value of being together with witty conversations chat together lets you talk remotely while watching your favorite tv programs. a click on a pop-up notification will start a chat together session. you can chat using either ai-recommended text and emojis, voice input, or mobile application and web browser. we are also developing other tv applications that provide togetherness experiences with a tv chat open api and platform. camera experience for tv any application that uses a camera can join camera experience. so far, we have a video call, workout, health care and gesture applications. you can easily create camera applications for tv by using our open api and platform. cheering together with emoticons and enjoyable events while watching sports cheer together lets you move beyond just watching tv, by providing experience that family and others can share while watching sports, through cheering emoticons and co-participating in events according to the cheering mood. we are planning to auto-generate emoticons with the user's voice to provide them with more ways to express enjoyment. remote test lab for tv remote test lab is a solution that makes it easy for tv application developers to use any real tvs they want. if you have an internet-connected pc, you can configure a remote development environment using a real tv. we support various models based on product and year, and no further effort is required to get access to specific models. all you need is your pc. smart edge blending - merge screens using two freestyle 2023 projectors. to use smart edge blending, two freestyle projectors are placed horizontally or vertically, and the edge blending function, which connects the images, is set up by taking a picture on the smartthings mobile application. samsung wallet: add to wallet add to samsung wallet is an e-wallet service that allows customers using samsung devices to add various digitized contents to samsung wallet. users can add their event tickets, coupons, boarding passes, and other types of data into samsung wallet using "add to samsung wallet" buttons in applications, web pages, e-mail, or social media messages by various content providers. samsung wallet: online payment check out faster in our payment apps. there's no need to enter your credit card number for in-app or online purchases—simply select samsung pay at checkout and authenticate the purchase with your fingerprint or pin. samsung wallet: student / company id add your student or company id to samsung wallet to make access simple. open doors, get into the library and events, pay for lunch, and more with just a tap of your phone or watch. experience the convenience of your student or company id working when your screen is off and your phone is locked, and even when your battery runs out. samsung wallet: mobile driver’s license / state id users will soon be able to add their driver’s license or state id to samsung wallet. initially, mobile driver’s licenses / state ids will work in a limited number of states at select tsa checkpoints to verify an id with just a tap. advanced professional video codec the advanced professional video (apv) codec is a new video codec for prosumers who want cinematic-quality video recording and post-production with smart phones. the apv codec provides perceptually lossless video quality and consumes 20% less storage compared to existing formats. back to previous page net zero home: build a sustainable home with smartthings energy smartthings energy connects everything from solar panels to your ev chargers to build a sustainable home. through partnership, smartthings energy lets you manage your energy production, storage and consumption and lowers your monthly energy bill and carbon footprint. open license for solar cell remote tech the solar cell remote is eco-friendly remote controller made out of recyclable materials that creates no battery waste, and incorporates improvements based on research into the potential environmental pollutants caused in remote control production. by opening the solar cell remote control technology to everyone, eco-friendly technology can be distributed wider. intelligent power saving intelligent power saving is power reduction based on human vision characteristics. a deep learning algorithm identifies regions of non-interest, which helps in reducing power consumption without letting the user notice any changes in the image. relumino mode relumino mode improves visual accessibility by making it easier to recognize objects. the edge thickness and colors in the image can be controlled depending on the user's vision level. the "together mode" supports a social tv watching experience, by displaying the original and relumino mode videos at the same time, allowing users to watch tv with their families. spoken subtitles people with low vision, or who cannot read the subtitles, will better understand foreign content such as movies if the tv gives them narration by reading the subtitles out loud. resource circulation gallery our goal at samsung is to apply recycled resin to 100% of the plastic components used in our products by 2050. we're using materials like fishing nets and recycled glass for samsung galaxy products, crafting tv covers from low-carbon resin captured from carbon emissions, and developing microplastic-filtering technology to reduce marine pollution. circular factory we’re highlighting samsung's processes for upcycling waste, showing how our research is integrated into products. we’re uncovering recyclable materials from waste products and are creating a roadmap for how that waste can be reintegrated into samsung products. back to previous page
Develop Smart Signage
docsystemcontrol api usage this document describes new usages of samsung product systemcontrol api for tizen 6 5 and higher, and differences with sssp b2bcontrol api related info samsung product systemcontrol api generals privilege http //developer samsung com/privilege/systemcontrol privilege level partner api usages webapis systemcontrol getversion this interface provides methods to get systemcontrol module version sssp api sample code var version = null; try { version = b2bapis b2bcontrol getversion ; } catch e { console log "[getversion] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== version { console log "[getversion] call syncfunction type " + version ; } samsung product api sample code var version = null; try { version = webapis systemcontrol getversion ; } catch e { console log "[getversion] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== version { console log "[getversion] call syncfunction type " + version ; } webapis systemcontrol capturescreen this interface provides a method to capture the screen saved path /opt/share/magicinfo/screencapture jpg sssp api sample code var onsuccess = function val { console log "[capturescreen] success " + val ; }; var onerror = function error { console log "[capturescreen] code " + error code + " error name " + error name + " message " + error message ; }; console log "[capturescreen] " ; b2bapis b2bcontrol capturescreen onsuccess, onerror ; samsung product api sample code try { webapis systemcontrol capturescreen ; } catch e { console log "[capturescreen] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol rebootdevice this interface provides a method to reboot the device power off the device and restart sssp api sample code var onsuccess = function val { console log "[rebootdevice] success " + val ; }; var onerror = function error { console log "[rebootdevice] code " + error code + " error name " + error name + " message " + error message ; }; console log "[rebootdevice] " ; b2bapis b2bcontrol rebootdevice onsuccess, onerror ; samsung product api sample code try { webapis systemcontrol rebootdevice ; } catch e { console log "[rebootdevice] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol getserialnumber this interface provides a method to get the device serial number sssp api sample code var serialnumber = null; try { serialnumber = b2bapis b2bcontrol getserialnumber ; } catch e { console log "[getserialnumber] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== serialnumber { console log "[getserialnumber] call syncfunction type " + serialnumber ; } samsung product api sample code var serialnumber = null; try { serialnumber = webapis systemcontrol getserialnumber ; } catch e { console log "[getserialnumber] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== serialnumber { console log "[getserialnumber] call syncfunction type " + serialnumber ; } webapis systemcontrol updatefirmware this interface provides a method to update firmware sssp api sample code var onsuccess = function val { console log "[updatefirmware] success " + val ; }; var onerror = function error { console log "[updatefirmware] code " + error code + " error name " + error name + " message " + error message ; }; var softwareid = "0"; var swufilename = "upgrade bem"; var swversion = "t-hkmlakuc 0227 20"; var swurl = "http //ip/t-hkmlakuc_0227_20/image/upgrade bem"; var swtotalbytes = 1007396825; b2bapis b2bcontrol updatefirmware softwareid, swufilename, swversion, swurl, swtotalbytes, onsuccess, onerror ; samsung product api sample code var softwareid = "0"; var swufilename = "upgrade bem"; var swversion = "t-hkmlakuc 0227 20"; var swurl = "http //ip/t-hkmlakuc_0227_20/image/upgrade bem";; var swtotalbytes = 1007396825; webapis systemcontrol updatefirmware softwareid, swufilename, swversion, swurl, swtotalbytes ; webapis productinfo getfirmware this interface provides methods to retrieve firmware version sssp api sample code var firmwareversion = null; try { firmwareversion = b2bapis b2bcontrol getfirmwareversion ; } catch e { console log "[getfirmwareversion] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== firmwareversion { console log "[getfirmwareversion] call syncfunction type " + firmwareversion ; } samsung product api sample code try { var value = webapis productinfo getfirmware ; console log " firmware value = " + value ; } catch error { console log " error code = " + error code ; } webapis systemcontrol setupdatefirmwarelistener this method adds the asynchronous onchange callback for the firmware update progress to a module sssp api sample code var onchange = function data { console log "[updatefirmwareprogresschangedcallback] progress " + data + " changed" ; }; try { b2bapis b2bcontrol setupdatefirmwareprogresschangelistener onchange ; } catch e { console log "setupdatefirmwareprogresschangelistener exception [" + e code + "] name " + e name + " message " + e message ; } samsung product api sample code var onchange = function data { console log "[updatefirmwareprogresschangedcallback] progress " + data + " changed" ; }; try { webapis systemcontrol setupdatefirmwarelistener onchange ; } catch e { console log "setupdatefirmwarelistener exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol unsetupdatefirmwarelistener this method removes the asynchronous onchange callback for the firmware update progress from a module sssp api sample code try { console log "begin unsetupdatefirmwareprogresschangelistener" ; b2bapis b2bcontrol unsetupdatefirmwareprogresschangelistener ; } catch e { console log "unsetupdatefirmwareprogresschangelistener exception [" + e code + "] name " + e name + " message " + e message ; } samsung product api sample code try { console log "begin unsetupdatefirmwarelistener" ; webapis systemcontrol unsetupdatefirmwarelistener ; } catch e { console log "unsetupdatefirmwarelistener exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol setscreenlampschedule this interface provides a method to set the screen lamp schedule, which contains values for time and lamp level value sssp api sample code var onsuccess = function val { console log "[setlampschedule] success " + val ; }; var onerror = function error { console log "[setlampschedule] code " + error code + " error name " + error name + " message " + error message ; }; console log "[setlampschedule] " ; b2bapis b2bcontrol setlampschedule "on","10 30",100,"20 30",50, onsuccess, onerror ; samsung product api sample code var info = { "use" "on", "firsttime" "08 55", "level1" 30, "secondtime" "16 50", "level2" 80 }; try { webapis systemcontrol setscreenlampschedule info ; } catch e { console log "[setscreenlampschedule] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol getscreenlampschedule this interface provides a method to get screen lamp schedule information sssp api sample code var lampschedule = null; try { lampschedule = b2bapis b2bcontrol getlampschedule ; } catch e { console log "[getlampschedule] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== lampschedule { console log "[getlampschedule] call syncfunction type " + lampschedule ; } samsung product api sample code var screenlampschedule = null; try { screenlampschedule = webapis systemcontrol getscreenlampschedule ; } catch e { console log "[getscreenlampschedule] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== screenlampschedule { console log "[getscreenlampschedule] call syncfunction type " + screenlampschedule ; } webapis systemcontrol setpanelmute this interface provides a method to set the panel mute state of a device sssp api sample code var onsuccess = function val { console log "[setpanelmute] success " + val ; }; var onerror = function error { console log "[setpanelmute] code " + error code + " error name " + error name + " message " + error message ; }; b2bapis b2bcontrol setpanelmute "on", onsuccess, onerror ; samsung product api sample code try { webapis systemcontrol setpanelmute "on" ; } catch e { console log "[setpanelmute] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol getpanelmute this interface provides a method to get the current panel mute state of a device sssp api sample code var panelmuteonoff = null; try { panelmuteonoff = b2bapis b2bcontrol getpanelmutestatus ; } catch e { console log "[getpanelmutestatus] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== panelmuteonoff { console log "[getpanelmutestatus] call syncfunction type " + panelmuteonoff ; } samsung product api sample code var panelmuteonoff = null; try { panelmuteonoff = webapis systemcontrol getpanelmute ; } catch e { console log "[getpanelmute] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== panelmuteonoff { console log "[getpanelmute] call syncfunction type " + panelmuteonoff ; } webapis systemcontrol setsafetylock this interface provides a method to set the safety lock status of a device when the safety lock is set to on, a pin number input window appears when an input signal is received by the device sssp api sample code var onsuccess = function val { console log "[setsafetylock] success " + val ; }; var onerror = function error { console log "[setsafetylock] code " + error code + " error name " + error name + " message " + error message ; }; b2bapis b2bcontrol setsafetylock "on", onsuccess, onerror ; samsung product api sample code try { webapis systemcontrol setsafetylock "on" ; } catch e { console log "[setsafetylock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol getsafetylock this interface provides a method to get the current safety lock status of a device sssp api sample code var safetylock = null; try { safetylock = b2bapis b2bcontrol getsafetylock ; } catch e { console log "[getsafetylock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== safetylock { console log "[getsafetylock] call syncfunction type " + safetylock ; } samsung product api sample code var safetylock = null; try { safetylock = webapis systemcontrol getsafetylock ; } catch e { console log "[getsafetylock] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== safetylock { console log "[getsafetylock] call syncfunction type " + safetylock ; } webapis systemcontrol getonscreenmenuorientation this interface provides a method to get the current menu orientation of a device sssp api sample code var menuorientation = null; try { menuorientation = b2bapis b2bcontrol getmenuorientation ; } catch e { console log "[getmenuorientation] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== menuorientation { console log "[getmenuorientation] call syncfunction type " + menuorientation ; } samsung product api sample code var onscreenmenuorientation = null; try { onscreenmenuorientation = webapis systemcontrol getonscreenmenuorientation ; } catch e { console log "[getonscreenmenuorientation] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== onscreenmenuorientation { console log "[getonscreenmenuorientation] call syncfunction type " + onscreenmenuorientation ; } webapis systemcontrol getsourceorientation this interface provides a method to get the current source orientation of the device sssp api sample code var onsuccess = function val { console log "[getsourceorientation] success " + val ; }; var onerror = function error { console log "[getsourceorientation] code " + error code + " error name " + error name + " message " + error message ; }; b2bapis b2bcontrol getsourceorientation "hdmi1" ; samsung product api sample code var result = null; try { result = webapis systemcontrol getsourceorientation ; } catch e { console log "[getsourceorientation] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } console log "[getsourceorientation] call syncfunction type " + result ; webapis systemcontrol setpcconnection this interface provides a method to set the pcconnection value of a device sssp api sample code var onsuccess = function val { console log "[setpcconnection] success " + val ; }; var onerror = function error { console log "[setpcconnection] code " + error code + " error name " + error name + " message " + error message ; }; b2bapis b2bcontrol setpcconnection "rj45", onsuccess, onerror ; samsung product api sample code try { webapis systemcontrol setpcconnection "rj45" ; } catch e { console log "[setpcconnection] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol getpcconnection this interface provides a method to get the pcconnection value of a device sssp api sample code var pcconnection = null; try { pcconnection = b2bapis b2bcontrol getpcconnection ; } catch e { console log "[getpcconnection] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== pcconnection { console log "[getpcconnection] call syncfunction type " + pcconnection ; } samsung product api sample code var pcconnection = null; try { pcconnection = webapis systemcontrol getpcconnection ; } catch e { console log "[getpcconnection] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== pcconnection { console log "[getpcconnection] call syncfunction type " + pcconnection ; } webapis systemcontrol setmessagedisplay this interface provides a method to enable or disable osd on screen display messages on the device this controls the display of system messages on the device screen the following messages are affected by this setting source info, no signal message, mdc message, download status message sssp api sample code var onsuccess = function val { console log "[setosdmute] success " + val ; }; var onerror = function error { console log "[setosdmute] code " + error code + " error name " + error name + " message " + error message ; }; b2bapis b2bcontrol setosdmute "on", onsuccess, onerror ; samsung product api sample code try { webapis systemcontrol setmessagedisplay "on" ; } catch e { console log "[setmessagedisplay] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } webapis systemcontrol getmessagedisplay this interface provides a method to get the osd message display status of the device the following messages are affected by this setting source info, no signal message, mdc message, download status message sssp api sample code var osdmute = null; try { osdmute = b2bapis b2bcontrol getosdmute ; } catch e { console log "[getosdmute] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== osdmute { console log "[getosdmute] call syncfunction type " + osdmute ; } samsung product api sample code var messagedisplay = null; try { messagedisplay = webapis systemcontrol getmessagedisplay ; } catch e { console log "[getmessagedisplay] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== messagedisplay { console log "[getmessagedisplay] call syncfunction type " + messagedisplay ; }
Connect Samsung Developer Conference
websessions dive into the future of connected customer experiences through tech sessions by developers offering further insight into the innovations introduced in the keynote filter filter filter main category all topics all reset apply there are no results. a tv-based lifestyle contents platform, designed to enrich users' everyday life tech session enterprise & ecosystem, smart tv, ai, contents&service this session introduces how seamlessly to integrate into lifestyle contents platforms, samsung daily+ and daily board. automotive monetization made simple: cross-platform opportunities tech session enterprise & ecosystem, monetization, android, platform explore the untapped potential of the automotive market for android developers. learn how to adapt your existing mobile and tablet apps for the automotive environment, leveraging the unique opportunities for monetization and broader market reach. bixby upgrades for next-gen smart home appliances tech session device ai, ai, smart appliances, iot/connectivity this session introduces how the updated bixby will make our goal of 'device control' even more convenient. with this update, bixby is able to communicate with you more naturally and control your appliances seamlessly. building digital health ecosystems with samsung health sdk suite tech session enterprise & ecosystem, health, platform, mobile samsung health is advancing its care@home vision with the samsung health sdk suite, introducing the new data sdk and updating the sensor sdk. cochl: creating ears for ai open stage advanced tech, ai, service & content, smart appliances cochl provides a sound ai solution, featuring cutting-edge technology for applications in smart homes, manufacturing and security. data-driven ai strategies for smart home appliances tech session device ai, ai, smart appliances, iot/connectivity introduce several ai features deployed in samsung's appliances and ai strategies based on data-driven approaches. developer center/test suite open stage smartthings, iot/connectivity, platform, productivity learn about smartthings latest updates for developers and how they make it easier than ever to obtain wwst certification. door locks on smartthings x samsung wallet tech session smartthings, iot/connectivity, platform, smart appliances smart door lock platform to provide personalization experience, advanced authentication, and various door lock connectivity support ecosystem for advanced professional video codec tech session advanced tech, service & content, mobile, open sources growing the ecosystem of advanced professional video, a codec for easy capture without losing quality via standards + open-source software. enhancing smartthings connectivity tech session smartthings, iot/connectivity, open sources, mobile a case study on developing a solution to ensure stable connectivity for customers using smartthings, enabling a seamless iot experience immersive audio experience with google: an introductory session tech session advanced tech, service & content, open sources, smart tv discover the future of immersive audio enabled by aomedia's next-generation 3d audio technology. islet: on-device confidential computing for secure and privacy-first ai tech session advanced tech, security & privacy, open sources, platform introducing islet, an open-source project redefining secure computing for user devices and ensuring the security of on-device ai. knox ai service for business tech session enterprise & ecosystem, enterprise, platform, ai this session introduces the state of galaxy ai and knox ai service for business. music sync partner collaboration tech session smartthings, iot/connectivity, platform, smart appliances the music sync service within smartthings, the updates to the music sync feature and how to integrate smartthings music sync. omnious.ai: vella, a new virtual try-on generative ai model open stage enterprise & ecosystem, ai, service & content omnious.ai is a research-focused company leveraging ai to transform the customer experience and augment human creativity. on-device translation with ai tech session advanced tech, ai, productivity we introduce samsung's on-device machine translation models and our translation solution for services. present and future of samsung tv security with knox tech session responsible ai, security & privacy, smart tv, platform this session will introduce the knox security principles and explain our future preparations to enhance knox security. samsung vxt: cms platform with pirs(pre-integrated repeatable solution) open stage enterprise & ecosystem, platform, contents&service, enterprise samsung vxt actively seeks partnerships with ai experts via the pirs app, providing sdks for seamless integration. samsung wallet: expanding the ecosystem with partners tech session enterprise & ecosystem, service & content, platform, android introducing new features for "add to samsung wallet", a revamped partner portal with mdl sdk, and the new merchant notification system. smartthings find program tech session smartthings, iot/connectivity, open sources, mobile introducing the status and new services of smartthings find, what's new in our partnership program, and node management system(nms). smartthings innovation challenge awards open stage smartthings smartthings innovation challenge sound recognition applications tech session device ai, ai, smart appliances, mobile advancements and applications of sound recognition technology in various smart devices by samsung. the convergence of ai and iot: transforming our daily lives open stage smartthings, ai, iot/connectivity discover how ai and iot change our daily lives, making tech more intuitive and personalized, and reshaping our relationship with devices. unlocking the future of ai integration tech session device ai, ai, tizen, smart tv samsung will make screen highly interoperable with ai by empowering tizen sdk. now, we are unlocking ai cast, ai actions and recognition sdk. wallpaper translation using generative ai tech session advanced tech, ai time and weather translate your mobile device wallpaper using on-device generative ai for your daily photos. what's new in samsung health research stack? tech session advanced tech, health, open sources, platform introducing the newly rebranded samsung health research stack version 2.0, enhancing connectivity with samsung devices and services. what's new in tizen? tech session advanced tech, tizen, platform, open sources introducing the exciting features coming up in tizen 9.0 and deep diving into the latest updates. back to previous page
Develop Smart TV
dochardware resource management this topic describes the hardware resource requirements for samsung tv applications and the available tools that help you develop applications that use hw resources efficiently principles samsung tv resources, including memory, are shared by the operating system and multiple applications efficient resource management helps maintain a stable and responsive tv experience when users launch and use applications, and switch between them design each application feature to allocate resources only when needed, and release them as soon as they are no longer required test your application on target tv devices and monitor resource usage throughout development, especially when implementing media playback, a graphic-intensive ui, or large content lists memory usage requirements ddr all tv applications must comply with the specific memory usage requirements defined for the product models on which the application can be installed before submitting your application for release, ensure that your application does not exceed the applicable memory usage limits applications that exceed the applicable memory usage limits can be subject to optimization measures, as necessary, to help maintain platform stability the application's memory usage is calculated as the combined total of the following memory components pss proportional set size amount of application memory currently resident in ram any memory shared with other processes is divided proportionally among the processes that share it swap amount of application memory that has been compressed and moved to another ram-backed storage area to free up ram this value represents the memory usage before compression gpu memory memory used by the gpu to render the application’s ui, textures, and display output gem memory graphics buffer memory used for display output and graphic processing the following table defines the limits for the application's combined total pss, swap, gpu memory, and gem memory usage on specific tv models product model maximum memory usage uhd model 380 mb fhd model 300 mb table 1 drr memory usage limits notethe above memory limits apply regardless of the decoding scenario your application uses if, instead of a single decoding scenario, your application supports additional features that require decoding with extra hardware memory, such as dual decoding or playback speed adjustment which allows users to play content faster or slower than the default 1× speed , this additional hardware memory consumption is included in the application's total memory usage therefore, your application must remain within the applicable memory limit even when these features are in use memory usage requirements flash tv applications must manage flash memory usage according to the storage usage targets defined in this guide efficient flash memory management helps maintain sufficient storage for application updates, user data, and other tv services flash memory usage is divided into the following categories install memory flash storage used when the application is installed, including the application binary and bundled resources data memory additional flash storage used while the application is running, including resources and data downloaded from a server the following table defines the recommended flash memory usage targets for tv applications memory type recommended maximum usage install memory 5 mb data memory 20 mb table 2 flash memory usage limits currently, the above targets are not mandatory certification requirements however, applications are strongly encouraged to remain within the targets if an application exceeds a target, optimization measures can be taken, as necessary, to help maintain platform stability api for memory management the pms prometheus monitoring system api enables applications to check their current memory usage, applicable memory limit, and remaining available memory at runtime use the api during development and testing to identify memory growth early and verify that your application remains within the applicable limits the following table lists the methods available in the memory management api method description use case getversion returns the version of the pms api check whether the required api version the version that supports the methods you want to use is supported on the target device where you are running the application getwebappmemoryusage procname returns the current total memory usage of the specified web application the total is calculated from the pss, swap, gpu memory, and gem memory monitor the application's memory usage at runtime getwebappmemorylimit procname returns the maximum memory limit allowed for the specified web application check the applicable memory limit before or during resource-intensive operations setmemoryusagecallback callback, procname registers a callback that fires when the web application exceeds its memory threshold the callback occurs only once every 20 seconds at most detect memory pressure and determine whether the application is approaching its memory limit unsetmemoryusagecallback unregisters the previously set memory usage callback and stops polling unregister the callback when the application is terminated or you no longer need the polling table 3 memory management methods check the api version before using the other methods, especially when supporting multiple tv model years or platform versions use the other methods at meaningful points in the application lifecycle, such as after initial loading, while navigating content-heavy screens, before and after playback, and when the application returns from the background noteavoid calling the api excessively in a tight loop instead, use it with care to validate memory-intensive flows and investigate unexpected memory growth memory monitoring web inspector is a monitoring tool that helps you investigate your web application's memory behavior during development use web inspector to investigate and optimize your web application's memory behavior on the profiles tab, you can examine javascript heap and memory allocation profiles and identify potential sources of unnecessary memory consumption, such as unreleased javascript objects, excessive dom nodes, and retained resources web inspector provides web runtime analysis only and does not provide a complete view of the application's total system memory usage measurements can differ between the tv emulator and an actual samsung tv in addition, web inspector cannot capture memory usage during application initialization because the application launches before web inspector starts to verify the application's total memory usage and compliance with the memory usage requirements, test on a target tv device and use the memory management api memory optimization guide memory optimization is an ongoing activity during application development, not a separate task to perform only after a memory issue occurs when designing, implementing, and testing your application, follow the web app html5 memory optimization guide it provides practical recommendations based on common memory issues found in tv web applications, including patterns identified through application quality support it covers image and graphics memory, dom and list virtualization, memory leak prevention, javascript and garbage collection, media buffering, data and cache handling, and canvas, webgl, web audio, and web worker usage use the guide to identify unnecessary resource retention, reduce peak memory usage, and improve long-running application's stability the guide is provided as a best-practice reference and must be used together with the applicable memory usage requirements and the memory management api
Develop Samsung Wallet
docloyalty 'loyalty' cards support enrolling loyalty cards also known as membership links urls to get points in real time can be provided in the partners portal if a partner needs to integrate communication between samsung wallet server and the partner’s server to support the feature, the partner has to set the links in the partners portal wallet card type wallet card type wallet card subtype loyalty others others wallet card data fields attributes type value description attributes {fields} titlestring 32 required main title e g ,samsung loyalty card eventidstring 36 optional if the event is cancelled, use this identifier to find and process all associated loyalty cards groupingidstring 36 optional identifier used to group related cards orderidstring 36 optional a unique identifier for an order subtitle1string 32 optional auxiliary field that displays supporting information logoimagestring 256 optional logo image url to be displayed in the card item the file size should not exceed 256 kb logoimage darkurlstring 256 optional logo image url in dark mode this is a flat key name, not a nested object path the file size should not exceed 256 kb logoimage lighturlstring 256 optional logo image url in light mode this is a flat key name, not a nested object path the file size should not exceed 256 kb providernamestring 32 required loyalty card provider name preventcaptureynstring 1 optional flag whether this wallet card view prevents screen captureeither 'y' or 'n'* default 'n' startdatelong 13 optional start date display start date epoch timestamp in milliseconds enddatelong 13 optional end date display end date epoch timestamp in milliseconds locationsstring 1024 optional list of locations where the card can be used * see locations noticedescstring 5000 optional text of notice * html supported extendedfieldsstring 1024 optional a flexible list of key-value pairs * see extended fields csinfostring 4096 optional provider customer service information provide the value as an escaped json string * allowed items call, email, website, facebook, pinterest, x, or instagram * see the example below applinklogostring 256 required app link image url the file size should not exceed 256 kb applinknamestring 32 required app link name applinkdatastring 256 required information about the partner app link bgimagestring 256 optional background image for a card art the recommended size for image resources is 888 x 555 px bgcolorstring 8 optional colour of the card art e g , #00ffff fontcolorstring 8 optional colour of the text on the card art acceptable values dark, light blinkcolorstring 8 optional colour of the blinking effect which indicates that a card cannot be captured in the indicator area e g , #00ffff barcode valuestring 4096 optional actual data that is delivered when the barcode/qr code is scanned barcode serialtypestring 32 optional presentation type e g , serialnumber, barcode * see barcode & qr code presentation barcode ptformatstring 32 optional presentation format e g , barcode, qrcode, serial * see barcode & qr code presentation barcode ptsubformatstring 32 optional presentation sub-format e g , code_128, qr_code *see barcode & qr code presentation barcode errorcorrectionlevelstring 4 optional amount of redundancy or error correction data included in the code there are four error correction levels available in qr codes * code options l/m/q/h merchantidstring 36 optional merchant identifier merchantnamestring 32 optional merchant name to display amountstring 32 optional total number of points or initial balance displayed as received use a one-letter currency symbol where applicable e g , $ 1,000, 1,000p balancestring 32 optional available points or remaining balance this is going to be shown as received it is recommended to use a one letter currency symbol e g , $ 1,000, 1,000p summaryurlstring 256 optional web page url that shows details, such as balance or transaction history levelstring 16 optional it represents the name or title of the loyalty level e g , bronze, silver, gold, etc userstring 64 optional name of person who holds the loyalty card idphotostring 20k optional holder’s photo image data encoded base64 idphoto formatstring 32 optional image file formate g , jpeg, png* unsupported image formats may exist idphoto statusstring 16 optional status of the data allowed value unchanged selectoridstring 8 optional when samsung app-resident nfc is supported, it refers to the identifier issued during wallet card settings when using the card's nfc function, the terminal can transmit selectorid to the user's device upon receiving selectorid, the device can identify the benefit service and perform additional actions accordingly * refer to access integration guide samsung approval required contact technical support provision datastring 512 optional elements to complete provisioning * refer to access integration guide samsung approval required contact technical support provision intervalstring 16 optional update interval for dynamic provisioning, in milliseconds * refer to access integration guide samsung approval required contact technical support example { "card" { "type" "loyalty", "subtype" "others", "data" [{ "refid" "b3fdc982-28c9-47a3-b02f-d484779698a8", "createdat" 1672574400000, "updatedat" 1672574400000, "language" "en", "attributes" { "title" "samsung loyalty card", "eventid" "event-001", "logoimage" "https //gpp walletsvc samsung com/mcs/images/contents/wallet_intro_logo png", "logoimage darkurl" "https //gpp walletsvc samsung com/mcs/images/contents/wallet_intro_logo png", "providername" "samsung loyalty card provider", "noticedesc" "<ul><li>loyalty card test</li></ul>", "csinfo" "{\"call\" \"0000-0000\",\"email\" \"samsungwallet@samsungwallet com\",\"website\" \"https //www samsungwallet com/cs/\",\"instagram\" \"https //www instagram com/samsungwallet\",\"pinterest\" \"https //www pinterest com/samsungwallet\",\"x\" \"https //www twitter com/samsungwallet\",\"facebook\" \"https //www facebook com/samsungwallet\" }", "applinklogo" "https //play-lh googleusercontent com/znfa1roz7hpv9j-jiacbjmjudl2x-fnuwte0oyvbbcwvf5vpzoqqikbxgk7d-aptvag=w240-h480-rw", "applinkname" "loyalty card link", "applinkdata" "https //www samsung com/", "bgcolor" "#0a1a4f", "barcode value" "cs16138353212584806754fg1802", "barcode serialtype" "qrcode", "barcode ptformat" "qrcodeserial", "barcode ptsubformat" "qr_code", "amount" "1,000p", "balance" "500p" } } ] } }
Connect Samsung Developer Conference
webtech sessions dive into the future of connected customer experiences through tech sessions by developers offering further insight into the innovations introduced in the keynote filter filter filter all reset apply there are no results. sessions contents & service, open innovation 8k visual quality and ecosystem in this session, we will present how the genuine 8k contents correctly displayed on 8k display devices could deliver our customers an immersive picture quality experience. we will start with a summary of the previous studies about user perceptions regarding the 8k visual quality. we then will explain why the full-frequency 8k contents are superior to the lower resolution in producing fine details on the image. we will also discuss some technical challenges we face toward adopting and utilizing 8k contents in a real-world environment and describe how we can overcome these hurdles. specifically, we will discuss technologies such as super-resolution and new image sensors to overcome the full-frequency barrier of 8k content. last, we will introduce the 8k association (8ka), a non-profit organization composed of key technology companies in the consumer and professional 8k ecosystem, and briefly mention 8ka's ongoing effects on the research, standardization, and promotion of 8k visual quality. sessions contents & service, developer program, mobile add samsung pay as your payment method in this session, we will share learnings from our experience developing the samsung pay mobile payment service, revealing insights that can be applied to your own platforms. we will also take a look at the samsung pay development kit and how you can use this for your own service. sessions game, ar, mobile ar emoji: your avatar, your experience the ar emoji feature on samsung devices enables users to create a 3d avatar model that can be used in other applications. similar to avatars currently available in games or in the metaverse, our ar emojis are a chance for users to express themselves, their style and their personality, digitally. but this is only the beginning. in this session, we’ll explore the future of ar emojis and how the ar emoji sdk is opening more opportunities for developers to collaborate with samsung to bring to life new services featuring these avatars and optimize them for the metaverse though our collaboration with unity. sessions ai, iot, smart appliances bixby 2022 what’s new what’s new with bixby in 2022? in this session, you will hear about some of the exciting improvements to the nlu and on-device bixby as well as updates to the bixby developer studio, which introduces a brand new javascript runtime that provides a modern, secure, high-performance environment. we will also take a closer look at the brand new bixby home studio, which allows smart device developers to customize and optimize voice control of smart devices, including allowing a single command to intelligently control multiple smart home devices. sessions contents & service, game creating spectacular galaxy game audio experiences with dolby atmos galaxy smartphones and tablets can produce spectacular game audio with dolby atmos. discover how you can create deeper emotional connections with players, keep them playing for longer, and earn their loyalty by unleashing the full power of samsung galaxy mobile game audio. in this session you will hear from dolby’s partner audiokinetic who will discuss how developers can make dolby atmos games, including a walkthrough of how to use dolby atmos plug-ins in audiokinetic's wwise audio middleware. moong labs – creators of epic cricket one, of india's most popular sports games – will also share how dolby atmos benefitted their game and you will find out how dolby supports game developers and other activities on our website. sessions health, wearable expand health experiences with galaxy watch the galaxy watch’s powerful bioactive sensor, together with the wear os powered by samsung, is transforming mobile health experiences. and now, this technology is even more powerful thanks to the samsung privileged health sdk. find out how the samsung privileged health sdk is allowing developers to retrieve raw or analyzed sensor data for their applications, including bia, ecg, blood oxygen level or sweat loss, and help users’ to accurately monitor their health stats. sessions web flexible and private web experience on samsung internet in this session, you will learn how to enhance and optimize your web experience for foldable devices using device posture api and viewport segment media query. we'll also take a closer look at how samsung internet protects users’ privacy online. sessions mobile, enterprise, developer program google and samsung strengthen enterprise ecosystem together samsung’s global mobile b2b team is working closely with the android enterprise team to build a galaxy ecosystem of partners who are bringing innovation into workplaces. discover how partner solutions create unique experiences on samsung devices and how we plan to work together to help future partners step into the samsung android ecosystem for enterprises and smbs. sessions contents & service, developer program, enterprise hdr10+/salt and automatic hdr video creations for productions hdr10+ is an essential technology for premium hdr viewing experience and it is widely reach to consumer displays including mobile devices. in order to provide hdr content services, it requires changing service provider's infra structure or workflows and video processing technology from sdr to hdr with a lot of engineering efforts. then, hdr10+/salt solutions and partnership program from samsung is designed to build an extremely cost effective automatic solution up for content creators, post production houses and ott service providers even including game developers. the solution package is designed with various standalone applications, reference apps, sdks on various oses and partnership programs to help 3rd parties for creation of hdr contents. hdr10+/salt partnership program provides full compatibility to hdr10+ llc certification program and major studios, ott service providers and tool makers are already partners of the program and samsung provides them the best hdr content quality. sessions developer program, open innovation, health healthcare research hub our open source project provides end-to-end solutions such as sdk, platform, and portal for various use cases from medical research studies to clinician services using wearable devices. medical research does not have to stay complicated. anyone can easily build and customize their own research studies or clinician services using this open source. recently, as the accuracy of sensors installed on wearable devices has improved, interest in healthcare research using wearable health data is increasing. however, it takes a lot of time for researchers to develop research applications and server infrastructure for storing and analyzing data from scratch. sr is developing android sdk and data platform solutions that support healthcare research using health data from our wearable devices (watch 4 and later versions) and provide them as open source in order to solve the pain points of these researchers and establish a digital health care research ecosystem centered on our wearable devices. sessions iot, monetization, smart appliances home connectivity alliance introduction of home connectivity alliance and how appliance manufactures can enable interoperability across brands. hear how hca interoperability can benefit consumers and partners including b2b (home builders, mfu, etc). join the hca and become a leader in innovation within the connected iot ecosystem. sessions ai, ar immersive audio we will demonstrate an audio system with dramatically improved immersive 3d audio experience. hardware will be similar to samsung’s critically acclaimed hw-q990b soundbar, but will include several new technologies that will be found in future samsung products. these technologies automatically correct for room acoustics and the location of the listeners and loudspeakers. visitors will compare the sound of the system before and after the system’s unique automated calibration process. listeners will enjoy improved spatial and timbral performance in stereo, surround and immersive audio formats with both music and cinematic content. sessions security & privacy introducing blockchain wallet with knox vault in this session, we introduce blockchain wallet for samsung smart tv. blockchain wallet allows our smart tv users to manage their blockchain accounts and transfer their cryptocurrency to another blockchain account. it ensures to retain a key for blockchain transactions in a secure way. dapp developers can build their tv dapp with blockchain wallet for blockchain functions such as blockchain connection and transaction signing. knox vault is an enhanced hardware-based security solution to protect sensitive data such as cryptographic keys, passwords and personal data. knox vault provides strong security guarantees against hardware attacks such as physical attack, side-channel attack and fault attack. as a core component of the knox security platform, knox vault is an isolated, tamper-proof, secure subsystem with its own secure processor and memory. sessions developer program, enterprise, android introducing samsung galaxy camera ecosystem discover how advanced camera technologies, based on samsung’s leading hardware and software, can enable developers to create more powerful camera experiences for their users. we will take a look at some of the incredible partnerships samsung has already formed with numerous app developers and reveal how these collaborations enriched users’ camera experiences. sessions mobile, android, productivity intuitive multitasking experience based upon android 12l join us to see how samsung continues to enhance the large screen user experience further with fast app switching and intuitive multitasking capabilities. to maximize the galaxy foldable experience, we're expanding flex mode even further with more apps and partners as well as google's ongoing collaborative effort in android 12l. sessions iot, mobile, uwb joint efforts on standardization toward open ecosystem of uwb services the presentation will introduce samsung's joint efforts with industry partners on the uwb tech/service standardization, which is essential for creating an interoperable open ecosystem of uwb products and services. especially, it will introduce activities at fira consortium, which was established by samsung jointly with industry leaders to provide interoperability specifications as well as certification programs. it may also include target uwb services and relevant standardization status & plan. sessions ar, game, tizen journey to immersive interactive exp in big screen with xr and avatar fw xr framework webapis enable developers to build xr applications on the tizen platform. we will go over features of the webapis, share some demos, and provide information on how to get started. additionally we will show you a sample code of how to capture and handle user's gestures and full body movement. avatar framework for tizen is a unified solution providing high level apis that allow samsung developers to easily include the 3d avatar models and features in their samsung tv applications. we will go over all the cool features and options of our framework in this video. sessions connectivity, android, mobile le audio: the future of wireless sound introducing le audio: a new standard for bluetooth technology on galaxy devices. le audio will enhance the performance of classic bluetooth audio and introduce isochronous communication, creating whole new wireless audio experience on galaxy devices. in this session, we will introduce the technical features of le audio, what it means for the galaxy ux and how you could enhance wireless audio experience of your app with le audio. sessions design, ui/ux one ui design principles in partnership one ui creates a unified experience across our galaxy devices, from phones and tablets to watches and galaxy books. in creating and refining one ui, we've followed four key principles: simplicity, effortlessness, consistency, and authenticity. with one ui, we've also made a commitment to openness, which means some of the best things in one ui come from partnerships. in this session, we'll talk about some of those partnerships and how we aligned them with our four design principles to get great results. sessions ui/ux, design, android one ui: customer centric design one ui starts with a true understanding what our customers want. hear more about what samsung have learned from listening to extensive customer feedback and usage data, and how we have adapted our designs in response. we'll take a look at some real-life examples of how the ux design of the calendar, settings and samsung health app has evolved over time to better meet customer needs. sessions enterprise, data, security & privacy our journey to responsibly handling data at samsung, we place personal data protection as one of our top priorities. learn how we responsibly handle personal data in our applications and platforms. we'll share with you our journey in protecting personal data. we'll talk about what it means to responsibly govern and access data in samsung's enterprise environment. we'll cover specifics on how to classify & protect data as a whole. pick up insights on privacy technologies and design patterns we apply in our data intensive applications today. sessions developer program, tizen, ui/ux prism: the new ux development tool and process in today’s environment of rapid and unpredictable transformation, establishing a creative and increasingly collaborative tech culture is one of the most challenging requirements. in this session, we would like to introduce a new method to revolutionize the tizen platform-based app development process. a new development process named prism automates most of the inefficient overheads from design to implementation of app ui, innovatively improving app development productivity. we will introduce prism-based development process and deliver this innovative app development culture to developers through the sessions. sessions developer program, smart appliances, tizen remote test lab: what’s new in tv development environment the current tizen tv development environment, represented by emulator and tv, is a very limited support method for developers. depending on the version of emulator, the latest features currently supported by the tv may not be available, and various models of physical tvs may be required to verify actual operation. rtl tv tries to overcome the limitations of the current development environment. sessions contents & service, monetization, data samsung tv plus: the advanced ad-tech and partnerships that fund free tv samsung’s free ad-supported tv (fast) service “tv plus” has been a breakout success. although it looks and feels like traditional tv, it is anything but! behind the scenes of this slick tv & mobile experience is high-performance technology, vast amounts of data & algorithms, and a thriving partner ecosystem. join this session to learn more about the mind-boggling world of advertising technology, how it works, and how multiple companies come together to provide free tv to millions of consumers worldwide. sessions android, contents & service samsung wallet, it's convenient, personal and safe as the growth of digital wallets skyrockets, samsung recently announced samsung wallet – a new platform bringing almost all of the cards you’d typically find in a physical wallet, as well as important documents, into one easy-to-use and secure mobile application. as samsung wallet rapidly expands its content set, find out more about the future of digital wallets and how open api’s can allow developers to build integrations for this service. sessions iot, security & privacy smartthings edge: the next level experience discover how samsung is transitioning the smartthings-published groovy dths to edge drivers while maintaining a seamless experience for our users. we’ll walk through the process of onboarding edge-based devices and how to set up an automation with an edge device that runs locally. sessions iot, monetization, smart appliances smartthings energy service introduction of smartthings energy service and how partners (energy companies, smart device mfgs, etc) can integrate to provide a seamless energy management service for their consumers leveraging samsung's smartthings energy ecosystem. sessions iot, contents & service, open innovation smartthings find: find alongside 200+ million users smartthings find is samsung’s fastest growing service, powered by more than 200 million galaxy users. discover some of the new features and functions added over the past year and learn how partners can leverage the service to innovate their own solutions to meet the needs of businesses and consumers alike. sessions iot, contents & service, open innovation smartthings platform enhancements for openness and interoperability the smartthings platform continues to evolve to promote openness and interoperability. in this session, we will share some exciting new updates to the smartthings platform to support matter and thread, and discuss the home connectivity alliance. sessions health, tizen telehealth in samsung devices samsung display device (smart tvs & smart monitors) users will be able to launch telemedicine service within the samsung products. once you pick your physician, you can use one of the approved usb cameras to connect to the tv and jump on a video call with a physician via external service provider's built-in web applications. after a few account setup process on mobile / pc, you can easily start your session any time on tv without any additional complicated inputs. at your session, you can also receive a prescription to be filled in at a mail-in online pharmacy (pc or mobile) to receive prescription drugs at your doorstep. sessions open innovation, enterprise, productivity the next generation samsung retail solutions in a mobile-first world, device convergence, simplification, ergonomically designed accessories, sw solutions and the connected galaxy ecosystem are helping to boost productivity and efficiency in the retail industry. in this session, we will explore how the next generation of retail solutions are shaping the industry’s future and will take a closer look at samsung’s three major retail solutions - data capturing, payment, and push-to-talk. sessions developer program, mobile, android the samsung knox partner program: partner success journey the samsung knox partner program (kpp) equips you with everything you need to build ideas and market your mobile solutions. in this session, we will take a look at some of our partners’ solutions and how collaborating with the samsung kpp has helped enhance their user experience. join us to see why kpp is causing a stir in the business developer community! sessions enterprise, tizen tizen everywhere this session highlighted samsung's direction and goals for the enterprise and b2b markets, focused on taking tizen to the next level on so many platforms. various enterpriser displays based on tizen and solutions suitable for business purposes will always be together. tizen enterprise platform will provide all the technology infrastructure you need, including the samsung developers portal for b2b for developer support and the samsung apps tv seller office for custom application support in your own business. after announcing "tizen open" at sdc in 2019, samsung established licensing system to provide tizen tv os to other tv makers. in order for partners to develop tizen tv products faster, samsung prepared reference tv solution. in europe, australia, türkiye, tizen tvs have been released sequentially through more than 10 tv brands since september 22. sessions wearable, design, android watch face studio's first journey and expectation for next a must-have to create beautiful watch faces! watch face studio (wfs) is now a little over a year old. hear the developers of wsh share the highs and lows of bringing the tool to life and meet the designers responsible for creating the eco watch face. this session is an insight into the year-long journey to create wfs – and the story of where we’re going next. sessions iot, tizen, ui/ux what's new in tizen? are you curious about the direction in which intelligent iot platform “tizen” is developing? this session introduces ui assistant technology and extended 3d ui framework for providing advanced user experience, and explains innovative technologies that make run the tizen platform on top of the android hardware abstraction layer to facilitate securing new hws. and introduce the iot standard 'matter', which will be newly supported on tizen. finally, we provide a guide and tip for cross platform application development. sessions ai, iot, smart appliances what’s new in bixby for smart home bixby brings the smart home experience to life with the power of voice. find out how our new tool, bixby home studio, will enable device manufacturers to build more intelligent, more engaging voice experiences for smartthings-connected devices. sessions mobile, design, ui/ux what’s new in one ui 5 one ui 5 pushes personalization and productivity to the next level. explore new features that enable you to build a galaxy experience that reflects your personal style and help you to get more done on all your devices, wherever or whenever you need to.
Develop Mobile
docsamsung log video major changes version changes one ui 7 0 samsung log supported one ui 8 5 -apv advanced professional video codec supported s26 ultra only -lut look-up table preview and samsung log video editing features supported-samsung cinematic lut package deployed 1 understanding log filming log filming is a technique that captures videos in a wider dynamic range, requiring post-production work to correct colors in log filming, the camera sensor records a wider luminance range, from the darkest areas to the brightest areas while the dynamic range is compressed to fit a certain format in standard filming, log filming preserves more data this provides video creators with greater flexibility in color adjustments and post-production, yielding more cinematic and visually appealing results the general advantages of log filming are 1 cost-effectiveness high-quality videos can be produced without the need for expensive, high-end equipment 2 time efficiency the filming process to achieve the desired look is simplified, reducing production time 3 flexibility in post-production greater control over colors, shadows, highlights, and color tones when light passes through a lens and reaches the camera's sensor, each pixel in the sensor records the corresponding value this sensor information is then digitized and recorded through an image processor please note that this information is different to the visual information perceived by the human eye; when the number of candles is increased from one to three in a dark room, a camera records that the light intensity has increased threefold the human eye, however, perceives the increase as approximately 2 5 times, which is a relative value because the human eye perceives light relatively; when you increase the number of candles from two to three, it perceives an increase of one candle, which is half of two a camera, on the other hand, measures light intensity in a linear calculation to mimic how the human eye perceives light, a "gamma" correction curve is applied to the video, converting the linear data to a logarithmic scale in this process, the range of darker tones shadows is expanded, while the range of brighter tones highlights is compressed, compensating for limited data in shadows by reallocating some of the abundant data in highlights as a result, typical log footage saved appears flat and washed-out, with reduced contrast to restore the footage to standard color and contrast levels, a lut, which is a pre-defined set of color adjustment values, is applied to the footage in post-production, to restore a standard color profile and achieve a desired visual style 2 filming and color correction with samsung log 1 samsung log today, we're living in an era of personal media, with platforms like reels and shorts creators, more often than not, edit their videos to reflect their unique style rather than using auto-corrected footages as they are log filming is a technique that offers significantly greater editing flexibility for users who want their videos to stand out giving a unique look to a video with fixed lines and colors is challenging, akin to painting over an already sketched and colored artwork however, it's much easier for creators to express their colors and visual style when the footage contains only rough sketches this is why we offer a log filming service previously, log filming was considered a professional-only feature equipped in studio-grade cameras samsung log offers a log curve designed to extend tonal range in low-light areas and provide smooth highlight gradation without banding it supports the 10-bit hevc codec, ensuring excellent compatibility and storage efficiency additionally, it supports the visually lossless apv codec on the s26 ultra, ensuring optimal image quality for post-production with these features, we aim to provide professional-level quality for experts and accessibility for general users ※ filming with the apv codec is only supported on s26 ultra use the following link to learn more apv advanced professional video codec figure 1 samsung log video 2 start filming with samsung log log filming is supported by default in pro video mode to start filming, select "log" from the quick settings options displayed on the screen figure 2 pro video mode log filming you can set up the log option under the camera settings menu to enable it in video mode for lens switching and easy filming select “camera settings > video format > log > video and pro video mode” to enable log filming to be selected in the quick settings options in video mode figure 3 how to set log filming feature in video mode figure 4 video mode log filming 3 lut look-up table preview filming with samsung log adjusts the gamma curve to secure a wider dynamic range, resulting in a flat appearance it can be challenging to intuitively grasp how the final image's color and exposure will appear to address this issue, the lut preview feature allows real-time preview of color-corrected video users can select from various lut presets to monitor, depending on the shooting environment and video purpose standard provides a standard correction that maps video footage to the rec 709 color space, allowing users to accurately check exposure and colors during shooting cinematic lut four creative styles are provided to allow users to preview a cinematic mood in real-time while shooting blockbuster emphasizes hollywood's signature orange and teal tones to create a cinematic look with more depth and tension coming-of-age creates a mood often seen in coming-of-age films or k-pop music videos with calm pastel tones, soft contrast, and balanced color tones romance uses soft, warm tones to render emotional moments for characters or create a romantic mood, suitable for reflective scenes thriller creates an intense, dramatic effect by reducing saturation and increasing contrast to produce dark, gritty images ※ note the lut preview feature is intended to aid monitoring during filming users will see lut-applied colors in previews, but the actual recorded video files are saved as original log footage without any lut applied this enables users to correct and grade colors as desired in post-production figure 5 lut preview figure 6 lut presets 4 samsung log filming assist feature exposure monitor to easily check exposure during log filming, samsung log provides exposure monitoring features such as zebra patterns and false color, which assist with filming when used in conjunction with the lut preview feature, users can precisely identify exposure values based on the corrected image, making it easier and more accurate to set appropriate exposure level even when shooting in log zebra patterns are displayed in areas where exposure exceeds the pre-set value 70 to 100 , easily identifying overexposed areas false color marks all areas in different colors based on exposure grade red for overexposure, light green for proper exposure, and purple for underexposure, allowing you to see overall exposure at a glance these features can be toggled on or off at any time, before or during recording figure 7 samsung log exposure monitor 5 editing samsung log video footage on mobile samsung log supports a seamless mobile workflow, from shooting to editing and sharing the lut presets previewed during recording can also be applied in the gallery application's editing menu while users process the original log data users can use the 4 cinematic luts blockbuster, coming-of-age, romance, and thriller alongside tone adjustment features to apply a film look instantly and produce refined footage even in a mobile environment, without complex workflows ※ compared to videos filmed in video mode, samsung log offers greater editing flexibility, allowing for more detailed shadow expressions and customized color tones figure 8 color correction in samsung log 6 editing samsung log video footage on pc for professionals seeking more control in post-production, lut files compatible with professional pc editing software such as davinci resolve are provided the lut files can be downloaded via the link in the following section the cinematic lut package for pc offers an expanded library of 12 lut types three per style to enable more detailed and precise color grading based on the four base styles available on mobile three versions with varying intensities per style are provided, allowing users to choose an appropriate level according to their creative intent attributes such as color structure, contrast, and color density have been redesigned for each tone to achieve optimal results at each intensity level this ensures the intended tone is achieved accurately without compromising the overall mood of the video footage lut style characteristics tone intensity design approach blockbuster strong contrast, cool/warm split neutral – strong1 - strong2 contrast adjustment by stage, adjustment of color temperature balance between highlights and shadows and color density coming-of-age low saturation, soft contrast soft2 - soft1 - neutral differential design of saturation and luminance balance in highlights/shadows to prevent a flat look romance focused on warm tones, detail preservation in highlights, reduced excessive weight in shadows soft – neutral - strong rebalancing of color temperatures and saturation/color density to minimize tonal fatigue thriller low saturation, high contrast, emphasis on shadows neutral - strong1 - strong2 differential design of saturation and luminance balance in highlights/shadows table 1 characteristics of each lut style 3 samsung log profiles and lut samsung log white paper_en pdf samsung log to linear 1dlut_v1 0 cube samsung log to rec709 3dlut_v1 0 cube samsung log to cinelut rec709_v1 0 zip 4 samsung log support information support information samsung log filming device galaxy s26/s25/s24 series, z fold 7/6, z flip 7/6, z flip 7 fe resolution all codec 10bit hevc, apv s26 ultra only modes pro video modevideo mode log option needs to be enabled in “camera” settings lens all pro video mode filming options manual controls- exposure monitor zebra pattern, false color storage options option to save in external storage ssd lut look-up table -camera > lut preview -gallery > edit > apply lut editing samsung log video editing features ※ details, including supported devices and features, are subject to change based on company policies ※ note the apv codec is only available on the galaxy s26 ultra as it requires hardware support existing models do not support this codec, as it cannot be enabled with software updates
Learn Code Lab
codelabdevelop a smartthings find-compatible device objective learn how to create your own smartthings find-compatible device using the smartthings find partnership program device sdk learn how to measure the radio frequency rf performance of a bluetooth low energy ble device using tag toolbox partnership request the smartthings find partnership program is available only to registered partners who wish to commercialize you can only do this code lab and get the resources after a successful partnership to form a partnership, contact partners@smartthings com overview the smartthings find partnership program comprises smartthings find device specification, smartthings find device sdk, test tool, and technical support it facilitates the development of devices operating with smartthings find services and mobile applications the smartthings find device sdk is small enough to work on resource-limited microcontroller unit mcu devices in this code lab, you can learn how to develop your own smartthings find device first, you can know how to set up your project in smartthings using the developer workspace next, you can learn how to build your firmware with smartthings find device sdk lastly, you can know how to check the functionalities of your device's rf performance using the tag toolbox app set up your environment you will need the following host pc running on windows 11 visual studio code as the ide smartthings find device sdk code smartthings find tag toolbox smartthings app toolchain for nrf52833 dk use the ncs nrf connect sdk version 2 6 1 nrf52833 dk with buzzer module and nfc antenna galaxy smarttag2 register and deploy to test your device using the smartthings developer workspace, you can create a device profile, customize the instructions for onboarding the device on the smartthings app, and test the devices by deploying them you can edit the configurations until you submit the device for publication in the smartthings ecosystem sign in to smartthings developers go to smartthings developer workspace and sign in using your samsung account select a project and add a device profile select stfind codelab example and check its device profile under the device profile, specify whether the device operates on ble ble and uwb afterward, you can customize your device's onboarding experience in smartthings by uploading your product images, user instructions, and brand name under device onboarding lastly, you can fill in basic product information in the product info deploy your device to test after you complete all of these, you can go back to the overview tab and press deploy to test you can download the tagonboardingconfig h file which includes your project configuration the sdk code needs this configuration file register your devices you can add the identity of your device in the smartthings cloud for authentication this requires device information like serial number and device public key ed25519 when you reach the maximum number of test devices per user, remove the existing ones this example shows how to create an ed25519 key pair with sdk tools in visual studio code, press the tagkeygen button at the bottom afterward, you can generate the serial number, private key, and public key register it to the smartthings cloud using the smartthings developer workspace and include it in your firmware after checking the created information on visual studio code go to the developer workspace go to test > test devices menu, and click register new device input the generated serial number and public key build the firmware with the sdk open visual studio code and build the firmware for your device open the sdk project in the file explorer of visual studio code, you can find four code lab files here when you click the nrf connect icon, it shows important functions such as build, flash, and serial log check the configuration files ensure that two essential configuration files are applied tagonboardingconfig h tagdeviceinfo h write your code in main c, complete the code to call the taginit and tagstart apis of device sdk you can find code_mission in the source code and follow the instructions in the code by simply removing the comments #include <zephyr/zephyr h> #include <zephyr/sys/printk h> #include "tagsdk h" #include "mbedtls/aes h" static void init_aes_table void { mbedtls_aes_context dump_ctx; unsigned char dump_key[16]; mbedtls_aes_setkey_enc &dump_ctx, dump_key, 128 ; } void main void { int err = 0xff; tagresult_t result = tag_result_not_supported; /** * code_mission * you will check this serial log later in this codelab */ printk "tag demo! %s-%s-%s\n", config_board, __date__,__time__ ; init_aes_table ; /** * code_mission * call taginit api by removing comment // * * by calling this api, tag sdk will load nv, set rtc and * initialize crypto, and so on * you shall initialize bsp before call this api * services and starts ble advertising */ // result = taginit ; if result != tag_result_success { printk "failed to init %d\n", result ; return; } err = bt_enable 0 ; if err { printk "failed to init bt %d\n", err ; return; } /** * code_mission * call tagstart api by removing comment // * * by calling this api, tag sdk will initialize ble gatt * db and services and starts ble advertising * you shall initialize ble stack before call this api */ // result = tagstart ; if result != tag_result_success { printk "failed to start maintask %d\n", result ; return; } } in portnfc c, call the seturl function you can find code_mission in the source code and follow the instructions in the code by simply removing the comments tagerror_t portnfcseturl char *url, size_t urllen { tagerror_t ret = tag_error_none; ret = disablenfc ; if ret != tag_error_none { tag_log_e "failed to disable nfc" ; return ret; } /** * code_mission * remove comment // below to call seturl function */ // ret = seturl url, urllen ; if ret != tag_error_none { tag_log_e "failed to set url message" ; return ret; } ret = enablenfc ; if ret != tag_error_none { tag_log_e "failed to enable nfc" ; return ret; } return tag_error_none; } build go to nrf connect > actions click on build noteit may take some time for the build to finish you can see the progress by checking the popup at the bottom-right corner of the ide you can also select nrf connect build in the terminal to check the detailed status flash connect the nrf52833 dk to your computer go to nrf connect > actions click on flash once completed, you can hear a notification sound from your device check the serial log of your device go to nrf connect > connected devices click the plug icon on the right side of vcom0 comxx at the top of the ide, select the first item in the list under connected devices press the reset button briefly on your device by checking the timestamp from the serial log, you can verify whether your device successfully downloaded the firmware onboard and control your device via smartthings app onboard your device launch the smartthings app tap the + icon at the top right of the screen click on add device select add in the partner devices section select my testing devices then, select stfind codelab example to start onboarding allow the use of location information and press agree verify your device by pressing the button on the board in the success! page, tap on done to finish onboarding your device locate and ring your device tap on view map to show the location of your device select ring and your device produces a sound through its buzzer module you may switch to either high-volume or low-volume ringing press stop to stop the ringing configure the lost mode of your device when lost mode is activated, it allows you to view a lost message showing the owner's contact information and any personalized messages in the smartthings app, tap on view map > more > lost mode in the lost mode page, select next add email, contact, and message information then, tap on turn on test it by placing an nfc device or a mobile device at the nfc antenna of your device a lost message should show on your mobile device test the device's rf performance via tag toolbox smartthings find tag toolbox allows you to measure the rf performance of a ble device and log the results create a new test item launch the tag toolbox app on a mobile device tap on ble performance > add new test to create a new test item select a target device and a reference device to compare rf performance a target device this is your device created through this code lab b reference device this is the smarttag2 as a comparison target conduct rf performance tests press start session and check your device's rf performance once completed, tap on take a picture and capture how far away the mobile device is from both your device and the smarttag2 tap on test result to find out your device's rf performance export test result test reports can be exported as a file either during the test or after completing the test check your device's rf performance in the list of session menu a min rssi minimum value of your device's rf signal b max rssi maximum value of your device's rf signal c packet detection rate if the advertising transmission interval is two seconds, it indicates how many packets were detected during the test duration press export test result and it shows the location of the file on your mobile device you're done! congratulations! you have successfully achieved the goal of this code lab topic now, you can develop your own smartthings find-compatible devices contact partners@smartthings com to form a partnership to learn more, explore smartthings
Develop Smart TV
doclaunch time optimization this topic presents a case study of improving an application to reduce its launch time it describes the application launch process, techniques for reducing application loading time, and best practices for writing more efficient javascript applications that offer a good user experience ux attract more users users who have positive impressions of an application return to it and are more likely to recommend it to others if you monetize the application, this can result in greater profit application launch time is the total time from the moment when the user clicks the application icon until the application is ready to use improving the application launch time improves the user experience because application loading is the first experience the user gets of your application, a long loading time can leave them with a negative impression therefore, it is worthwhile to prioritize reducing application launch time user satisfaction drastically decreases as the application launch time increases, as shown in the following figure based on a user survey using this information, a target launch time of around 5-7 seconds satisfies most users application launch process the application launch process can be divided into 5 stages some stages are controlled by the system, but most stages are dependent on application implementation, providing opportunities for performance improvement this case study is based on an application running on a 2015 samsung smart tv video was captured while launching the application on the tv, enabling the duration of each application launch stage to be measured with an accuracy of one video frame noteif you want to test your application in a similar way, make sure that all tests are performed under the same circumstances, such as using the same device with the same network conditions, to reduce the effects of external factors the following figure illustrates the application launch stages, and the time spent at each stage for the case study application the following table describes each stage in detail stage action screen time description 1 application icon click 1 086s time between clicking the application icon to when the smart hub "apps" panel disappears 2 initial loading screen 4 979s time between loading the home page "index html" and calling the window onload method 3 black screen 0 837s time a transition screen is shown before calling the window onload method for samsung legacy platform applications only 4 splash image 0 570s time until the splash image appears the splash image is the first screen shown in the application after calling the window onload method it is usually shown during authentication or while content is loading 5 home page 0 348s time taken to render the home page, fill it with content, and enable user input table 1 application launch stages optimizing launch logic this section assumes that the case study application utilizes a framework the framework contains modules responsible for activities, such as sending ajax requests to the backend server, application authorization in the backend side, and modules responsible for the ui and logic the case study application loading process is illustrated in the following figure the application logic is dependent on the framework setup in stages 2 and 3, load and initialize the framework after the framework setup is complete, start authorization at the backend server with the application logic if authorization succeeds, send ajax requests to the backend server to fetch application data, such as a list of recommended movies to display on the application home page ajax requests are dependent on the authorization step, because they must contain an authorization token wait for the data needed to render the home page, and render it this model is not optimized because the entire framework must be loaded and initialized before the application can start the authorization and content loading processes a possible approach to speeding up the launch process is by rebuilding the application in the following way divide the framework setup into 2 phases in the first phase, load the modules responsible for application authorization in the second phase, initialize the rest of the framework once the first phase is loaded, perform authorization immediately it is only dependent on the xhr object created in stage 1 during web runtime setup multiple ajax requests are merged into 1 request to avoid unnecessary delays the ajax request is dependent on the authorization step for the authorization token when the framework is fully initialized, begin performing the basic home page setup without waiting for the ajax request response stage 3 is eliminated completely by migrating the application from samsung legacy platform to tizen padding time is needed to synchronize the application logic and ajax requests the application logic requires ajax request data to render the home page, but as the requests are asynchronous, implement mechanisms to coordinate the modules, such as events, callbacks, and promises resume the application logic after receiving the response from the server load other parts of application logic, such as required scripts and data, on demand in this way, they do not delay the launch process this flow is more optimized, as many tasks are performed in parallel initially, the application loads only the modules which are necessary for authorization and starts authorization immediately along with other operations, such as loading the rest of the framework, the ui, resources, and content any tasks not required for displaying the home page are postponed to start after the launch process consequently, application launch time is much shorter than before improving launch time the following table lists optimization strategies that can improve application launch time, and the application launch stages they affect optimization stage 1 2 3 4 5 migrating application to tizen + + enabling prelaunch + + + + minimizing home page code + + loading js files asynchronously + + sending ajax requests promptly + + parallelizing ajax requests concatenating ajax requests + + + delaying platform and tizen api calls + + caching api output + + + using jquery 2 x or higher + + + loading static resources locally + + minimizing and concatenating code + + removing obsolete code + + using sprites + + + using pure css + + + enforcing gpu acceleration + table 2 launch stages affected by optimizations migrating application to tizen stages affected 1 and 3 tizen is more efficient than samsung legacy platform migrating the application from samsung legacy platform to tizen can improve its performance significantly enabling prelaunch stages affected 1, 2, 4, and 5 tv web applications in tizen support prelaunching applications can load in the background when the samsung tv is switched on when the user launches the application, it loads more quickly because it has been prelaunched for more information, see prelaunching applications minimizing home page code stages affected 2 and 5 application launch time can be improved by loading and parsing less code at launch when the application launches, load only the html, js, and css code necessary to show the home page other code can be loaded on demand using a library, such as require js, to avoid building and parsing the dom before it is needed loading javascript files asynchronously stages affected 2 and 4 when loading external javascript files normally, the html parser stops while the javascript files are downloaded and executed to avoid the pause in html parsing during download, you can use the defer and async attributes <script src='js/main js' defer></script> <script src='js/scripts js' async></script> using the defer attribute downloads the javascript file in parallel while parsing html the javascript code executes only when all html parsing is complete scripts using the defer attribute are guaranteed to execute in the same order that they appear in the document using the async attribute downloads the javascript file in parallel while parsing html, but when the download completes, the html parser pauses to execute the script the defer and async attributes can be used only for scripts implemented with the script element and src attribute for more information, see the html <script> element handling ajax requests you can improve launch time by optimizing ajax request usage sending ajax requests promptly stages affected 2 and 4 most applications load their content from remote servers and utilize a framework that helps manage the requests however, loading and executing the framework code can take a lot of time to speed up application launch, send the ajax requests needed to display the home page as soon as possible you can send a simple xhr request at the beginning of the "index html" file, before loading the framework xhr requests are asynchronous and do not block any other threads cache the response in a global object, so the application framework can use the data immediately to display the home page without sending the request again parallelizing ajax requests send ajax requests in parallel if they are not dependent on responses from prior requests before each request is executed after receiving a response from the previous one sendrequest1 onsuccess sendrequest2 onsuccess sendrequest3 onsuccess sendrequest4 onsuccess sendrequest5 after the first request authorizes the application after receiving the response, the other requests are executed asynchronously sendrequest1 onsuccess sendrequest2 sendrequest3 sendrequest4 sendrequest5 concatenating ajax requests stages affected 2, 4, and 5 limit the number of ajax requests by merging several requests, if possible the fewer requests there are, the less time it takes to process all of them for example, consider an application that sends 3 requests to display the home page, such as for application authorization, a list of recommended movies, and a list of the latest movies verify whether it is possible to modify the requests and backend in such a way that the response for the authorization request contains the recommended and latest movies as well you can also use this strategy throughout the application to reduce the loading time of other scenes delaying platform and tizen api calls stages affected 2 and 4 many applications make early calls to tizen and platform apis for static information, such as the duid or model code because api initialization is "lazy" the api is initialized only when it is first needed , the first call to each api module takes time postpone api calls until the application is fully started and ready to use, if possible caching api output stages affected 2, 4, and 5 instead of querying the api each time, cache the static output from product and tizen apis in javascript variables consider the following scenarios the total duration of video content is constant during video playback you can retrieve it once and store it in a javascript variable instead of querying the api each time it is needed tv specification parameters, such as the duid or model code, never change you can retrieve the parameters using the api the first time the application is launched and save it in localstorage retrieving data from localstorage is quicker than querying the api using jquery 2 x or higher stages affected 2, 4, and 5 newer versions of jquery are smaller and faster you can also consider using a custom jquery build loading static resources locally stages affected 2 and 4 load static application resources directly from the local file system, by including all application source code, external libraries, and static ui elements, such as css and images, within the tizen package before <link rel='stylesheet' href='https //maxcdn bootstrapcdn com/bootstrap/3 3 5/css/bootstrap min css'> <link rel='stylesheet' href='https //example com/myapp/css/styles min css'> <script src='http //code jquery com/jquery-2 0 0 min js'></script> <script src='https //maxcdn bootstrapcdn com/bootstrap/3 3 5/js/bootstrap min js'></script> after <link rel='stylesheet' href='css/bootstrap min css'> <link rel='stylesheet' href='css/styles min css'> <script src='js/jquery-2 0 0 min js'></script> <script src='js/bootstrap min js'></script> this not only decreases loading time, but can also improve application security and eliminate some application errors caused by network issues minimizing and concatenating code stages affected 2 and 4 the application loads faster when it makes fewer requests to the file system if you do not want to use a lazy loading mechanism to load parts of the application on demand, concatenate and minimize your source code, especially javascript and css files before <!doctype html> <html lang='en'> <head> <meta name='viewport' content='width=1280, user-scalable=no'> <meta http-equiv='content-type' content='text/html; charset=utf-8'> <title>my application</title> <link rel='stylesheet' type='text/css' href='styles/main css'> <link rel='stylesheet' type='text/css' href='styles/list css'> <link rel='stylesheet' type='text/css' href='styles/player css'> <link rel='stylesheet' type='text/css' href='styles/login css'> <link rel='stylesheet' type='text/css' href='styles/account css'> <script src='js/main js'></script> <script src='js/list js'></script> <script src='js/player js'></script> <script src='js/login js'></script> <script src='js/account js'></script> </head> <body> <div id='menu'></div> <div id='maincontainer'> <div id='helpbar'></div> </body> </html> after<!doctype html> <html lang='en'> <head> <meta name='viewport' content='width=1280, user-scalable=no'> <meta http-equiv='content-type' content='text/html; charset=utf-8'> <title>my application</title> <link rel='stylesheet' type='text/css' href='styles/all_styles css'/> <script src='js/all_scripts js' defer></script> </head> <body> <div id='menu'></div> <div id='maincontainer'> <div id='helpbar'></div> </body> </html> in some situations, it can be better to concatenate your code into 2 files instead of 1 if the code must be executed as soon as possible, put it into a file that is loaded with the async attribute if the code requires the dom to be ready before execution, put it in another file that is loaded with the defer attribute make sure that the code loads in the correct order to satisfy its dependencies removing obsolete code stages affected 2 and 4 if the application loads any unused source code, whether it is javascript, css, or html, the browser takes time to parse it, build the dom, and search the html code for matching css rules keep your code clean and up to date to avoid unnecessary performance issues caused by obsolete or redundant code for example, when the window onload method is called, calling the unregisterkey method of the tvinputdevice api is unnecessary because no keys are registered other than the default "left", "up", "right", "down", "enter", and "back" keys using sprites stages affected 2, 4, and 5 if your application loads many small graphics, such as icons, button elements, and backgrounds, consider using css sprites css sprites help images load faster by making fewer requests to the file system, which improves overall application performance you can merge all of the icons or background images into 1 large image and use css to set the positions for each element consider the following mouse hover implementation before #mybutton { width 300px; height 100px; background url 'img/button-normal png' 0px 0px no-repeat; } #mybutton hover { background url 'img/button-hover png' 0px 0px no-repeat; } this code is not optimal, as the browser must make 2 requests to the file system instead of 1 additionally, the first time the user hovers on the button, its background will flicker, as some time is needed to request the new image and show it on the screen after #mybutton { width 300px; height 100px; background url 'img/button-sprite png' 0px 0px no-repeat; } #mybutton hover { background url 'img/button-sprite png' 0px -100px no-repeat; } this code is more optimal because it loads only 1 image which takes less time to load, even though its size is bigger mouse hover changes only the background image position, so there is no flickering when switching between the states using pure css stages affected 2, 4, and 5 tizen supports css3, which allows you to create many graphic effects without using image files pure css renders faster and takes less time to calculate its properties, which is especially valuable when animating css elements the following code creates a button using only pure css button { width 180px; height 62px; line-height 62px; font-size 24px; color #fff; text-align center; text-shadow 1px 0 1px rgba 0, 0, 0, 75 ; background -webkit-linear-gradient top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100% ; border solid 2px #fff; border-radius 12px; box-shadow 0px 0px 15px 5px rgba 255, 255, 190, 75 ; } enforcing gpu acceleration stage affected 5 normally, the browser applies gpu acceleration when there is some indication that a dom element can benefit from it css3 allows you to force the browser to render elements with gpu acceleration one of the simplest methods is setting a style indicating 3d transform, even when no real 3d transformation is applied acceleratedelem { -webkit-transform translatez 0 ; } in general, 3d transformations in css force the browser to use the gpu the following declarations can reduce flickering during css transforms or animations acceleratedelem { -webkit-backface-visibility hidden; -webkit-perspective 1000; } for more information, see an introduction to css 3-d transforms and increase site performance with hardware-accelerated css optimizing javascript code follow a reliable and consistent coding standard and style for javascript, as it makes the code easier to write, easier to read, improves its maintainability, and makes it less error-prone the following section presents javascript best practices that are frequently used in the web community caching dom element references searching the dom tree is a resource-hungry operation if there are dom elements on which you perform operations frequently, store them in javascript variables to avoid repetitive dom traversal prefer var elem1 = document getelementbyid 'elem1' ; elem1 innerhtml = 'lorem ipsum dolor'; elem1 classlist remove 'class1' ; elem1 classlist add 'class2' ; var $elem2 = $ '#elem2' ; $elem2 html 'lorem ipsum dolor sit amet' ; $elem2 addclass 'class3' ; avoid document getelementbyid 'elem1' innerhtml = 'lorem ipsum dolor'; document getelementbyid 'elem1' classlist remove 'class1' ; document getelementbyid 'elem1' classlist add 'class2' ; $ '#elem2' html 'lorem ipsum dolor sit amet' ; $ '#elem2' addclass 'class3' ; it can be helpful to store references to frequently-used dom elements in a global object for example var domelementscache = { eldocument window document, elhtml window document documentelement, elbody window document body, elhead window document head, eltitle window document getelementbyid 'title' }; domelementscache eltitle innerhtml 'my title' ; avoiding slow jquery selectors jquery selectors work slower than native ones if application performance is critical, consider replacing jquery selectors, for example id selector //jquery var elem = $ '#myelem' ; //native js equivalent var elem = document queryselector '#myelem' ; class selector //jquery var elems = $ ' class1' ; //native js equivalent var elems = document queryselectorall ' class1' ; tagname selector //jquery var elems = $ 'span' ; //native js equivalent var elems = document queryselectorall 'span' ; $ find //jquery var elems = $el find ' target1, target2, target3' ; //native js equivalent var elems = el queryselectorall ' target1, target2, target3' ; using native methods native javascript methods are faster than wrappers from different libraries in some cases, it can be helpful to use them instead of library methods var myarray = [1, 2, 3]; //underscore _ each myarray, function val { console log val ; } ; //jquery $ each myarray, function val { console log val ; } ; //native js equivalent for var i = 0; i < myarray length; i++ { console log myarray[i] ; } removing console logging extensive logging decreases application performance, because each console log method call blocks the javascript thread in the browser other logging methods, such as the console warn , console info , console error methods, behave similarly to improve application performance, remove log methods in the final build you can use a logger utility to easily switch logging on and off open source libraries, such as woodman, are available, or you can write your own logger, such as the following example // global object for storing application configuration var applicationconfig = { debugmode true //enables logs in application }; // logger object factory var logger = function { var logger = {}; if applicationconfig debugmode === true { logger = { log function { var args = array prototype slice call arguments, 0 ; console log args ; }, info function { var args = array prototype slice call arguments, 0 ; console info args ; }, warn function { var args = array prototype slice call arguments, 0 ; console warn args ; }, error function { var args = array prototype slice call arguments, 0 ; console error args ; } }; } else { logger = { log function {}, info function {}, warn function {}, error function {} }; } return logger; }; // usage // for development and debugging var applicationconfig = { debugmode true }; var mylog = new logger ; // initializes logger mylog log 'test' ; // outputs 'test' to console //for production var applicationconfig = { debugmode false }; var mylog = new logger ; // initializes logger mylog log 'test' ; // does nothing importantnever override console log or any other native function overriding native objects is a bad practice in javascript, as it can lead to unexpected behavior and introduce defects that are very hard to debug optimization results the principles described in this guide were applied to several samsung tv applications, as listed in the following table optimization application a b c d e f migrating application to tizen + + + + + + enabling prelaunch + + + + + + minimizing home page code + + + + + + loading js files asynchronously + + + + + + sending ajax requests promptly + + + + parallelizing ajax requests + + + concatenating ajax requests + + delaying platform and tizen api calls + + + + + caching api output + + + + using jquery 2 x or higher + + + + loading static resources locally minimizing and concatenating code + + + + + + removing obsolete code + + + using sprites + + + + + + using pure css + enforcing gpu acceleration + caching dom element references + + + + + + avoiding slow jquery selectors + + + using native methods + + removing console logging + + + + + table 3 optimizations applied to samsung tv applications the following table lists the launch time optimization results application beforeoptimization afteroptimization reduction reduction % a 7 234 s 4 422 s 2 812 s 38 87% b 6 972 s 4 642 s 2 330 s 33 42% c 4 160 s 3 140 s 1 020 s 24 52% d 16 512 s 4 011 s 12 501 s 75 71% e 4 090 s 3 153 s 0 937 s 22 91% f 17 853 s 7 462 s 10 391 s 58 20% average reduction 4 999 s 42 27% table 4 results of application launch time optimization the average reduction in application launch time was almost 5 seconds, a 42% improvement this result suggests that it is worthwhile to optimize applications, wherever possible
Develop Smart Hospitality Display
doclaunch time optimization this topic presents a case study of improving an application to reduce its launch time it describes the application launch process, techniques for reducing application loading time, and best practices for writing more efficient javascript applications that offer a good user experience ux attract more users users who have positive impressions of an application return to it and are more likely to recommend it to others if you monetize the application, this can result in greater profit application launch time is the total time from the moment when the user clicks the application icon until the application is ready to use improving the application launch time improves the user experience because application loading is the first experience the user gets of your application, a long loading time can leave them with a negative impression therefore, it is worthwhile to prioritize reducing application launch time user satisfaction drastically decreases as the application launch time increases, as shown in the following figure based on a user survey using this information, a target launch time of around 5-7 seconds satisfies most users application launch process the application launch process can be divided into 5 stages some stages are controlled by the system, but most stages are dependent on application implementation, providing opportunities for performance improvement this case study is based on an application running on a 2015 samsung smart tv video was captured while launching the application on the tv, enabling the duration of each application launch stage to be measured with an accuracy of one video frame noteif you want to test your application in a similar way, make sure that all tests are performed under the same circumstances, such as using the same device with the same network conditions, to reduce the effects of external factors the following figure illustrates the application launch stages, and the time spent at each stage for the case study application the following table describes each stage in detail stage action screen time description 1 application icon click 1 086s time between clicking the application icon to when the smart hub "apps" panel disappears 2 initial loading screen 4 979s time between loading the home page "index html" and calling the window onload method 3 black screen 0 837s time a transition screen is shown before calling the window onload method for samsung legacy platform applications only 4 splash image 0 570s time until the splash image appears the splash image is the first screen shown in the application after calling the window onload method it is usually shown during authentication or while content is loading 5 home page 0 348s time taken to render the home page, fill it with content, and enable user input table 1 application launch stages optimizing launch logic this section assumes that the case study application utilizes a framework the framework contains modules responsible for activities, such as sending ajax requests to the backend server, application authorization in the backend side, and modules responsible for the ui and logic the case study application loading process is illustrated in the following figure the application logic is dependent on the framework setup in stages 2 and 3, load and initialize the framework after the framework setup is complete, start authorization at the backend server with the application logic if authorization succeeds, send ajax requests to the backend server to fetch application data, such as a list of recommended movies to display on the application home page ajax requests are dependent on the authorization step, because they must contain an authorization token wait for the data needed to render the home page, and render it this model is not optimized because the entire framework must be loaded and initialized before the application can start the authorization and content loading processes a possible approach to speeding up the launch process is by rebuilding the application in the following way divide the framework setup into 2 phases in the first phase, load the modules responsible for application authorization in the second phase, initialize the rest of the framework once the first phase is loaded, perform authorization immediately it is only dependent on the xhr object created in stage 1 during web runtime setup multiple ajax requests are merged into 1 request to avoid unnecessary delays the ajax request is dependent on the authorization step for the authorization token when the framework is fully initialized, begin performing the basic home page setup without waiting for the ajax request response stage 3 is eliminated completely by migrating the application from samsung legacy platform to tizen padding time is needed to synchronize the application logic and ajax requests the application logic requires ajax request data to render the home page, but as the requests are asynchronous, implement mechanisms to coordinate the modules, such as events, callbacks, and promises resume the application logic after receiving the response from the server load other parts of application logic, such as required scripts and data, on demand in this way, they do not delay the launch process this flow is more optimized, as many tasks are performed in parallel initially, the application loads only the modules which are necessary for authorization and starts authorization immediately along with other operations, such as loading the rest of the framework, the ui, resources, and content any tasks not required for displaying the home page are postponed to start after the launch process consequently, application launch time is much shorter than before improving launch time the following table lists optimization strategies that can improve application launch time, and the application launch stages they affect optimization stage 1 2 3 4 5 migrating application to tizen + + enabling prelaunch + + + + minimizing home page code + + loading js files asynchronously + + sending ajax requests promptly + + parallelizing ajax requests concatenating ajax requests + + + delaying platform and tizen api calls + + caching api output + + + using jquery 2 x or higher + + + loading static resources locally + + minimizing and concatenating code + + removing obsolete code + + using sprites + + + using pure css + + + enforcing gpu acceleration + table 2 launch stages affected by optimizations migrating application to tizen stages affected 1 and 3 tizen is more efficient than samsung legacy platform migrating the application from samsung legacy platform to tizen can improve its performance significantly enabling prelaunch stages affected 1, 2, 4, and 5 tv web applications in tizen support prelaunching applications can load in the background when the samsung tv is switched on when the user launches the application, it loads more quickly because it has been prelaunched for more information, see prelaunching applications minimizing home page code stages affected 2 and 5 application launch time can be improved by loading and parsing less code at launch when the application launches, load only the html, js, and css code necessary to show the home page other code can be loaded on demand using a library, such as require js, to avoid building and parsing the dom before it is needed loading javascript files asynchronously stages affected 2 and 4 when loading external javascript files normally, the html parser stops while the javascript files are downloaded and executed to avoid the pause in html parsing during download, you can use the defer and async attributes <script src='js/main js' defer></script> <script src='js/scripts js' async></script> using the defer attribute downloads the javascript file in parallel while parsing html the javascript code executes only when all html parsing is complete scripts using the defer attribute are guaranteed to execute in the same order that they appear in the document using the async attribute downloads the javascript file in parallel while parsing html, but when the download completes, the html parser pauses to execute the script the defer and async attributes can be used only for scripts implemented with the script element and src attribute for more information, see the html <script> element handling ajax requests you can improve launch time by optimizing ajax request usage sending ajax requests promptly stages affected 2 and 4 most applications load their content from remote servers and utilize a framework that helps manage the requests however, loading and executing the framework code can take a lot of time to speed up application launch, send the ajax requests needed to display the home page as soon as possible you can send a simple xhr request at the beginning of the "index html" file, before loading the framework xhr requests are asynchronous and do not block any other threads cache the response in a global object, so the application framework can use the data immediately to display the home page without sending the request again parallelizing ajax requests send ajax requests in parallel if they are not dependent on responses from prior requests before each request is executed after receiving a response from the previous one sendrequest1 onsuccess sendrequest2 onsuccess sendrequest3 onsuccess sendrequest4 onsuccess sendrequest5 after the first request authorizes the application after receiving the response, the other requests are executed asynchronously sendrequest1 onsuccess sendrequest2 sendrequest3 sendrequest4 sendrequest5 concatenating ajax requests stages affected 2, 4, and 5 limit the number of ajax requests by merging several requests, if possible the fewer requests there are, the less time it takes to process all of them for example, consider an application that sends 3 requests to display the home page, such as for application authorization, a list of recommended movies, and a list of the latest movies verify whether it is possible to modify the requests and backend in such a way that the response for the authorization request contains the recommended and latest movies as well you can also use this strategy throughout the application to reduce the loading time of other scenes delaying platform and tizen api calls stages affected 2 and 4 many applications make early calls to tizen and platform apis for static information, such as the duid or model code because api initialization is "lazy" the api is initialized only when it is first needed , the first call to each api module takes time postpone api calls until the application is fully started and ready to use, if possible caching api output stages affected 2, 4, and 5 instead of querying the api each time, cache the static output from product and tizen apis in javascript variables consider the following scenarios the total duration of video content is constant during video playback you can retrieve it once and store it in a javascript variable instead of querying the api each time it is needed tv specification parameters, such as the duid or model code, never change you can retrieve the parameters using the api the first time the application is launched and save it in localstorage retrieving data from localstorage is quicker than querying the api using jquery 2 x or higher stages affected 2, 4, and 5 newer versions of jquery are smaller and faster you can also consider using a custom jquery build loading static resources locally stages affected 2 and 4 load static application resources directly from the local file system, by including all application source code, external libraries, and static ui elements, such as css and images, within the tizen package before <link rel='stylesheet' href='https //maxcdn bootstrapcdn com/bootstrap/3 3 5/css/bootstrap min css'> <link rel='stylesheet' href='https //example com/myapp/css/styles min css'> <script src='http //code jquery com/jquery-2 0 0 min js'></script> <script src='https //maxcdn bootstrapcdn com/bootstrap/3 3 5/js/bootstrap min js'></script> after <link rel='stylesheet' href='css/bootstrap min css'> <link rel='stylesheet' href='css/styles min css'> <script src='js/jquery-2 0 0 min js'></script> <script src='js/bootstrap min js'></script> this not only decreases loading time, but can also improve application security and eliminate some application errors caused by network issues minimizing and concatenating code stages affected 2 and 4 the application loads faster when it makes fewer requests to the file system if you do not want to use a lazy loading mechanism to load parts of the application on demand, concatenate and minimize your source code, especially javascript and css files before <!doctype html> <html lang='en'> <head> <meta name='viewport' content='width=1280, user-scalable=no'> <meta http-equiv='content-type' content='text/html; charset=utf-8'> <title>my application</title> <link rel='stylesheet' type='text/css' href='styles/main css'> <link rel='stylesheet' type='text/css' href='styles/list css'> <link rel='stylesheet' type='text/css' href='styles/player css'> <link rel='stylesheet' type='text/css' href='styles/login css'> <link rel='stylesheet' type='text/css' href='styles/account css'> <script src='js/main js'></script> <script src='js/list js'></script> <script src='js/player js'></script> <script src='js/login js'></script> <script src='js/account js'></script> </head> <body> <div id='menu'></div> <div id='maincontainer'> <div id='helpbar'></div> </body> </html> after<!doctype html> <html lang='en'> <head> <meta name='viewport' content='width=1280, user-scalable=no'> <meta http-equiv='content-type' content='text/html; charset=utf-8'> <title>my application</title> <link rel='stylesheet' type='text/css' href='styles/all_styles css'/> <script src='js/all_scripts js' defer></script> </head> <body> <div id='menu'></div> <div id='maincontainer'> <div id='helpbar'></div> </body> </html> in some situations, it can be better to concatenate your code into 2 files instead of 1 if the code must be executed as soon as possible, put it into a file that is loaded with the async attribute if the code requires the dom to be ready before execution, put it in another file that is loaded with the defer attribute make sure that the code loads in the correct order to satisfy its dependencies removing obsolete code stages affected 2 and 4 if the application loads any unused source code, whether it is javascript, css, or html, the browser takes time to parse it, build the dom, and search the html code for matching css rules keep your code clean and up to date to avoid unnecessary performance issues caused by obsolete or redundant code for example, when the window onload method is called, calling the unregisterkey method of the tvinputdevice api is unnecessary because no keys are registered other than the default "left", "up", "right", "down", "enter", and "back" keys using sprites stages affected 2, 4, and 5 if your application loads many small graphics, such as icons, button elements, and backgrounds, consider using css sprites css sprites help images load faster by making fewer requests to the file system, which improves overall application performance you can merge all of the icons or background images into 1 large image and use css to set the positions for each element consider the following mouse hover implementation before #mybutton { width 300px; height 100px; background url 'img/button-normal png' 0px 0px no-repeat; } #mybutton hover { background url 'img/button-hover png' 0px 0px no-repeat; } this code is not optimal, as the browser must make 2 requests to the file system instead of 1 additionally, the first time the user hovers on the button, its background will flicker, as some time is needed to request the new image and show it on the screen after #mybutton { width 300px; height 100px; background url 'img/button-sprite png' 0px 0px no-repeat; } #mybutton hover { background url 'img/button-sprite png' 0px -100px no-repeat; } this code is more optimal because it loads only 1 image which takes less time to load, even though its size is bigger mouse hover changes only the background image position, so there is no flickering when switching between the states using pure css stages affected 2, 4, and 5 tizen supports css3, which allows you to create many graphic effects without using image files pure css renders faster and takes less time to calculate its properties, which is especially valuable when animating css elements the following code creates a button using only pure css button { width 180px; height 62px; line-height 62px; font-size 24px; color #fff; text-align center; text-shadow 1px 0 1px rgba 0, 0, 0, 75 ; background -webkit-linear-gradient top, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100% ; border solid 2px #fff; border-radius 12px; box-shadow 0px 0px 15px 5px rgba 255, 255, 190, 75 ; } enforcing gpu acceleration stage affected 5 normally, the browser applies gpu acceleration when there is some indication that a dom element can benefit from it css3 allows you to force the browser to render elements with gpu acceleration one of the simplest methods is setting a style indicating 3d transform, even when no real 3d transformation is applied acceleratedelem { -webkit-transform translatez 0 ; } in general, 3d transformations in css force the browser to use the gpu the following declarations can reduce flickering during css transforms or animations acceleratedelem { -webkit-backface-visibility hidden; -webkit-perspective 1000; } for more information, see an introduction to css 3-d transforms and increase site performance with hardware-accelerated css optimizing javascript code follow a reliable and consistent coding standard and style for javascript, as it makes the code easier to write, easier to read, improves its maintainability, and makes it less error-prone the following section presents javascript best practices that are frequently used in the web community caching dom element references searching the dom tree is a resource-hungry operation if there are dom elements on which you perform operations frequently, store them in javascript variables to avoid repetitive dom traversal prefer var elem1 = document getelementbyid 'elem1' ; elem1 innerhtml = 'lorem ipsum dolor'; elem1 classlist remove 'class1' ; elem1 classlist add 'class2' ; var $elem2 = $ '#elem2' ; $elem2 html 'lorem ipsum dolor sit amet' ; $elem2 addclass 'class3' ; avoid document getelementbyid 'elem1' innerhtml = 'lorem ipsum dolor'; document getelementbyid 'elem1' classlist remove 'class1' ; document getelementbyid 'elem1' classlist add 'class2' ; $ '#elem2' html 'lorem ipsum dolor sit amet' ; $ '#elem2' addclass 'class3' ; it can be helpful to store references to frequently-used dom elements in a global object for example var domelementscache = { eldocument window document, elhtml window document documentelement, elbody window document body, elhead window document head, eltitle window document getelementbyid 'title' }; domelementscache eltitle innerhtml 'my title' ; avoiding slow jquery selectors jquery selectors work slower than native ones if application performance is critical, consider replacing jquery selectors, for example id selector //jquery var elem = $ '#myelem' ; //native js equivalent var elem = document queryselector '#myelem' ; class selector //jquery var elems = $ ' class1' ; //native js equivalent var elems = document queryselectorall ' class1' ; tagname selector //jquery var elems = $ 'span' ; //native js equivalent var elems = document queryselectorall 'span' ; $ find //jquery var elems = $el find ' target1, target2, target3' ; //native js equivalent var elems = el queryselectorall ' target1, target2, target3' ; using native methods native javascript methods are faster than wrappers from different libraries in some cases, it can be helpful to use them instead of library methods var myarray = [1, 2, 3]; //underscore _ each myarray, function val { console log val ; } ; //jquery $ each myarray, function val { console log val ; } ; //native js equivalent for var i = 0; i < myarray length; i++ { console log myarray[i] ; } removing console logging extensive logging decreases application performance, because each console log method call blocks the javascript thread in the browser other logging methods, such as the console warn , console info , console error methods, behave similarly to improve application performance, remove log methods in the final build you can use a logger utility to easily switch logging on and off open source libraries, such as woodman, are available, or you can write your own logger, such as the following example // global object for storing application configuration var applicationconfig = { debugmode true //enables logs in application }; // logger object factory var logger = function { var logger = {}; if applicationconfig debugmode === true { logger = { log function { var args = array prototype slice call arguments, 0 ; console log args ; }, info function { var args = array prototype slice call arguments, 0 ; console info args ; }, warn function { var args = array prototype slice call arguments, 0 ; console warn args ; }, error function { var args = array prototype slice call arguments, 0 ; console error args ; } }; } else { logger = { log function {}, info function {}, warn function {}, error function {} }; } return logger; }; // usage // for development and debugging var applicationconfig = { debugmode true }; var mylog = new logger ; // initializes logger mylog log 'test' ; // outputs 'test' to console //for production var applicationconfig = { debugmode false }; var mylog = new logger ; // initializes logger mylog log 'test' ; // does nothing importantnever override console log or any other native function overriding native objects is a bad practice in javascript, as it can lead to unexpected behavior and introduce defects that are very hard to debug optimization results the principles described in this guide were applied to several samsung tv applications, as listed in the following table optimization application a b c d e f migrating application to tizen + + + + + + enabling prelaunch + + + + + + minimizing home page code + + + + + + loading js files asynchronously + + + + + + sending ajax requests promptly + + + + parallelizing ajax requests + + + concatenating ajax requests + + delaying platform and tizen api calls + + + + + caching api output + + + + using jquery 2 x or higher + + + + loading static resources locally minimizing and concatenating code + + + + + + removing obsolete code + + + using sprites + + + + + + using pure css + enforcing gpu acceleration + caching dom element references + + + + + + avoiding slow jquery selectors + + + using native methods + + removing console logging + + + + + table 3 optimizations applied to samsung tv applications the following table lists the launch time optimization results application beforeoptimization afteroptimization reduction reduction % a 7 234 s 4 422 s 2 812 s 38 87% b 6 972 s 4 642 s 2 330 s 33 42% c 4 160 s 3 140 s 1 020 s 24 52% d 16 512 s 4 011 s 12 501 s 75 71% e 4 090 s 3 153 s 0 937 s 22 91% f 17 853 s 7 462 s 10 391 s 58 20% average reduction 4 999 s 42 27% table 4 results of application launch time optimization the average reduction in application launch time was almost 5 seconds, a 42% improvement this result suggests that it is worthwhile to optimize applications, wherever possible
We use cookies to improve your experience on our website and to show you relevant advertising. Manage you settings for our cookies below.
These cookies are essential as they enable you to move around the website. This category cannot be disabled.
These cookies collect information about how you use our website. for example which pages you visit most often. All information these cookies collect is used to improve how the website works.
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and tailor the website to provide enhanced features and content for you.
You have successfully updated your cookie preferences.