<!DOCTYPE html>
<html>
<head>
    <title>MediaMTX Streaming Server</title>
    <meta charset="UTF-8">
    <style>
        body { 
            font-family: Arial, sans-serif; 
            max-width: 800px; 
            margin: 50px auto; 
            padding: 20px;
            background: #f5f5f5;
        }
        .container {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        h1 { color: #333; }
        .endpoint { 
            background: #f4f4f4; 
            padding: 15px; 
            margin: 15px 0; 
            border-radius: 5px;
            border-left: 4px solid #4CAF50;
        }
        code { 
            background: #e0e0e0; 
            padding: 3px 8px; 
            border-radius: 3px;
            font-size: 14px;
            display: block;
            margin-top: 5px;
        }
        .status {
            display: inline-block;
            padding: 5px 15px;
            background: #4CAF50;
            color: white;
            border-radius: 20px;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>📡 MediaMTX Streaming Server</h1>
        <p><span class="status">✅ Online</span></p>
        
        <h2>Endpoints disponibles:</h2>
        
        <div class="endpoint">
            <strong>🎥 HLS Streaming:</strong><br>
            <code>https://streaming.rafaelpachecoblazquez.com/hls/[stream-id]/index.m3u8</code>
            <small>Para usar en OBS Media Source o reproductores HLS</small>
        </div>
        
        <div class="endpoint">
            <strong>📹 WebRTC Publishing:</strong><br>
            <code>https://streaming.rafaelpachecoblazquez.com/webrtc/[stream-id]/whip</code>
            <small>Endpoint WHIP para publicar streams WebRTC</small>
        </div>
        
        <div class="endpoint">
            <strong>🔌 API:</strong><br>
            <code>https://streaming.rafaelpachecoblazquez.com/api/v3/paths/list</code>
            <small>API de MediaMTX para monitoreo</small>
        </div>
        
        <div class="endpoint">
            <strong>❤️ Health Check:</strong><br>
            <code>https://streaming.rafaelpachecoblazquez.com/health</code>
            <small>Verificar estado del servidor</small>
        </div>
    </div>
</body>
</html>