1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Youtube Embed vs Youtube player API

Discussion in 'HTML & Website Design' started by CactusWren, May 27, 2020.

  1. #1
    I am learning about embedding videos and wanted to know which method is better?

    Previously, I've just used the share>embed method and pasted a bunch on one page. But I've come across the method shown here. It uses html and JavaScript to put the iframe up. Apparently there used to be another way to change the parameters, but it was deprecated?

    Is using the api method faster or have other benefits I should know about? I am rather new at JavaScript, but I can more or less follow what's going on.
     
    CactusWren, May 27, 2020 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #2
    qwikad.com, May 27, 2020 IP
  3. Akeel Din

    Akeel Din Greenhorn

    Messages:
    3
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #3
    Personally, I'd go with HTML5 video hosted on AWS S3 over YouTube. Especially if you are talking about on your own site. People viewing your YT videos on your site won't help your SEO and might even tempt them off your site to YT.
    I wrote a couple of posts on the subject you might find helpful
    https://www.html5videobank.com/h5-value.html
    https://www.html5videobank.com/about.php[/QUOTE]
     
    Akeel Din, Sep 7, 2020 IP