Jasonette / Jasonette/JASONETTE-iOS

add http "header" support to $media.play

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

I don't see in JasonMediaAction.m any use of @"headers" which explains why it doesn't work when I add headers in my markup. It would be great to be able to use "header" (or better yet, "http_headers") anywhere that "url" is valid.

```
"action":{
"type":"$media.play",
"options":{
"url":"{{video['mp4']}}",
"header":{
"referer":"http://whatever.com/"
}
}
}
```

possibly useful: [stackoverflow](https://stackoverflow.com/questions/15456130/send-headers-with-avplayer-request-in-ios)

Contributor guide

Open the contributing guide

Research direction

Start in JasonMediaAction.m and trace how the $media.play options consume the url. Review the linked AVPlayer header-request reference, then verify that the requested headers are accepted with the media URL and that playback succeeds using the example markup.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.