Ever wanted to save your device preferences for a Daily call?

If you’re building a custom call UI with Daily’s callObject, you can save the user’s device preference (i.e. their preferred mic, camera, and speakers) by passing the useDevicePreferenceCookies property to dailyConfig while creating the callObject, like below:

const callObject = DailyIframe.createCallObject({ 
 url: 'https://your-domain.daily.co/your-room',
 dailyConfig: { 
  useDevicePreferenceCookies: true
 }
});

Here you go 🎉, now Daily will remember the user’s device preference and auto-select it for them!