Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: SAPUI5 controls in Canvas

$
0
0

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


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>