Skip to content

v1.2.0

Latest

Choose a tag to compare

@FastPix-dev FastPix-dev released this 10 Sep 10:09
· 2 commits to main since this release
c546ac8

Version - [1.2.0]

Breaking

  • Media duration is now a float (seconds) instead of an "HH:MM:SS"
    string, matching the updated API. Affects the media responses returned by
    get_media, list_media, list_live_clips, updated_media,
    updated_source_access, updated_mp4_support, get_media_clips, and the
    playlist mediaList items.
    Publish this version only once production returns the numeric duration.

Added

  • enable_recording on live stream creation (inputMediaSettings,
    defaults to true) — controls whether the livestream is recorded to a VOD
    asset.
  • access_restrictions (domain and user-agent allow/deny policies) on
    live playback ID create/get and on live stream playbackSettings.
  • update_live_stream_domain_restrictions() /
    update_live_stream_user_agent_restrictions()
    (and _async variants) —
    PATCH /live/streams/{streamId}/playback-ids/{playbackId}/domains and
    /user-agents.
  • Async variants for the on-demand update_domain_restrictions and
    update_user_agent_restrictions, which were sync-only.
  • Model contract test suite (tests/test_models.py).

Fixed

  • Async error handling never raised_raise_for_status_async was called
    without await across the async methods, so failed responses returned
    None instead of raising typed errors.
  • Return annotations for live playback ID create/get, list_media, and
    list_live_clips
    corrected to the actual response envelopes
    (PlaybackIDSuccessResponse, ListMediaResponse, ListLiveClipsResponse).
  • Return annotations across all resource methods — 104 methods declared the
    inner data type or a list where the SDK actually returns the {success, data}
    envelope, so type checkers rejected .data access. All now match the returned
    class; a test enforces this.