You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,7 @@ Response: { "count": 5 }
131
131
| POST |`/api/clips/[id]/trim`| Trim music clip audio |
132
132
| GET |`/api/clips/[id]/waveform`| Get waveform peaks for trim UI |
133
133
| POST |`/api/clips/[id]/publish`| Publish music clip (skip trim) |
134
+
| POST |`/api/clips/[id]/ping`| Extend trim deadline (heartbeat) |
134
135
135
136
### POST /api/clips/[id]/watched
136
137
```
@@ -206,6 +207,12 @@ Publishes a music clip that is in `pending_trim` status, skipping the trim step.
206
207
Response: { "ok": true }
207
208
```
208
209
210
+
### POST /api/clips/[id]/ping
211
+
Extends the trim deadline for a music clip in `pending_trim` status. The client sends pings every 10s to keep the trim UI active. When pings stop, the server auto-publishes after the deadline (30s). Only the uploader can ping.
0 commit comments