Options
Menu

Interface IVideo

動画(IRenderingUnit を格納する入れ物)

Video (A container for IRenderingUnit objects)

Hierarchy

Index

Properties

charCount

charCount: number

duration

duration: number

endTime

endTime: number

firstChar

firstChar: IChar

firstGraphic

firstGraphic: IGraphic

firstPhrase

firstPhrase: IPhrase

firstWord

firstWord: IWord

graphicCount

graphicCount: number

graphics

graphics: IGraphic[]

lastChar

lastChar: IChar

lastGraphic

lastGraphic: IGraphic

lastPhrase

lastPhrase: IPhrase

lastWord

lastWord: IWord

phraseCount

phraseCount: number

phrases

phrases: IPhrase[]

startTime

startTime: number

wordCount

wordCount: number

Methods

contains

  • contains(time: number): boolean
  • Parameters

    • time: number

    Returns boolean

findChar

  • Get character object in the current video

    Parameters

    • time: number

      position [ms]

    • Optional options: FindTimedObjectOptions

      optional parameters for finding character

    Returns IChar

findGraphic

  • Get graphic object in the current video

    Parameters

    Returns IGraphic

findIndex

  • Parameters

    Returns number

findPhrase

  • Get phrase object in the current video

    Parameters

    Returns IPhrase

findWord

  • Get word object in the current video

    Parameters

    Returns IWord

getChar

  • getChar(index: number): IChar
  • Parameters

    • index: number

    Returns IChar

getGraphic

  • Parameters

    • index: number

    Returns IGraphic

getPhrase

  • getPhrase(index: number): IPhrase
  • Parameters

    • index: number

    Returns IPhrase

getWord

  • getWord(index: number): IWord
  • Parameters

    • index: number

    Returns IWord

overlaps

  • overlaps(startTime: number, endTime: number): boolean
  • Parameters

    • startTime: number
    • endTime: number

    Returns boolean

progress

  • progress(time: number): number
  • 指定された位置を [0, 1] にマッピングして返す

    Returns the position in [0, 1]

    Parameters

    • time: number

      位置 / Position in this video

    Returns number