{"action":"opened","issue":{"url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/321","repository_url":"https://api.github.com/repos/FolioReader/FolioReaderKit","labels_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/321/comments","events_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/321/events","html_url":"https://github.com/FolioReader/FolioReaderKit/issues/321","id":301777216,"number":321,"title":"Reader takes over the audio control","user":{"login":"arthurlataks","id":1751652,"avatar_url":"https://avatars2.githubusercontent.com/u/1751652?v=4","gravatar_id":"","url":"https://api.github.com/users/arthurlataks","html_url":"https://github.com/arthurlataks","followers_url":"https://api.github.com/users/arthurlataks/followers","following_url":"https://api.github.com/users/arthurlataks/following{/other_user}","gists_url":"https://api.github.com/users/arthurlataks/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurlataks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurlataks/subscriptions","organizations_url":"https://api.github.com/users/arthurlataks/orgs","repos_url":"https://api.github.com/users/arthurlataks/repos","events_url":"https://api.github.com/users/arthurlataks/events{/privacy}","received_events_url":"https://api.github.com/users/arthurlataks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-02T14:08:17Z","updated_at":"2018-03-02T14:08:17Z","closed_at":null,"author_association":"NONE","body":"Pod takes control over the sound controls right after being initialised. This is due to having this line:\r\n\r\n```swift     \r\n// File: FolioReaderAudioPlayer.swift:46\r\ntry? session.setActive(true)\r\n```\r\nI removed that line and now this does not happen anymore. I also added this piece of code in order to alter menu and player state on audio session interruption:\r\n\r\n```swift\r\n// File: FolioReaderAudioPlayer.swift:47\r\nNotificationCenter.default.addObserver(self,\r\n    selector: #selector(pause),\r\n    name: .AVAudioSessionInterruption,\r\n    object: session\r\n)\r\n```\r\n\r\n@hebertialmeida  do you see these changes to be fit for a pull request? If so, I will prepare one."}}
{"actor":{"display_login":"arthurlataks"}}