워터마크

재생 화면 위에 가시 워터마크를 표시해 콘텐츠 유출을 억제합니다. visibleWatermark, watermarkText, watermarkConfig 로 설정합니다.

설정

options = mapOf(
    "visibleWatermark" to true,
    "watermarkText" to "NAVER CLOUD PLATFORM",
    "watermarkConfig" to mapOf(
        "randPosition" to true,            // true: 주기적 무작위 이동 / false: 고정
        "randPositionInterVal" to 3000,    // 이동 주기(ms). 기본 3000
        "x" to 70, "y" to 85,              // randPosition=false 일 때 위치(0~100 %)
        "opacity" to 0.5                   // 0~1, 기본 0.5
    ),
    "playlist" to listOf(mapOf("file" to "https://.../master.m3u8"))
)

watermarkConfig

기본설명
randPositiontrue: 주기적 무작위 이동 / false: 고정
randPositionInterVal3000이동 주기(ms)
x / yrandPosition=false 일 때 좌상단 오프셋(0~100 %)
opacity0.5불투명도(0~1)
키 이름 주의 — 이동 주기 키는 웹 오타를 그대로 따른 randPositionInterVal 입니다(올바른 영어 randPositionInterval 아님). 이 키로 써야 인식됩니다.

randPosition=truerandPositionInterVal 마다 잘리지 않는 범위에서 무작위로 이동하고, randPosition=falsex/y (%) 위치에 고정됩니다. 텍스트 배경은 없습니다.

Android SDKBeta