버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.
Sv translation
languageko
  1. 응용 웹 콘텐츠 요소 기본 구조

    Stylesheet
    classscreen

    Image Added

    • ContentApi

      LFD 콘텐츠 내 페이지(Page)와 페이지에 포함된 이미지, 텍스트 및 비디오 요소 속성을 변경하거나 가져올 수 있습니다.

    • LocalApi

      응용 웹 콘텐츠 요소가 실행되는 로컬(Local)환경의 정보를 가져올 수 있습니다.

    • DeviceApi

      W Player, Tizen 등 기기(Device) 관련 정보를 가져올 수 있습니다.

    • UtilityApi

      응용 웹 콘텐츠 요소 개발용 유틸리티들을 사용할 수 있습니다.

    • Event CallBack

      응용 웹 콘텐츠 요소의 수명 주기 이벤트, 데이터링크(Datalink) 및 외부 소스로부터 전달되는 데이터를 수신하는 콜백(Callback) 함수를 제공합니다.

  2. 응용 웹 콘텐츠 요소 수명 주기

    응용 웹 콘텐츠 요소는 다음 수명 주기를 가지며 각 상태 진입 시점을 콜백 (Callback)으로 전달받을 수 있습니다. Ready와 Play 상태를 활용하면 원활하게 재생할 수 있습니다.

    Stylesheet
    classscreen

    Image Added

    • Ready

      페이지(Page) 내의 모든 요소를 모두 로드(Load)하면 응용 웹 콘텐츠 요소가 W Player API를 사용할 수 있는 시점을 전달합니다. 응용 웹 콘텐츠 요소는 iframe 형태로 로드(Load)하며 화면에 표시하기 전 상태(Back Page Layer, 현재 화면에는 이전 콘텐츠를 재생하고 있는 상태)입니다. 화면에 나타나기 전에 필요한 초기화를 진행할 수 있습니다.

    • Play

      응용 웹 콘텐츠 요소가 화면에 표시되는 시점(Front Page layer)을 전달합니다.

      • Page Changed: 재생 중 페이지가 전환되는 시점을 전달합니다. (단, 웹 콘텐츠가 공통 페이지에 속해 있을 경우에만 동작합니다.)
      • Web Author에서 저작 시 ‘Sync Timeline’ 옵션 설정을 통해 화면 표시 시점(Play 상태)에 load와 play를 순차적으로 실행할 수 있고 화면 표시 이후에는 Ready, Play 및 Stop 상태가 전달됩니다. (다만, 로드 수행 시 깜박임이 발생할 수 있습니다.)
    • Stop

      응용 웹 콘텐츠 요소가 종료되기 전 시점을 전달합니다. 응용 웹 콘텐츠 요소 내에 사용된 리소스를 반환할 수 있습니다. (예: clearInterval, clearTimeout, $wp = null)

      경고
      title주의

      정상적으로 반환되지 않은 리소스에서 메모리 누수가 발생하면, W Player 재생이 영향을 받을 수 있습니다.

Sv translation
languageen
  1. Basic structure of web content elements

    Stylesheet
    classscreen

    Image Added

    • ContentApi

      Modify or import pages in LFD content and image, text, and/or video element properties included in the pages.

    • LocalApi

      Import information about the local environment in which web content elements are run.

    • DeviceApi

      Import information related to devices such as W Player and Tizen.

    • UtilityApi

      Access utilities required for developing web content elements.

    • Event CallBack

      Provides a callback function that receives life cycle events of web content elements and data sent from datalink and/or external sources.

  2. Life cycle of web content elements

    Web content elements have the following life cycle, and the time at which an element goes into each state can be received via the callback function. Seamless playback is possible by using Ready and Play states.

    Stylesheet
    classscreen

    Image Added

    • Ready

      Sends the time at which web content elements can use W Player API after all elements in a page are loaded. A web content element is loaded in iframe format, being in the Back Page layer which is a state in which the element is not displayed yet (and the previous content is playing on the current screen). Reset is possible as required, before the element appears on the screen.

    • Play

      Sends the time at which the web content element appears on the screen (Front Page layer).

      • Page Changed: Sends the time at which page transition takes place during playback. (This only works when the web content belongs to the common page.)
      • When authoring from Web Author, set the "Sync Timeline" option to allow load and playback to take place in sequential order as soon as the content element appears on the screen (Play state). After the element appears on the screen, the Ready, Play, and Stop states will be sent. (Note that flickering may occur during loading.)
    • Stop

      Sends the time before which web content element playback ends. Resources used in the web content element can be returned. (e.g., clearInterval, clearTimeout, $wp = null)

      경고
      titleCaution

      A memory leak in a resource that has not been returned properly may affect W Player playback.