diff --git a/lib/videojs-resolution-switcher.js b/lib/videojs-resolution-switcher.js index 0da2462..808310a 100644 --- a/lib/videojs-resolution-switcher.js +++ b/lib/videojs-resolution-switcher.js @@ -231,7 +231,7 @@ * @returns {Object} {res: string, sources: []} */ function chooseSrc(groupedSrc, src){ - var selectedRes = settings.default; + var selectedRes = settings['default']; // use array access as default is a reserved keyword var selectedLabel = ''; if (selectedRes === 'high') { selectedRes = src[0].res;