embed function now working

output code to text area and loads osmf player to test the code.