-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
Description
When user have several opened tabs with supported music sites (i.e he listen to music on music.yandex.ru and have opened vk.com), message sent to all tabs. And when I want to start playing at music.yandex.ru, actually it starts on both sites.
I have few thoughts regarding this problem. We can pass callback as third argument to chrome.tabs.sendMessage in this loop and break it when music tab found. It is simple option. More complex option is control audio events somehow and order tabs by last audio events. I.e. when user starts audio player on music.yandex.ru it becomes more prioritized tab and then we sendMessage only to this tab. What do you think? I'm not sure, can we control audio events on page from extension? Any thoughts?
DragoCubed, adhesivewombat and sam0delkin