Adds full support for YouTube playback.
While a few optimizations could be made, YouTube playback is almost as seamless as local playback.
This commit is contained in:
@@ -34,6 +34,16 @@ function handleMessage(message)
|
||||
}
|
||||
}
|
||||
|
||||
function onStatusUpdate(status, time, songData)
|
||||
{
|
||||
sendUpdate({
|
||||
type: "edu.regis.universeplayer.PlaybackInfo",
|
||||
currentSong: songData,
|
||||
status: status,
|
||||
playTime: time
|
||||
});
|
||||
}
|
||||
|
||||
function sendUpdate(response)
|
||||
{
|
||||
post = data => background.postMessage({
|
||||
|
||||
Reference in New Issue
Block a user