WEB_APP/Kurogo

Kurogo Tutorial 18 - Video Module -

솔웅 2012. 6. 7. 00:10
반응형

Video Module

video 모듈은 YouTube, Vimeo and Brightcove 같은 3rd party websites 의 비디오 컨텐트에 mobile에서 access 해서 내용을 보여주도록 하는 모듈입니다.


Configuring the Sources


비디오 모듈은 각 섹센에 대해 구별되는 feed를 사용해서 섹션별 비디오들을 organize 할 수 있도록 해 줍니다. 각 섹션에는 service provider에 대한 정보가 있고 tag나 author 에 의해 filter 될 수 있습니다. (문자 검색에 의해서도 filter 될 수 있습니다.) feed 는 SITE_DIR/config/video/feeds.ini 안에서 configure 됩니다.


각 fee는 section에 포함 됩니다. 각 section의 이름은 일반적으로 그렇게 중요하지는 않지만 반드시 unique 해야 합니다.

각 feed에는 아래 옵션들을 사용하게 됩니다.

  • RETRIEVER_CLASS - The Data Retriever to use. Currently supported retrievers include:
    • YouTubeRetriever
    • VimeoRetriever
    • BrightcoveRetriever
  • TITLE - The textual label used when showing the section list
  • AUTHOR - optional, used to limit the results by author
  • TAG - optional, used to limit the results by tag



YouTubeRetriever


유튜브에는 아래 옵션이 추가적으로 더 있습니다.

  • PLAYLIST - optional, used to limit the results by a particular playlist


VimeoRetriever

Vimeo에는 아래 옵션이 추가적으로 더 있습니다.

  • CHANNEL - optional, used to limit the results by a particular channel


BrightcoveRetriever

Brightcove service를 사용하시려면 몇개의 parameter들을 사용하셔야 합니다.

값들은 Brightcove` 에서 받을 수 있습니다.

  • token
  • playerKey
  • playerId


Configuring Display Options

  • MAX_PANE_RESULTS - (optional) tablet device에서 display 될 Maximum number. Defaults는 5.
  • MAX_RESULTS - (optional) 비디오 모듈의 index 페이지에서 표시될 maximum number. Defaults는 10.
  • BOOKMARKS_ENABLED - (optional) true로 세팅하면 즐겨찾기 할 수 있는 표시가 나타남. 디폴트는 true
  • SHARING_ENABLED - (optional) Defaults to true. true로 세팅하면 detail page에 현재 비디오를 share 할 수 있는 링크가 나타남. 디폴트는 true.


반응형