{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-community/react-native-video/issues/805","repository_url":"https://api.github.com/repos/react-native-community/react-native-video","labels_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/805/labels{/name}","comments_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/805/comments","events_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/805/events","html_url":"https://github.com/react-native-community/react-native-video/pull/805","id":262241620,"number":805,"title":"added optional request headers for remote assests (android & ios)","user":{"login":"emrah88","id":3862762,"avatar_url":"https://avatars2.githubusercontent.com/u/3862762?v=4","gravatar_id":"","url":"https://api.github.com/users/emrah88","html_url":"https://github.com/emrah88","followers_url":"https://api.github.com/users/emrah88/followers","following_url":"https://api.github.com/users/emrah88/following{/other_user}","gists_url":"https://api.github.com/users/emrah88/gists{/gist_id}","starred_url":"https://api.github.com/users/emrah88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emrah88/subscriptions","organizations_url":"https://api.github.com/users/emrah88/orgs","repos_url":"https://api.github.com/users/emrah88/repos","events_url":"https://api.github.com/users/emrah88/events{/privacy}","received_events_url":"https://api.github.com/users/emrah88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2017-10-02T21:57:12Z","updated_at":"2018-05-04T20:07:07Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/react-native-community/react-native-video/pulls/805","html_url":"https://github.com/react-native-community/react-native-video/pull/805","diff_url":"https://github.com/react-native-community/react-native-video/pull/805.diff","patch_url":"https://github.com/react-native-community/react-native-video/pull/805.patch"},"body":"This pull request adds support for setting arbitrary `Request Headers` for resolving remote media. A use case could be to add an `Authorization` header for media that needs authentication. Therefore this PR should be able to close #475.\r\n\r\nIt can be used as demonstrated in the snippet below, by adding a `headers` object in the `source` property of the `Video` component.\r\n\r\n```jsx\r\n<Video\r\n  source={{\r\n    uri: videoUrl,                        .\r\n      headers: {\r\n        Authorization: 'bearer some-token-value',\r\n        'X-Custom-Header': 'some value'\r\n      }\r\n  }}\r\n</Video>\r\n```\r\n\r\nIt has been tested on iOS and Android. \r\n\r\n_Note: It was currently not possible to add the same functionality for Windows. `System.Windows.Media.MediaPlayer` only supports a single `Uri` class for remote/local media._"},"comment":{"url":"https://api.github.com/repos/react-native-community/react-native-video/issues/comments/386718954","html_url":"https://github.com/react-native-community/react-native-video/pull/805#issuecomment-386718954","issue_url":"https://api.github.com/repos/react-native-community/react-native-video/issues/805","id":386718954,"user":{"login":"emrah88","id":3862762,"avatar_url":"https://avatars2.githubusercontent.com/u/3862762?v=4","gravatar_id":"","url":"https://api.github.com/users/emrah88","html_url":"https://github.com/emrah88","followers_url":"https://api.github.com/users/emrah88/followers","following_url":"https://api.github.com/users/emrah88/following{/other_user}","gists_url":"https://api.github.com/users/emrah88/gists{/gist_id}","starred_url":"https://api.github.com/users/emrah88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emrah88/subscriptions","organizations_url":"https://api.github.com/users/emrah88/orgs","repos_url":"https://api.github.com/users/emrah88/repos","events_url":"https://api.github.com/users/emrah88/events{/privacy}","received_events_url":"https://api.github.com/users/emrah88/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T20:07:07Z","updated_at":"2018-05-04T20:07:07Z","author_association":"NONE","body":"@JohnGalt1717 cool, I'll look in to the AdaptiveStreaming samples "}}
{"actor":{"display_login":"emrah88"}}