implemented media element source functionality