Skip to content

Add ClipSet to schema #86

@adgad

Description

@adgad

There was an initial attempt, that was paused with a view to making things more consistent across the nodes.

I think something like this would be consistent with the rest of things (commented where I've made some field name changes).

Note: this will require changes in Spark (toContentTree/preview) and cp-content-pipeline, to align with the changes.

ClipSet

interface ClipSet extends Node {
  type: "clip-set"
  id: string
  autoplay: boolean
  loop: boolean
  muted: boolean
  layoutWidth: 'in-line' | 'mid-grid' | 'full-grid' //renamed for consistency note: does spark only support these? as opposed to the full set of layout widths other components support? if so, why?
  external noAudio: boolean
  external caption: string
  external credits: string
  external description: string
  external displayTitle: string
  external subtitle: string
  external clips: Clip[]
}
type Clip {
  id: string
  format: 'standard-inline' | 'mobile'
  sourceSet: ClipSource[] //renamed for consistency
  poster: string
}
type ClipSource {
  audioCodec: string
  binaryUrl: string
  duration: number
  mediaType: string
  pixelHeight: number
  pixelWidth: number
  videoCodec: string
}

ClipSet represents a short piece of possibly-looping video content for an article.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions