Hello Prem,
I'm asking the Players API team what's up, and I'll update this
thread when I hear back.
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On May 2, 8:05 pm, Prem Sichanugrist <sikand...@gmail.com> wrote:
> Hi guys,
>
> I'm using Youtube IFRAME API to embed a video into my site. I just found
> out a strange thing this evening that I'm not able to get anything return
> from `player.getCurrentTime()` or `player.getDuration()` unless the player
> has started. (It returned `undefined`.) The code I'm using were working
> just fine before 6pm EST, so I'm not sure if there's some change to it that
> breaks it or not.
>
> The code snippet I used to test was something like this:
>
> // Get called from YT.Player onReady event
> function onPlayerReady(event) {
> console.debug(event.target.getDuration(); // this returns undefined
>
> }
>
> Thank you,
>
> Prem S.
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment