You can easily associate mediaframe to a datasource control and it simply works. Toggle the code view below to see what's going on.
Toggle (declarative syntax and remarks);