Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk): describe the video conversion frame bound accurately

Yudhi Armyndharis4cadbf3a3806
diff --git a/sdk/go/media.go b/sdk/go/media.go
index be5d5f60d..895c4b694 100644
--- a/sdk/go/media.go
+++ b/sdk/go/media.go
@@ -59,8 +59,8 @@ func (s *MediaService) ConvertVoice(ctx context.Context, sessionID string, in Co
}
// ConvertVideo converts video into an MP4 every WhatsApp client accepts: baseline
-// H.264 with AAC audio, long edge bounded at 1280, index moved to the front for
-// immediate playback. Requires an OPERATOR-level key.
+// H.264 with AAC audio, fitted inside 1280x720 (720x1280 portrait), index moved to
+// the front for immediate playback. Requires an OPERATOR-level key.
func (s *MediaService) ConvertVideo(ctx context.Context, sessionID string, in ConvertMediaInput) (*ConvertedMedia, error) {
var out ConvertedMedia
err := s.client.do(ctx, "POST", s.base(sessionID)+"/convert/video", nil, in, &out)
diff --git a/sdk/javascript/src/resources/media.ts b/sdk/javascript/src/resources/media.ts
index c24c0e24f..33b06cde8 100644
--- a/sdk/javascript/src/resources/media.ts
+++ b/sdk/javascript/src/resources/media.ts
@@ -41,8 +41,8 @@ export class MediaResource {
/**
* Convert video into an MP4 every WhatsApp client accepts: baseline H.264 with AAC
- * audio, long edge bounded at 1280, index moved to the front for immediate playback.
- * Requires an OPERATOR key.
+ * audio, fitted inside 1280x720 (720x1280 portrait), index moved to the front for
+ * immediate playback. Requires an OPERATOR key.
*/
convertVideo(sessionId: string, input: ConvertMediaInput): Promise<ConvertedMedia> {
return this.client.request<ConvertedMedia>({
diff --git a/sdk/php/src/Resources/MediaResource.php b/sdk/php/src/Resources/MediaResource.php
index 72d1ff7be..e2154f84b 100644
--- a/sdk/php/src/Resources/MediaResource.php
+++ b/sdk/php/src/Resources/MediaResource.php
@@ -49,8 +49,8 @@ class MediaResource
/**
* Convert video into an MP4 every WhatsApp client accepts: baseline H.264 with
- * AAC audio, long edge bounded at 1280, index moved to the front for immediate
- * playback. Requires an OPERATOR-level key.
+ * AAC audio, fitted inside 1280x720 (720x1280 portrait), index moved to the front
+ * for immediate playback. Requires an OPERATOR-level key.
*
* @param array<string,mixed> $media Exactly one of url or base64.
* @return array<string,mixed>
diff --git a/sdk/python/openwa/resources/media.py b/sdk/python/openwa/resources/media.py
index 40b16e84f..6caf23d16 100644
--- a/sdk/python/openwa/resources/media.py
+++ b/sdk/python/openwa/resources/media.py
@@ -46,8 +46,8 @@ class MediaResource:
) -> ConvertedMedia:
"""Convert video into an MP4 every WhatsApp client accepts.
- Baseline H.264 with AAC audio, long edge bounded at 1280, index moved to the front
- for immediate playback. Requires an OPERATOR-level key.
+ Baseline H.264 with AAC audio, fitted inside 1280x720 (720x1280 portrait), index
+ moved to the front for immediate playback. Requires an OPERATOR-level key.
"""
return self._http.request(
"POST",