Skip to content

SIPSorceryMedia.FFmpeg V1.2.1 Release

Latest
Compare
Choose a tag to compare
@ChristopheI ChristopheI released this 01 Jul 09:50
· 24 commits to master since this release
c38a18a

For coherency remove event OnEndOfFile and use instead OnAudioSourceError or OnVideoSourceError.

Remove event OnEndOfFile in AudioSource, FileSource and VideoSource.
Use instead OnAudioSourceError or OnVideoSourceError.

The goal is to be coherent when a source is not accessible OR no more accessible.
The source is no more accessible when the device in use is unplugged for example or if the file (remote/local) is no more accessible (network trouble, ...)

FFmpeg raises an error when a source is not accessible (so in initialization step) but it raises EOF when it's no more accessible ...

On a file device if the "loop" option is used, error event is not triggered immediately on EOF. Because it's not possible to know is EOF is really reached or if the file is no more accessible. The init step is started and if it fails the error event if raised