{"action":"created","issue":{"url":"https://api.github.com/repos/johndyer/mediaelement/issues/1573","repository_url":"https://api.github.com/repos/johndyer/mediaelement","labels_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1573/labels{/name}","comments_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1573/comments","events_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1573/events","html_url":"https://github.com/johndyer/mediaelement/issues/1573","id":103681476,"number":1573,"title":"$('audio') array syntax problem","user":{"login":"almeidaz","id":11940920,"avatar_url":"https://avatars.githubusercontent.com/u/11940920?v=3","gravatar_id":"","url":"https://api.github.com/users/almeidaz","html_url":"https://github.com/almeidaz","followers_url":"https://api.github.com/users/almeidaz/followers","following_url":"https://api.github.com/users/almeidaz/following{/other_user}","gists_url":"https://api.github.com/users/almeidaz/gists{/gist_id}","starred_url":"https://api.github.com/users/almeidaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almeidaz/subscriptions","organizations_url":"https://api.github.com/users/almeidaz/orgs","repos_url":"https://api.github.com/users/almeidaz/repos","events_url":"https://api.github.com/users/almeidaz/events{/privacy}","received_events_url":"https://api.github.com/users/almeidaz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-08-28T09:18:01Z","updated_at":"2016-08-26T03:44:56Z","closed_at":"2016-08-26T03:44:56Z","body":"Hi, \r\ni ve made a script like this\r\n``\r\njQuery(document).ready(function($) {\r\n    playerPappLoad();\r\n});\r\n\r\nfunction playerPappLoad() {\r\n\r\n    $('audio').mediaelementplayer({\r\n\r\n        audioWidth: '100%',\r\n        features: ['playpause', 'stop', 'progress', 'duration'],\r\n\r\n        success: function(media, player, node) {\r\n\r\n            $(\"ul#home-page-tabs li a\").bind(\"click\", function() {\r\n\r\n                setTimeout(function() {\r\n\r\n                $('audio')[0].player.setControlsSize();\r\n                $('audio')[1].player.setControlsSize();\r\n                $('audio')[2].player.setControlsSize();\r\n                $('audio')[3].player.setControlsSize();\r\n                $('audio')[4].player.setControlsSize();\r\n                $('audio')[5].player.setControlsSize();\r\n                $('audio')[6].player.setControlsSize();\r\n                $('audio')[7].player.setControlsSize();\r\n                $('audio')[8].player.setControlsSize();\r\n                $('audio')[9].player.setControlsSize();\r\n                $('audio')[10].player.setControlsSize();\r\n                $('audio')[11].player.setControlsSize();\r\n                $('audio')[12].player.setControlsSize();\r\n                $('audio')[13].player.setControlsSize();\r\n                $('audio')[14].player.setControlsSize();\r\n\r\n                    \r\n                }, 0);\r\n               \r\n            });\r\n        }\r\n    });\r\n}\r\n\r\n``\r\n\r\nThis one works great but i would like to replace :\r\n  $('audio')[0].player.setControlsSize();\r\n  $('audio')[1].player.setControlsSize();\r\n  $('audio')[2].player.setControlsSize();\r\n  etc...\r\nby an each('audio').index.player.setControlsSize();\r\nor an ('audio')this.id.player.setControlsSize();\r\n\r\ni tried also \r\n\r\n$( \"audio\" ).map( function(index, element) {\r\n    this.id.player.setControlsSize();\r\n   }).get();\r\n\r\nI didn't find the good syntax.\r\n\r\nThen if someone understand what i would, it would really nice if you could help me :)\r\n\r\nThanks you !\r\nHave a nice day."},"comment":{"url":"https://api.github.com/repos/johndyer/mediaelement/issues/comments/242621898","html_url":"https://github.com/johndyer/mediaelement/issues/1573#issuecomment-242621898","issue_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1573","id":242621898,"user":{"login":"ron666","id":910829,"avatar_url":"https://avatars.githubusercontent.com/u/910829?v=3","gravatar_id":"","url":"https://api.github.com/users/ron666","html_url":"https://github.com/ron666","followers_url":"https://api.github.com/users/ron666/followers","following_url":"https://api.github.com/users/ron666/following{/other_user}","gists_url":"https://api.github.com/users/ron666/gists{/gist_id}","starred_url":"https://api.github.com/users/ron666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron666/subscriptions","organizations_url":"https://api.github.com/users/ron666/orgs","repos_url":"https://api.github.com/users/ron666/repos","events_url":"https://api.github.com/users/ron666/events{/privacy}","received_events_url":"https://api.github.com/users/ron666/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T03:44:56Z","updated_at":"2016-08-26T03:44:56Z","body":"Closing this issue since no answer has been posted in more than 2 weeks. If you'd like to reopen this, let us know. Thanks!"}}
{"actor":{"display_login":"ron666"}}