Setup media element as explained on MSDN's enhancing media element performance page