Pursed lip breathing is a breathing technique that is used for treatment of respiratory diseases and stress reduction. The goal of this thesis is the development of a framework for Unity game engine that allows developers to quickly and easily produce interactive applications for respiratory training using pursed lip breathing technique. For this purpose, an algorithm for breathing detection was developed and its efficacy has been shown with testing. A tool for video playback on mobile devices was also developed. Both tools were then integrated together, to allow us to control video playback by breathing into the microphone. Great emphasis is on the mutual independence of the two tools so that they can also be used separately, depending on the needs of the target application.