Skip to content

fix: add missing types for encoding tier & generated subtitles settings #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

dylanjha
Copy link
Collaborator

@dylanjha dylanjha commented Nov 8, 2023

No description provided.

@dylanjha dylanjha requested a review from a team as a code owner November 8, 2023 18:49
name?: string;
passthrough?: string;
language_code?: string;
}
Copy link
Collaborator Author

@dylanjha dylanjha Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interestingly none of these are actually required. This request:

{
	"playback_policy": [
		"public"
	],
	"input": [
		{
			"url": "https://muxed.s3.amazonaws.com/leds.mp4",
			"generated_subtitles": [
				{}
			]
		}
	]
}

Will result in a text track being created with default language_code: "en" and default name: "English CC"

			{
				"type": "text",
				"text_type": "subtitles",
				"text_source": "generated_vod",
				"status": "preparing",
				"name": "English CC",
				"language_code": "en",
				"id": "zHkS8uZkPyY5v45ixKB3pgF8DEZyJrj5P2Nd7bZg2GidHOAyQX6rFQ"
			}

… because you don't pass text_type for multi-track audio
@dylanjha dylanjha merged commit 16d20ad into master Nov 8, 2023
@dylanjha dylanjha deleted the dj/new-params branch November 8, 2023 19:57
@stainless-app stainless-app bot mentioned this pull request Nov 1, 2024
stainless-app bot added a commit that referenced this pull request Feb 19, 2025
@stainless-app stainless-app bot mentioned this pull request Feb 19, 2025
jsanford8 pushed a commit that referenced this pull request Feb 25, 2025
* chore: rebuild project due to codegen change (#523)

* docs: remove suggestion to use `npm` call out (#525)

* chore: remove redundant word in comment (#526)

* feat(internal): make git install file structure match npm (#527)

* chore(internal): remove unnecessary getRequestClient function (#528)

* chore(internal): bump cross-spawn to v7.0.6 (#529)

Note: it is a dev transitive dependency.

* chore(types): nicer error class types + jsdocs (#530)

* chore(internal): update isAbsoluteURL (#531)

* feat: generate more types that are used as request bodies (#532)

* feat(api): api update (#533)

* trigger CI

* chore(internal): fix some typos (#534)

* codegen metadata

* fix(client): normalize method (#535)

* feat: Add video.asset.non_standard_input_detected webhook (#317) (#536)

* docs: minor formatting changes (#537)

* chore(internal): codegen related update (#538)

* chore(internal): codegen related update (#539)

* chore(internal): codegen related update (#541)

* feat(client): send `X-Stainless-Timeout` header (#542)

* feat: Add passthrough field on static renditions (#320) (#543)

* feat: Additional Standard Dimensions (#319) (#544)

* fix(client): fix export map for index exports (#545)

* chore!: deprecate `mp4_support` option (#321) (#547)

* chore(internal): fix devcontainers setup (#548)

* codegen metadata

* release: 10.0.0

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: Samuel El-Borai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants