Play YouTube videos over your application.

 

play

Opens a YouTube video on top of your application.


Syntax:

lg.youtube.play(obj);

Arguments:

  1. obj – (object)
    • id – (string) YouTube video ID.
    • title – (string) Specify a title to be used on top.


Example:

lg.youtube.play({id:'GQb_Q8WRL_g', title:'Apple Commercial'});

Back to Top