Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for setting channel HTTP referrer headers for HTML 5 Player & JS Player #332

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

sapireli
Copy link
Contributor

@sapireli sapireli commented Dec 2, 2023

This commit introduces support for setting the HTTP referrer headers per channel. The referrer is the http-referrer as defined for each channel in the m3u8 playlist using the VLC format (#EXTVLCOPT:http-referrer=http://example.com/) This feature works for both the HTML5 player and the js player.

Updates were made to the html-video-player component for the HTML5 player, and to the logic in the CHANNEL_SET_USER_AGENT function in the main electron api.ts.

…5 and JS players

This commit introduces support for setting the HTTP referrer headers per channel.
The referer is the http-referrer set for each channel in the m3u8 playlist.
This feature works for both the HTML5 and JS players.

Updates were made to the player-dialog component to handle the referrer headers for the JS player.
Corresponding changes to the html-video-player component for the HTML5 player.
Copy link

vercel bot commented Dec 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
iptvnator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2023 10:03am

@ghost
Copy link

ghost commented Dec 2, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@sapireli sapireli changed the title feat: support for setting channel HTTP referrer headers for HTML 5 Player feat: support for setting channel HTTP referrer headers for HTML 5 Player & JS Player Dec 2, 2023
@sapireli
Copy link
Contributor Author

sapireli commented Dec 6, 2023

@4gray if you could please accept... many thanks

@4gray
Copy link
Owner

4gray commented Dec 6, 2023

Thank you for the contribution!

@4gray 4gray merged commit acb8980 into 4gray:electron Dec 6, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants