Interface Broadcaster.LocalMediaObserver

    • Method Detail

      • onLocalMediaClosed

        void onLocalMediaClosed​(boolean success)
        Called when local media writing has stopped. After this call, it is safe to access any created file and trigger media scanning.

        If a broadcast is stopped before any data is produced, the library will not write anything and this callback may return false.

        If finalization fails (for example if the storage is abruptly filled or external media is ejected), the library may leave a temporary file with video data you may be able to salvage.

        Parameters:
        success - True if the the file was successfully written, false otherwise.