From b92f5087e2fac9e2c1cd2427eb872df65b90b274 Mon Sep 17 00:00:00 2001 From: Leandro Moreira Date: Mon, 19 Feb 2024 14:48:08 -0300 Subject: [PATCH] add api plans --- doc/DEV_LOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/DEV_LOG.md b/doc/DEV_LOG.md index 6cca613..74e0ae7 100644 --- a/doc/DEV_LOG.md +++ b/doc/DEV_LOG.md @@ -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