[tvplay] Fix f4m URL extraction (Closes #4119)

Add query parameters which are needed by AkamaiHD F4M player.
Also, modernize a bit.