Best Practices
Essential guidelines and recommendations for optimizing your RIXL workflow, from media preparation to production deployment.
Get the most out of RIXL with these proven best practices. Whether you're just getting started or optimizing an existing workflow, these guidelines will help you achieve better performance, quality, and efficiency.
Media Processing Best Practices
Video Format Selection
Choose the right format for best processing speed and quality:
MP4 + H.264 (Recommended)
Fastest processing with universal compatibility. Use for most content.
MOV (Apple Content)
Excellent for content from iPhone, iPad, and Mac devices.
Avoid Legacy Formats
AVI, FLV require conversion overhead. Convert to MP4 first.
Quality Tier Selection
Choose the right quality tier based on your content and audience:
Best for:
- Web content and tutorials
- Desktop-focused viewing
- Fast processing requirements
- Bandwidth-conscious delivery
Specifications:
- 720p HD maximum resolution
- 24fps/30fps frame rates
- Fastest processing times
- Smallest file sizes
Best for:
- Social media content
- Mobile-first experiences
- Vertical video content
- 60fps smooth motion
Specifications:
- 1080p Full HD maximum
- Up to 60fps frame rates
- Mobile-optimized encoding
- Medium processing times
Best for:
- Professional broadcasts
- 4K/HDR content
- Premium streaming experiences
- Production-quality output
Specifications:
- 4K Ultra HD support
- Up to 60fps with HDR
- Professional audio processing
- Longest processing times
File Preparation Guidelines
Source Quality
Upload the highest quality version you have. RIXL will optimize down to appropriate sizes automatically.
- Video: Up to 2GB per file
- Images: Up to 100MB per file
- Resolution: Keep original resolution, avoid upscaling
Audio Processing
Use recommended audio settings for best results:
- Codec: Opus (preferred) or MP3
- Bitrate: 128kbps for most content
- Channels: Stereo for standard content
Frame Rate Standards
Stick to standard frame rates for optimal processing:
- 24fps: Cinematic content
- 30fps: Standard web video
- 60fps: Smooth motion (Shorts/Pro tiers)
Platform Workflow Best Practices
Project Organization
Structure your projects for scalability and team collaboration:
Project Separation
Create separate projects for different campaigns, brands, or environments (dev/staging/prod).
Server Location
Choose server regions closest to your primary audience for optimal delivery performance.
Media Library Organization
Follow these organization strategies for efficient content management:
Folder Structure Best Practices:
- Organize by project or campaign
- Use consistent naming conventions
- Create date-based folders for time-sensitive content
- Separate content types (videos, images, documents)
Tagging Strategy:
- Use descriptive, searchable tags
- Create tag hierarchies for complex categorization
- Apply bulk tagging for efficiency
- Include purpose tags (hero, thumbnail, background)
Content Lifecycle Management:
- Start with draft status for review
- Use approval workflows for team content
- Archive unused or outdated content
- Regular cleanup of duplicate content
Team Collaboration
Set up effective team workflows:
Role-Based Access
Assign appropriate roles based on team member responsibilities:
- Owner: Full access including billing
- Admin: Project and team management
- Member: Content upload and management
- Viewer: Read-only access
Approval Workflows
Implement content approval processes:
- Draft → Review → Published workflow
- Team comments and feedback
- Version history tracking
- Content status management
Project Templates
Create reusable project structures:
- Pre-configured folder hierarchies
- Standard tag sets
- Default processing settings
- Team permission templates
SDK Implementation Best Practices
Installation and Setup
Follow proper installation procedures for reliable performance:
Always use the latest stable version of the SDK and ensure your React version is 18.0 or higher.
Package Management:
# Use your preferred package manager
npm install @rixl/videosdk-react
# or
yarn add @rixl/videosdk-reactTypeScript Configuration:
- Enable strict mode for better type safety
- Use provided TypeScript definitions
- Import components with proper typing
Component Usage Patterns
Video Component Best Practices:
import {Video} from '@rixl/videosdk-react';
// Basic implementation
<Video
id="your-media-id"
className="w-full h-auto rounded-lg"
autoPlay={false}
muted={false}
progressBar={true}
allowFullscreen={true}
/>// Advanced configuration
<Video
id="your-media-id"
className="aspect-video"
autoPlay={true}
muted={true}
loop={true}
progressBar={false}
allowPlayPause={false}
// For background videos
/>// Performance optimized
<Video
id="your-media-id"
className="w-full h-auto"
// Let RIXL handle quality selection
// Enable lazy loading for off-screen content
loading="lazy"
/>Image Component Best Practices:
import { Image } from '@rixl/videosdk-react';
// Optimized image usage
<Image
id="your-image-id"
alt="Descriptive alt text for accessibility"
className="w-full h-auto object-cover"
// Automatic format selection (WebP, AVIF)
// Responsive sizing
// Thumbhash placeholders
/>Accessibility Implementation
Ensure your media components are accessible:
Alt Text
Always provide descriptive alt text for images and meaningful titles for videos.
Keyboard Navigation
RIXL components include built-in keyboard navigation support.
Screen Readers
Components are WCAG 2.1 compliant with proper ARIA attributes.
Subtitles
Use subtitle support for video content accessibility.
Browser Compatibility
Ensure broad compatibility:
- Modern Browsers: Full feature support (Chrome 88+, Firefox 85+, Safari 14+, Edge 88+)
- Mobile Browsers: Native iOS Safari and Android Chrome support
- Graceful Fallbacks: Automatic degradation for older browsers
- Testing: Test across target browsers and devices
API Integration Best Practices
Authentication and Security
Protect your API keys and implement secure practices:
API keys are like passwords for your project. Keep them secure and never share them publicly or commit them to version control.
Security Guidelines:
- Store API keys in environment variables
- Use different keys for development and production
- Rotate keys regularly
- Monitor API key usage for suspicious activity
- Implement proper error handling for authentication failures
Upload Implementation
Follow proven patterns for reliable uploads:
Initialize Upload
Use the three-step upload process:
- Initialize upload to get presigned URLs
- Upload file directly to secure cloud storage
- Complete upload to trigger processing
Error Handling
Implement comprehensive error handling:
- Retry logic for failed uploads
- Progress tracking and user feedback
- Timeout handling for large files
- Network error recovery
Performance
Improve upload performance:
- Use multipart uploads for files >100MB
- Implement resume capability for interrupted uploads
- Monitor upload progress and provide feedback
- Batch multiple uploads efficiently
Monitoring and Status Tracking
Implement effective monitoring:
// Example status monitoring pattern
const monitorProcessing = async (videoId) => {
const pollInterval = 5000; // 5 seconds
while (true) {
const status = await checkProcessingStatus(videoId);
if (status.state === 'completed') {
break;
} else if (status.state === 'failed') {
handleProcessingError(status.error);
break;
}
// Adjust polling frequency based on processing stage
await new Promise(resolve => setTimeout(resolve, pollInterval));
}
};Monitoring Best Practices:
- Use smart polling intervals (start frequently, reduce over time)
- Implement exponential backoff for errors
- Cache status responses briefly to reduce API calls
- Clean up monitoring resources when complete
- Batch monitors multiple items efficiently
Security and Performance Best Practices
Content Security
Protect your content and maintain security:
Access Control
Use project permissions and API keys to control who can access your media.
Secure Delivery
Deliver content over HTTPS with secure, signed URLs for private media.
Regular Audits
Periodically review access logs and permissions to ensure security.
Performance Optimization
Maximize delivery speed and efficiency:
Leverage CDN
RIXL's global CDN automatically caches content close to your users.
Use Lazy Loading
Load images and videos only when they enter the viewport to save bandwidth.
Optimize Placeholders
Use smart placeholders to improve perceived load time and prevent layout shift.
What's Next?
Ready to put these practices into action? Start with the 5-Minute Quick Start Guide or explore the Platform Dashboard Guide for more in-depth workflows.