Skip to content

Commit

Permalink
docs: added single thread implementation example.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarankumar-ns committed Sep 22, 2024
1 parent f2dd4d0 commit 3014d2e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.3
- Added single thread wasm implementation. - PR#23

## 1.0.2
- Bump dependencies - js
- Added example to create gif - PR#11
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 RedLeaf Softs Private Limited
Copyright (c) 2024 RedLeaf Softs Private Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ final url = Uri.base.resolve('ffmpeg/ffmpeg-core.js').toString();
FFmpeg ffmpeg = createFFmpeg(CreateFFmpegParam(corePath: url));
```

For single thread implementation which doesn't require `SharedArrayBuffer`.

```dart
// Note: CreateFFmpegParam is optional and and corePath is also optional
FFmpeg ffmpeg = createFFmpeg(CreateFFmpegParam(log: true, corePath: 'https://unpkg.com/@ffmpeg/[email protected]/dist/ffmpeg-core.js',
mainName: 'main'));
```


### Use FFmpeg instance

```dart
Expand Down Expand Up @@ -232,3 +241,8 @@ final controller = VideoPlayerController.network(xFile.path);
```

Supported Browsers - https://caniuse.com/sharedarraybuffer


### Roadmap

- [ ] Migrate to 0.12.x.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ffmpeg_wasm
description: ffmpeg.wasm browser APIs dart port for accessing in Flutter web.
version: 1.0.2
version: 1.0.3
homepage: "https://github.com/redleafsofts/flutter_ffmpeg_wasm"
repository: "https://github.com/redleafsofts/flutter_ffmpeg_wasm"

Expand Down

0 comments on commit 3014d2e

Please sign in to comment.