Skip to content
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

add chunked uploads to the postman api description #70

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,19 @@ In addition to the GitHub Secrets, you'll need to set the `CLIENT_CONTAINER_NAME

You may use the `CLIENT_NOTIFICATION_ROUTE` env variable if you have a custom notifications url, which differs from the default client implementation.

### Chunk a file in Artisan Tinker

gael-connan-cybex marked this conversation as resolved.
Show resolved Hide resolved
gael-connan-cybex marked this conversation as resolved.
Show resolved Hide resolved
To test video transcoding for chunked uploads, you need to cut a videofile into at least two pieces. There is no additional change to the files. It is important that both chunks have the same filename, else they cannot be joined on the other side.
Place a file called `test.mp4` in the `storage/app` folder.

```php
$chunkSize = <chunkSize in bytes>;
$fh = fopen(Storage::path('test.mp4'), 'r');

Storage::put('chunk1/chunkedVideo.mp4', fread($fh, $chunkSize));
Storage::put('chunk2/chunkedVideo.mp4', fread($fh, $chunkSize));
```

## License

The Transmorpher media server is licensed under the [MIT license](https://opensource.org/licenses/MIT).
Loading
Loading