{"action":"created","issue":{"url":"https://api.github.com/repos/johndyer/mediaelement/issues/1924","repository_url":"https://api.github.com/repos/johndyer/mediaelement","labels_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1924/labels{/name}","comments_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1924/comments","events_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1924/events","html_url":"https://github.com/johndyer/mediaelement/issues/1924","id":187937665,"number":1924,"title":"Is this expected behavior for setcurrenttime()/play()?","user":{"login":"someonetookmyname","id":23332472,"avatar_url":"https://avatars.githubusercontent.com/u/23332472?v=3","gravatar_id":"","url":"https://api.github.com/users/someonetookmyname","html_url":"https://github.com/someonetookmyname","followers_url":"https://api.github.com/users/someonetookmyname/followers","following_url":"https://api.github.com/users/someonetookmyname/following{/other_user}","gists_url":"https://api.github.com/users/someonetookmyname/gists{/gist_id}","starred_url":"https://api.github.com/users/someonetookmyname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someonetookmyname/subscriptions","organizations_url":"https://api.github.com/users/someonetookmyname/orgs","repos_url":"https://api.github.com/users/someonetookmyname/repos","events_url":"https://api.github.com/users/someonetookmyname/events{/privacy}","received_events_url":"https://api.github.com/users/someonetookmyname/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-11-08T09:11:28Z","updated_at":"2016-11-08T17:42:02Z","closed_at":null,"body":"Hi,\r\n\r\nI am using 2.23.2.\r\n\r\nIf I first create a player wrapping some audio:\r\n\r\n```\r\n       var player = new MediaElementPlayer('#myaudio');\r\n```\r\n\r\nAnd imagine I would like to start the audio at an offset:\r\n\r\n```\r\n\tplayer.setCurrentTime(10.0);\r\n\tplayer.play();\r\n```\r\n\r\nUnder that usage setCurrentTime(10.0) fails and playback starts from 0.0.  Results are the same for Ubuntu and iOS.\r\n\r\nHowever, if I instead directly address the underlying audio (after creating the player):\r\n\r\n```\r\n\tvar aud = document.getElementById(\"myaudio\");\r\n        aud.setCurrentTime(10.0);\r\n        aud.play();\r\n```\r\n\r\n.. then playback starts as desired at 10.0 on both Ubuntu and iOS.\r\n\r\nWhy does the address-the-audio approach work as expected, but not the address-the-player approach?  I was expecting for either both approaches to work, or both to fail.\r\n\r\nIs there a drawback to using the address-the-audio approach, even if the audio is wrapped by the player (I'd still like to use the player interface for other things)?\r\n\r\np.s. Based on referenced approaches I've found elsewhere, the following also works as expected:\r\n\r\n```\r\n\tvar aud = document.getElementById(\"myaudio\");\r\n\taud.one(\"progress\", function() {\r\n    \t\tplayer.setCurrentTime(10.0);\r\n\t});\r\n\tplayer.play();\r\n```\r\n\r\nThank you for any clarifications.\r\nBest,\r\nAndrew"},"comment":{"url":"https://api.github.com/repos/johndyer/mediaelement/issues/comments/259205992","html_url":"https://github.com/johndyer/mediaelement/issues/1924#issuecomment-259205992","issue_url":"https://api.github.com/repos/johndyer/mediaelement/issues/1924","id":259205992,"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-11-08T17:42:02Z","updated_at":"2016-11-08T17:42:02Z","body":"Can you do me a favor and test on iPhone please? I can't test it right now but if you can help me with that and in an iPad I'd appreciate it"}}
{"actor":{"display_login":"ron666"}}