tests: allow reuse of copyResourceToTemporaryFile


We move copyResourceToTemporaryFile into multimediatestlib so that it
can be reused from other codepaths.

Pick-to: 6.12
Change-Id: I01d4f530a3c70e0a55508e75a2c336e85812bb2a
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Mikko Hallamaa <mikko.hallamaa@qt.io>
commite4c49a788f415f3f22866217fa4e9493d5acf670
parent19bde44661c0e325b3eb7fe6c156069062ff2869
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeMon, 21 Sep 2026 08:33:15 +0000