Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube API get current shorts video title/duration/position

$
0
0
player = document.getElementById('movie_player'); player.getVideoData().title 

It works, but not for shorts. Any idea how to get these info with shorts videos?

Edit: it seems that document.title does the trick.But is there any way to get duration and position then? getDuration and getCurrentTime do not seem to work on shorts.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>