setLogSink

expect fun setLogSink(level: FFmpegLogLevel = FFmpegLogLevel.Warning, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

FFmpeg logs on whichever thread it runs, including its own decoder threads, so sink must be safe to call from any thread. It must not call KiteFFmpeg, and it should return quickly, because the thread that logged waits for it. An exception it throws is dropped. On the web the setting also reaches a codec module that loads later. The placeholder backend has no FFmpeg and never calls sink.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

FFmpeg logs on whichever thread it runs, including its own decoder threads, so sink must be safe to call from any thread. It must not call KiteFFmpeg, and it should return quickly, because the thread that logged waits for it. An exception it throws is dropped. On the web the setting also reaches a codec module that loads later. The placeholder backend has no FFmpeg and never calls sink.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

FFmpeg logs on whichever thread it runs, including its own decoder threads, so sink must be safe to call from any thread. It must not call KiteFFmpeg, and it should return quickly, because the thread that logged waits for it. An exception it throws is dropped. On the web the setting also reaches a codec module that loads later. The placeholder backend has no FFmpeg and never calls sink.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

FFmpeg logs on whichever thread it runs, including its own decoder threads, so sink must be safe to call from any thread. It must not call KiteFFmpeg, and it should return quickly, because the thread that logged waits for it. An exception it throws is dropped. On the web the setting also reaches a codec module that loads later. The placeholder backend has no FFmpeg and never calls sink.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

FFmpeg logs on whichever thread it runs, including its own decoder threads, so sink must be safe to call from any thread. It must not call KiteFFmpeg, and it should return quickly, because the thread that logged waits for it. An exception it throws is dropped. On the web the setting also reaches a codec module that loads later. The placeholder backend has no FFmpeg and never calls sink.