{"action":"created","issue":{"url":"https://api.github.com/repos/jwplayer/jwplayer/issues/1597","repository_url":"https://api.github.com/repos/jwplayer/jwplayer","labels_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/1597/labels{/name}","comments_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/1597/comments","events_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/1597/events","html_url":"https://github.com/jwplayer/jwplayer/issues/1597","id":195267773,"number":1597,"title":"How to know if \"muted inline autoplay\" was used?","user":{"login":"bramus","id":213073,"avatar_url":"https://avatars.githubusercontent.com/u/213073?v=3","gravatar_id":"","url":"https://api.github.com/users/bramus","html_url":"https://github.com/bramus","followers_url":"https://api.github.com/users/bramus/followers","following_url":"https://api.github.com/users/bramus/following{/other_user}","gists_url":"https://api.github.com/users/bramus/gists{/gist_id}","starred_url":"https://api.github.com/users/bramus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bramus/subscriptions","organizations_url":"https://api.github.com/users/bramus/orgs","repos_url":"https://api.github.com/users/bramus/repos","events_url":"https://api.github.com/users/bramus/events{/privacy}","received_events_url":"https://api.github.com/users/bramus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T14:31:28Z","updated_at":"2016-12-13T16:08:24Z","closed_at":null,"body":"### The problem\r\n\r\nVersion 7.8.1 [“added support for inline autoplay while muted on iOS and Android”](https://developer.jwplayer.com/jw-player/docs/developer-guide/release_notes/release_notes_7/#781-113016).\r\n\r\nThere is however no way to programmatically know if this kind of behaviour is active or not _(or it is not documented – see #1596)_\r\n\r\nTrying to detect this behaviour ourselves using the `play` event, some UA-sniffing, and checking of the audio levels also fails because jwplayer doesn't indicate that the video is muted:\r\n\r\n- `jwplayer().getMute()` returns `false`\r\n- `jwplayer().getVolume()` returns `100`\r\n\r\n\r\n### Wanted Behavior\r\n\r\n1. `jwplayer().getMute()` should return `true` if muted inline autoplay is used.\r\n2. There should be no need to sniff this behaviour out ourselves. Some method or event (or some combination) to get to know if a video is playing inline while muted would be handy. That way a developer could – for example – place a muted icon somewhere in the UI and (upon click) unmute the audio.\r\n\r\n### Steps to reproduce\r\n\r\n1. Watch a video play inline, while muted, on an iPad running iOS10.\r\n2. …\r\n\r\n### Environment\r\n\r\n- iPad/iPhone\r\n- iOS 10\r\n- Safari 10\r\n- 7.8.2"},"comment":{"url":"https://api.github.com/repos/jwplayer/jwplayer/issues/comments/266780509","html_url":"https://github.com/jwplayer/jwplayer/issues/1597#issuecomment-266780509","issue_url":"https://api.github.com/repos/jwplayer/jwplayer/issues/1597","id":266780509,"user":{"login":"artur-michalak","id":2443904,"avatar_url":"https://avatars.githubusercontent.com/u/2443904?v=3","gravatar_id":"","url":"https://api.github.com/users/artur-michalak","html_url":"https://github.com/artur-michalak","followers_url":"https://api.github.com/users/artur-michalak/followers","following_url":"https://api.github.com/users/artur-michalak/following{/other_user}","gists_url":"https://api.github.com/users/artur-michalak/gists{/gist_id}","starred_url":"https://api.github.com/users/artur-michalak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artur-michalak/subscriptions","organizations_url":"https://api.github.com/users/artur-michalak/orgs","repos_url":"https://api.github.com/users/artur-michalak/repos","events_url":"https://api.github.com/users/artur-michalak/events{/privacy}","received_events_url":"https://api.github.com/users/artur-michalak/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T16:08:24Z","updated_at":"2016-12-13T16:08:24Z","body":"We have another issue connected to above case. \r\nWhen playback has started we'd like to set volume with setVolume method (in fact it's another way of unmute sound). \r\nUnfortunately it does not work because of this if https://github.com/jwplayer/jwplayer/blob/5221cb37be74c168d123315f38598975f45936c3/src/js/controller/model.js#L328. this.get('mute') returns false while it's muted on iOS"}}
{"actor":{"display_login":"artur-michalak"}}