work with both Video and Audio types