mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-09-26 19:11:11 +08:00
add api plans
This commit is contained in:
@@ -7,6 +7,25 @@
|
||||
|
||||
# Adding audio (WIP)
|
||||
|
||||
```golang
|
||||
// potential api for stream libav
|
||||
go donutEngine.Stream(
|
||||
StreamParamter{
|
||||
OnVideoData: func(d data[]) error {
|
||||
|
||||
},
|
||||
OnAudioData: func(d data[], stream) error {
|
||||
channel.setData(d,stream.duration)
|
||||
},
|
||||
OnError: func(d data[]) error {
|
||||
|
||||
},
|
||||
Observe: func(st stream) error {
|
||||
metadata.send
|
||||
},
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
## Date: 2/4/24
|
||||
### Summary: Adding audio track
|
||||
|
Reference in New Issue
Block a user