File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 55 <!-- 👋👋👋 Hello dear code reader, have fun understanding how YT works without ads. -->
66 < meta charset ="utf-8 " />
77 < meta name ="viewport " content ="width=device-width,initial-scale=1 " />
8- < title > YT Minimal Player (Metadata) </ title >
8+ < title > YT Minimal Player</ title >
99
1010 < link rel ="dns-prefetch " href ="//www.youtube.com ">
1111 < link rel ="dns-prefetch " href ="//www.youtube-nocookie.com ">
1919 width : 25% ;
2020 height : 25% ;
2121 overflow : hidden;
22- background : # 000000 ;
2322 }
2423
2524 # player-container {
8685 const metadata = {
8786 title : videoData . title ,
8887 isLive : videoData . isLive ,
89- duration : player . getCurrentTime ( ) ,
88+ duration : player . getDuration ( ) ,
9089 } ;
9190
9291 console . log ( "METADATA:" + JSON . stringify ( metadata ) ) ;
You can’t perform that action at this time.
0 commit comments