u2takey / ffmpeg-go

golang binding for ffmpeg
Apache License 2.0
1.67k stars 167 forks source link

Stop playing a stream #72

Open Trojan295 opened 1 year ago

Trojan295 commented 1 year ago

Hello,

I would like to use this library to play an endless stream. Is there an option to stop playing the stream? Like executing stream.Stop() in another goroutine or by passing a context.Context, which can be cancelled?

2hangchen commented 2 months ago

Have you solved your problem @Trojan295

Trojan295 commented 2 months ago

I wrote my own wrapper over ffmpeg binary

2hangchen commented 2 months ago

I wrote my own wrapper over ffmpeg binary

well, I took care of that by managing contextwithcancel