Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9005953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:17:02+00:00 2026-06-16T01:17:02+00:00

I am using youtube api iframe and just getting going with the sample code.

  • 0

I am using youtube api iframe and just getting going with the sample code. When I issue:
player.loadVideoById(“ytidNo1”) the proper video starts (“ytidNo1” is a valid youtube id)

Then, say, 10 seconds later, if I issue another:
player.loadVideoById(“ytidNo2”) the 2nd video starts, but it starts at the point where the last one was playing at (eg 10 seconds in).

This is new behavior in the last day or so and I have not changed my code.

To correct the problem, I tried:
player.loadVideoById(“ytidNo1”,0)

then

player.loadVideoById(“ytidNo2”,0)

and issue still happens.

Anyone else have or just starting to have this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:17:04+00:00Added an answer on June 16, 2026 at 1:17 am

    I also had the same problem. Playing around I eventually got it to work.
    I had to use seekTo(0); (see Jim’s comments)

    More details about the problem.

    • If the video actually played to the end I didn’t need to do anything.
    • If the video was skipped part way through I had to call
      player.seekTo(0);
      on the old video before calling loadVideoByID(“ytid”, 0); on the next video.
    • I also had to handle the case where after calling loadVideoByID I got an error. (e.g. 150) If I had an error I could not call seekTo because it would cause the next video to play audio only.

    hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using youtube's .NET API to retrieve video feeds, here is the code:
I'm building a youtube player with custom controls using the youtube api: http://code.google.com/apis/youtube/youtube_player_demo.html?playerType=chromeless&playerVersion=as3 I've
I'm currently working on embedding a youtube video using the iframe API, what is
I'm using Youtube API, I'd like to have a search auto-complete feature, just like
is there any tutorial for uploling video in youtube using GData API. i want
I'm trying to play video from youtube using this code but I get this
I'm using YouTube's iFrame API to embed videos in a page. Everything works great
I'm trying to load a video onto my page using Youtube API. Youtube specifies
I have just started developing using Youtube API and stuck in very beginning. I
Hi i want to create an uploading video program using youtube api I think

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.