Skip to content

Commit

Permalink
doc: Update edit options
Browse files Browse the repository at this point in the history
  • Loading branch information
dragermrb committed Mar 27, 2022
1 parent 700862e commit 329d025
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,28 @@ addListener(eventName: 'transcodeProgress', listenerFunc: (info: ProgressInfo) =

#### EditOptions

| Prop | Type |
| --------------- | ---------------------------------------------------------------------------- |
| **`path`** | <code>string</code> |
| **`trim`** | <code>{ startsAt?: number; endsAt?: number; }</code> |
| **`transcode`** | <code>{ height?: number; width?: number; keepAspectRatio?: boolean; }</code> |
| Prop | Type |
| --------------- | ------------------------------------------------------------- |
| **`path`** | <code>string</code> |
| **`trim`** | <code><a href="#trimoptions">TrimOptions</a></code> |
| **`transcode`** | <code><a href="#transcodeoptions">TranscodeOptions</a></code> |


#### TrimOptions

| Prop | Type | Description |
| -------------- | ------------------- | ------------------------ |
| **`startsAt`** | <code>number</code> | StartsAt in milliseconds |
| **`endsAt`** | <code>number</code> | EndsAt in milliseconds |


#### TranscodeOptions

| Prop | Type |
| --------------------- | -------------------- |
| **`height`** | <code>number</code> |
| **`width`** | <code>number</code> |
| **`keepAspectRatio`** | <code>boolean</code> |


#### MediaFileResult
Expand All @@ -100,12 +117,12 @@ addListener(eventName: 'transcodeProgress', listenerFunc: (info: ProgressInfo) =

#### ThumbnailOptions

| Prop | Type |
| ------------ | ------------------- |
| **`path`** | <code>string</code> |
| **`at`** | <code>number</code> |
| **`width`** | <code>number</code> |
| **`height`** | <code>number</code> |
| Prop | Type | Description |
| ------------ | ------------------- | -------------------------------------------------------------------- |
| **`path`** | <code>string</code> | |
| **`at`** | <code>number</code> | The time position where the frame will be retrieved in milliseconds. |
| **`width`** | <code>number</code> | |
| **`height`** | <code>number</code> | |


#### ProgressInfo
Expand Down

0 comments on commit 329d025

Please sign in to comment.