Sanderluc 11 Posted August 27, 2024 Posted August 27, 2024 I would like to extend the Live-TV functionality within Emby to track which user is watching a live stream. I currently have a PHP script named stream.php, which is the endpoint for the M3U link that gets activated when a user initiates a Live-TV stream. I'm interested in knowing if it's possible to extend this functionality by adding a custom header to the Live-TV stream. Specifically, I would like to include a header such as: X-Emby-User: Sander This would allow me to identify which user is watching the stream. I’m not sure if this is achievable through the API, but if it is, I would like to integrate this feature. At the moment, when a Live-TV stream is opened by a user, the request headers received by stream.php include the following: Request Headers: Traceparent: 00-814655256f9a3f6f1d5d3addd3965386-c65971529c4e72c2-00 Referrer: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git Host: xxx.xxx.nl Content-Length: Content-Type: Please let me know if adding a custom header for user identification is possible, with the use of the Developer API. Thank you. Kind regards, Sander
Luke 42077 Posted August 28, 2024 Posted August 28, 2024 Hi, doesn't the api already have this information?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now