BackgroundThe forced transition to emergency remote teaching (ERT) during the COVID-19 pandemic has significantly impacted health professions education worldwide. In Sweden, the need for alternative solutions for the training of junior doctors became urgent, as many of the mandatory onsite courses required for residents to qualify as specialists were canceled. The purpose of this study was to understand course leaders' perceptions and experiences of using digital technologies, such as video conferencing, to teach medical residents (ST) during the pandemic and beyond.MethodsA qualitative study using semi-structured interviews was conducted with seven course leaders responsible for residency courses during the first year of the pandemic to capture their perceptions and experiences. The interviews were transcribed verbatim and analyzed using thematic analysis, drawing on the technology affordances and constraints theory (TACT) as a framework to explore pedagogical strategies and new teaching practices emerging from the forced use of digital technologies for remote teaching.ResultsThe data analysis revealed affordances of, as well as constraints to, teaching specialist medical training during the pandemic. The findings show that the use of digital conference technologies for ERT can both enable and inhibit social interactions, the interactive learning environment and the utilization of technological features, depending on the individual course leaders’ goals of using the technology and the situated context of the teaching.ConclusionsThe study reflects the course leaders' pedagogical response to the pandemic, as remote teaching became the only way to provide residency education. Initially, the sudden shift was perceived as constraining, but over time they found new affordances through the enforced use of digital technology that helped them not only to cope with the transition but also to innovate their pedagogical methods. After a rapid, forced shift from on-site to digital courses, it is crucial to utilize experiences to create better preconditions for digital technology to facilitate learning in the future.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12909-023-04390-2.