import{resumeProgress}from"./save-time";export default({player:e,mutedPreview:o,captions:t,progress:r,savePosition:i,onPlay:s})=>{var a=window.navigator.userAgent;if(!a.match(/iPad/i)&&!a.match(/iPhone/i)){e.config.mutedPreview.enabled=o,e.muted=o,e.loop=o,e.config.ajaxProgress=!o&&r,e.config.save_player_position=!o&&i;try{e.toggleCaptions(!!o&&!!t)}catch(e){}return setTimeout(()=>{resumeProgress(e)||e.restart(),setTimeout(()=>{e.muted=o,s()},50)},0),e}console.log("ios device, do not do muted autoplay")};