Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Error Handling and Connection Stability for AntMediaType.Play #6974

Open
kimPongsakorn opened this issue Jan 21, 2025 · 1 comment
Open

Comments

@kimPongsakorn
Copy link

Current Behavior

When using AntMediaType.Play:

  • Errors are only visible in development logs
  • No callback notifications when stream fails
  • Connection issues are difficult to diagnose in production
  • Unable to effectively monitor stream quality
  • Developers cannot implement proper error handling

Expected Behavior

  1. Error Handling:

    • Add callbacks for stream connection failure notifications
    • Return error data with meaningful codes and messages
    • Allow developers to handle different types of errors appropriately
  2. Connection Status Monitoring:

    • Add callbacks for connection state changes
    • Provide detailed information when connection fails
    • Allow configuration of reconnection attempts
  3. Stream Quality Monitoring:

    • Add callbacks for quality monitoring
    • Provide stream health status information
    • Allow quality-based fallback options configuration

Benefits

  1. Better error handling and debugging capabilities
  2. Improved user experience with appropriate error messages
  3. Ability to implement fallback strategies
  4. Enhanced monitoring capabilities

/label enhancement
/label error-handling
/label connection-stability

@burak-58
Copy link
Contributor

Thank you @kimPongsakorn for the suggestions. I will put it backlog and we can consider getting this to plan later. Also we are open to the any collaboration with this.

@burak-58 burak-58 moved this to 📋 Backlog in Ant Media Server Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants