I am having trouble listening to YouTube (video) events with my chrome extension.
I am trying to detect when a youtube video ends and then call a function.
This sample code is the closest I have found to what I want to achieve: https://developer.chrome.com/extensions/samples#search:pageaction
I have looked at the requestcontentscript docs as well.
Is there a way I can detect a video in the page, then call a function based on it's playback status? (play, pause, end)
Thank you