Hi Swetha,
You can use below code to get the Video in SAPUI5 application.
createContent : function(oController) {
var oPanel = new sap.ui.commons.Panel();
var html1 = new sap.ui.core.HTML("html1", {
content:
"<video width='30%' height='30%' controls>" +
"<source src='http://www.w3schools.com/html/movie.mp4' type='video/mp4'>" +
"Your browser does not support the video tag." +
"</video>"
});
oPanel.addContent(html1);
return oPanel;
}
For Audio also we can do like this.
Thanks&Regards
Sridevi