Results 1 to 5 of 5

Thread: Embed YouTube Videos?

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    68
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: Embed YouTube Videos?

    Hi All

    How would I embed a YouTube video ?

    Thanks

  2. to embed a video you use de embed code from youtube, you can do something like this, using the html property.

    Code:
    Ext.create('Ext.Panel', {   
    html: '<iframe width="560" height="315" src="http://www.youtube.com/embed/AuzyODgWRp4" frameborder="0" allowfullscreen></iframe>'
    });

  3. #2
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    63
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Embed it with an iframe.

  4. #3
    Sencha User
    Join Date
    Jun 2011
    Location
    Monterrey N.L. Mxico
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default

    to embed a video you use de embed code from youtube, you can do something like this, using the html property.

    Code:
    Ext.create('Ext.Panel', {   
    html: '<iframe width="560" height="315" src="http://www.youtube.com/embed/AuzyODgWRp4" frameborder="0" allowfullscreen></iframe>'
    });

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    68
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Thanks

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    68
    Answers
    1
    Vote Rating
    0
      0  

    Default

    How would I code it so the video would stop playing when I go to another page?
    Now the YouTube Video plays but it only stop When I stop it. Would like it to stop if I go off the page.

    Thanks

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •