{"action":"closed","issue":{"url":"https://api.github.com/repos/wistia/wistia-doc/issues/242","labels_url":"https://api.github.com/repos/wistia/wistia-doc/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/wistia/wistia-doc/issues/242/comments","events_url":"https://api.github.com/repos/wistia/wistia-doc/issues/242/events","html_url":"https://github.com/wistia/wistia-doc/issues/242","id":116581749,"number":242,"title":"JavaScript Player API for SEO embeds / can't assign options in addition to a callback function in the init queue","user":{"login":"nozpheratu","id":2205286,"avatar_url":"https://avatars.githubusercontent.com/u/2205286?v=3","gravatar_id":"","url":"https://api.github.com/users/nozpheratu","html_url":"https://github.com/nozpheratu","followers_url":"https://api.github.com/users/nozpheratu/followers","following_url":"https://api.github.com/users/nozpheratu/following{/other_user}","gists_url":"https://api.github.com/users/nozpheratu/gists{/gist_id}","starred_url":"https://api.github.com/users/nozpheratu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nozpheratu/subscriptions","organizations_url":"https://api.github.com/users/nozpheratu/orgs","repos_url":"https://api.github.com/users/nozpheratu/repos","events_url":"https://api.github.com/users/nozpheratu/events{/privacy}","received_events_url":"https://api.github.com/users/nozpheratu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T16:10:58Z","updated_at":"2015-11-16T18:54:20Z","closed_at":"2015-11-16T18:54:20Z","body":"I opened a support ticket, but I thought I would also post an issue here as it might be a documentation issue. There doesn't seem to be a clear way to provide advanced options configuration (e.g., assign a plugin) in the initialization queue using `_wq.push` if you also wan't to define a callback function. For instance:\r\n```javascript\r\n_wq.push({\r\n  'myVideo': function(video){\r\n    // do something with the video handle\r\n  }\r\n});\r\n\r\n// but I also wish to customize the player!\r\nvar options = {\r\n  videoQuality: 'hd-only',\r\n  plugin: { \r\n    cropFill: {src: \"https://fast.wistia.com/labs/crop-fill/plugin.js\"}\r\n  }\r\n}\r\n_wq.push({'myVideo': options});\r\n```\r\nThis is a simple example, but a more complicated use case might be dynamically assigning options. My initial thinking was that maybe I should be able to just define the options right in the callback function (a la `video.options = {...}` but that seems to get ignored."}}