Add element connect method filtering by media type

Change-Id: Ibc98ecbf67f46fcafa6cbf26d759c83c0b9ca398