package com.humand.demo.modules.LivestreamService

import android.util.Log

/**
 * Constants for the LivestreamService module.
 */
object LivestreamConstants {
    object RNEvents {
        const val LIVESTREAM_STATE_CHANGED = "LIVESTREAM_STATE_CHANGED_EVENT"
        const val LIVESTREAM_PARTICIPANTS_CHANGED = "LIVESTREAM_PARTICIPANTS_CHANGED_EVENT"
        const val LIVESTREAM_MEDIA_STATE_CHANGED = "LIVESTREAM_MEDIA_STATE_CHANGED_EVENT"
        const val LIVESTREAM_CLOSED_CAPTION = "LIVESTREAM_CLOSED_CAPTION_EVENT"
        const val LIVESTREAM_ERROR = "LIVESTREAM_ERROR_EVENT"
    }

    object LivestreamState {
        const val IDLE = "idle"
        const val JOINING = "joining"
        const val JOINED = "joined"
        const val LEFT = "left"  // Broadcast has ended
        const val EXITED = "exited"  // User left, broadcast still ongoing
    }
}

fun livestreamLog(message: String) {
    Log.d("LivestreamManager", "[LivestreamManager] $message")
}
