Liking cljdoc? Tell your friends :D

qy-upup.sora-ai-video.core

Core namespace for interacting with Sora AI video data (inspired by Supermaker.ai). Provides utility functions for generating Sora video URLs, extracting metadata, and processing mock video data.

Core namespace for interacting with Sora AI video data (inspired by Supermaker.ai).
Provides utility functions for generating Sora video URLs, extracting metadata,
and processing mock video data.
raw docstring

extract-video-metadataclj

(extract-video-metadata video-data)

Extracts relevant metadata from a mock Sora AI video data structure.

Params: video-data - A map representing Sora AI video data, containing keys like :title, :description, :duration, and :upload-date.

Example: (extract-video-metadata {:title "A beautiful sunset", :description "A stunning sunset over the ocean.", :duration 120, :upload-date "2024-01-01"}) ;=> {:title "A beautiful sunset", :description "A stunning sunset over the ocean.", :duration 120, :upload-date "2024-01-01"}

Extracts relevant metadata from a mock Sora AI video data structure.

Params:
  video-data - A map representing Sora AI video data, containing keys like :title, :description, :duration, and :upload-date.

Example:
  (extract-video-metadata {:title "A beautiful sunset", :description "A stunning sunset over the ocean.", :duration 120, :upload-date "2024-01-01"})
  ;=> {:title "A beautiful sunset", :description "A stunning sunset over the ocean.", :duration 120, :upload-date "2024-01-01"}
raw docstring

generate-sora-video-urlclj

(generate-sora-video-url video-id)
(generate-sora-video-url video-id params)

Generates a Sora AI video URL based on a video ID and optional parameters.

Params: video-id - The unique identifier for the Sora AI video. params - (Optional) A map of query parameters to include in the URL.

Example: (generate-sora-video-url "abc123xyz" {:quality "high", :autoplay true}) ;=> "https://supermaker.ai/video/sora-ai-video/abc123xyz?quality=high&autoplay=true"

Generates a Sora AI video URL based on a video ID and optional parameters.

Params:
  video-id - The unique identifier for the Sora AI video.
  params   - (Optional) A map of query parameters to include in the URL.

Example:
  (generate-sora-video-url "abc123xyz" {:quality "high", :autoplay true})
  ;=> "https://supermaker.ai/video/sora-ai-video/abc123xyz?quality=high&autoplay=true"
raw docstring

process-mock-video-dataclj

(process-mock-video-data video-data-list)

Processes a list of mock Sora AI video data, adding a 'processed' flag to each.

Params: video-data-list - A list of maps, where each map represents Sora AI video data.

Example: (process-mock-video-data [{:title "Video 1"} {:title "Video 2"}]) ;=> [{:title "Video 1", :processed true} {:title "Video 2", :processed true}]

Processes a list of mock Sora AI video data, adding a 'processed' flag to each.

Params:
  video-data-list - A list of maps, where each map represents Sora AI video data.

Example:
  (process-mock-video-data [{:title "Video 1"} {:title "Video 2"}])
  ;=> [{:title "Video 1", :processed true} {:title "Video 2", :processed true}]
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close