Jump to content

Search the Community

Showing results for tags 'webhooks'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android Mobile
    • Android TV / Fire TV
    • Emby Theater
    • iOS
    • Apple TV
    • Kodi
    • Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • LG Smart TV
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Other
    • General Discussion
    • Developer API
    • Hardware
    • Media Clubs
    • Legacy Support

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 5 results

  1. Hi guys, I just thought I'd introduce the latest feature of Emby Scripter-X (v2.3.5+) out now on the catalog. Emby Scripter-X Webhooks Why? I notice that a lot of Scripter-X users use the plugin to perform some type of webhook(s) based on certain events, so why not natively support it? So how does it work? Pretty much as-per-usual with the Actions interface. The interface will eventually change input field labels based on the selection in the interpreter box, but it is as above: Run [script], where [script] is the URL of your webhook script (webhook endpoint/api endpoint, etc), in my example above, I have a php script running on my local webserver at http://192.168.1.10/hook.php. [interpreter] should be set to web:post (to post data), web:get is also available, however it does exactly that - doesn't post data. [Parameters] instead of listing parameters to send over the command-line, this is the path to your json content template - where your data is formatted from. Here I specify d:\embyscripts\hooktemplates\authenticationfailed.json, and in this file is the following content: { "user": { "username": "%username%", "password": "%password%" }, "device": { "id": "%device.id%", "name": "%device.name%", "ip_address": "%device.remote.ipaddress%" }, "scripterx_version": "%scripterx.version%", "emby_server_version": "%server.version%" } It should be self explanatory from here. So ScripterX will read in your template, substitute for the token values, and post it to the specified URL. So my PHP script simply takes $_POST['data'], casts it as a JSON object, and outputs to a file on my webserver: Array ( [user] => Array ( [username] => Anthony [password] => asdfasdfasdffasgfsasgasdfasdf ) [device] => Array ( [id] => 427a7309-5fc2-489d-9a83-0664c619c779 [name] => Firefox [ip_address] => 192.168.1.124 ) [scripterx_version] => 2.3.4.0 [emby_server_version] => 4.4.2.0 But as you can see --- these templates are entirely customisable, so you can adjust these templates to suit whatever you're posting your data to. The only thing currently that I haven't made customisable is the POST variable that contains the json data, which is set to 'data'. I will eventually extend the functionality such that the JSON data can be submitted without the need for POST variables. Any comments/feedback/suggestions are greatly appreciated as always.
  2. BillOatman

    Webhook information?

    Hi, I've been looking at the wiki and forum for information on how to implement a webhook endpoint. Primarily what information is actually sent, and how (get/post/put) it is sent to the endpoint. Is there information somewhere on this? Thanks!
  3. CashMoney

    Webhooks - seperate events

    Webhooks are currently limited*. The events are grouped rather than being usable as separate events within a group. For example you can create a webhook based on playback events (plural) as opposed to "a" playback event (singular) such as 'playback start'. My scenario for this would be to dim my lights during playback events, say 20% on Playback Start/Resume, 50% on Playback Pause, 100% on Playback Stop. But without Emby providing hooks into those individual events this isn't possible without plugins which are usually tailored for specific home automation systems. Hence I'm posting here; I've noticed more than one post about this in more than one thread in the past few days of my limited searching for info in regards to automation. Rather than a few random posts within other threads, I thought I'd make a feature request post so you can see how much interest their may (or may not) be for this. *unless I'm not understanding, in which case ignore/delete this
  4. nxenos83

    Webhooks Plugin

    I put together a plugin that triggers a POST to URL whenever playback starts, stops, pause, or resumes. You can configure which events and which content types you would like the webbook to be triggered. Content of the post is a json that conforms with the format being used by Plex webhooks. Currently, the json only contains the following: { event: "(media.play, media.stop, media.resume, media.pause, or media.added)", Player{ uuid:"Emby device ID", title: "Emby client name" }, Metadata{ guid: "Item ID"" type: "content type" title: "item title" parentTitle: "items parent name", grandparentTitle: "items grandparentTitle" } ​} I understand that there is a plan to fold webhooks into the core application at some point in the future, but until then you can use this plugin. I am willing to add additional functionality as requested if there is sufficient need from the community (or others can contribute https://github.com/nxenos83/emby.plugin.Webhooks If there is sufficient interest in this plugin, I can make a request to have it added to the plugin catalogue, but will need to get feedback from the community. 3/1/2017: Added logic to ignore virtual items 9/16/2017: Changed target to .Net 1.3 to be compatible with .net Core (https://github.com/nxenos83/emby.plugin.Webhooks/releases/tag/v1.0)
  5. Anthony Musgrove

    Webhooks plugin sending incomplete post data

    Hi guys, I'm trying to understand the inconsistencies I am experiencing with the webhooks plugin - I've enabled the plugin and set the URL to a PHP script that I would like to process the request, so that I can completely customise it for my home automation. My issue is that when the webhook is called to my php script, I am logging the post body, and I am getting data such as this; stereo","BitRate":150903,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"29d4f51d4cb89131ea24d6b3fe87995f"},"BackdropImageTags":[],"ParentLogoImageTag":"39bd216083c07590b3ec8a163657fb28","ParentThumbItemId":"9261","ParentThumbImageTag":"3c156d34b3c12f6458a8f6edebcc0d1d","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":300000000,"Name":"Chapter 2"},{"StartPositionTicks":1175600000,"Name":"Chapter 3"},{"StartPositionTicks":2625200000,"Name":"Chapter 4"},{"StartPositionTicks":4006400000,"Name":"Chapter 5"},{"StartPositionTicks":4760400000,"Name":"Chapter 6"},{"StartPositionTicks":6024000000,"Name":"Chapter 7"},{"StartPositionTicks":7292800000,"Name":"Chapter 8"},{"StartPositionTicks":7704400000,"Name":"Chapter 9"},{"StartPositionTicks":8679200000,"Name":"Chapter 10"},{"StartPositionTicks":9898000000,"Name":"Chapter 11"},{"StartPositionTicks":11832000000,"Name":"Chapter 12"},{"StartPositionTicks":13275200000,"Name":"Chapter 13"},{"StartPositionTicks":14042800000,"Name":"Chapter 14"},{"StartPositionTicks":15691200000,"Name":"Chapter 15"},{"StartPositionTicks":16136400000,"Name":"Chapter 16"},{"StartPositionTicks":16550800000,"Name":"Chapter 17"}],"MediaType":"Video","Width":720,"Height":576},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --05de95fd-ee4e-4895-922e-613adc221947-- tereo","BitRate":150903,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"29d4f51d4cb89131ea24d6b3fe87995f"},"BackdropImageTags":[],"ParentLogoImageTag":"39bd216083c07590b3ec8a163657fb28","ParentThumbItemId":"9261","ParentThumbImageTag":"3c156d34b3c12f6458a8f6edebcc0d1d","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":300000000,"Name":"Chapter 2"},{"StartPositionTicks":1175600000,"Name":"Chapter 3"},{"StartPositionTicks":2625200000,"Name":"Chapter 4"},{"StartPositionTicks":4006400000,"Name":"Chapter 5"},{"StartPositionTicks":4760400000,"Name":"Chapter 6"},{"StartPositionTicks":6024000000,"Name":"Chapter 7"},{"StartPositionTicks":7292800000,"Name":"Chapter 8"},{"StartPositionTicks":7704400000,"Name":"Chapter 9"},{"StartPositionTicks":8679200000,"Name":"Chapter 10"},{"StartPositionTicks":9898000000,"Name":"Chapter 11"},{"StartPositionTicks":11832000000,"Name":"Chapter 12"},{"StartPositionTicks":13275200000,"Name":"Chapter 13"},{"StartPositionTicks":14042800000,"Name":"Chapter 14"},{"StartPositionTicks":15691200000,"Name":"Chapter 15"},{"StartPositionTicks":16136400000,"Name":"Chapter 16"},{"StartPositionTicks":16550800000,"Name":"Chapter 17"}],"MediaType":"Video","Width":720,"Height":576},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --3387e85f-7dea-469a-a7fd-9ffe47ef85b5-- ":"stereo","BitRate":150903,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"29d4f51d4cb89131ea24d6b3fe87995f"},"BackdropImageTags":[],"ParentLogoImageTag":"39bd216083c07590b3ec8a163657fb28","ParentThumbItemId":"9261","ParentThumbImageTag":"3c156d34b3c12f6458a8f6edebcc0d1d","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":300000000,"Name":"Chapter 2"},{"StartPositionTicks":1175600000,"Name":"Chapter 3"},{"StartPositionTicks":2625200000,"Name":"Chapter 4"},{"StartPositionTicks":4006400000,"Name":"Chapter 5"},{"StartPositionTicks":4760400000,"Name":"Chapter 6"},{"StartPositionTicks":6024000000,"Name":"Chapter 7"},{"StartPositionTicks":7292800000,"Name":"Chapter 8"},{"StartPositionTicks":7704400000,"Name":"Chapter 9"},{"StartPositionTicks":8679200000,"Name":"Chapter 10"},{"StartPositionTicks":9898000000,"Name":"Chapter 11"},{"StartPositionTicks":11832000000,"Name":"Chapter 12"},{"StartPositionTicks":13275200000,"Name":"Chapter 13"},{"StartPositionTicks":14042800000,"Name":"Chapter 14"},{"StartPositionTicks":15691200000,"Name":"Chapter 15"},{"StartPositionTicks":16136400000,"Name":"Chapter 16"},{"StartPositionTicks":16550800000,"Name":"Chapter 17"}],"MediaType":"Video","Width":720,"Height":576},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --c4225f28-4ebe-4caa-ae31-fac92b342554-- ubtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"b5cf4d4d268a385e16d4503161389a74"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --15aaebfc-2b83-4b50-9a0a-e9e692ee7567-- title","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"b5cf4d4d268a385e16d4503161389a74"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --2a8af2a7-e9cf-4e31-a713-5a2cd7d7a73f-- title","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"b5cf4d4d268a385e16d4503161389a74"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --a3dfaee8-ae83-4ac9-8fbb-77d90fba197f-- itle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"b5cf4d4d268a385e16d4503161389a74"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --b3897b57-cd20-40fb-b228-0b5f6387954c-- Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0}],"ImageTags":{"Primary":"b5cf4d4d268a385e16d4503161389a74"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --a2ba4e51-7c4a-4891-9190-1a8e4abce52b-- 1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --fb055e7f-79e6-4e02-972b-151228558d11-- 80,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --e0aefa23-29b2-438e-9ba8-61b0f8d28264-- 80,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --776b3211-146f-447c-ab09-d6d2ffb74596-- 0,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --07436667-7f2b-4bf2-9157-534ca7434ab8-- :1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --7be1bb81-5dbe-4724-a7ee-bfaf6fd08c9e-- extSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mov_text","CodecTag":"tx3g","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"English (Default MOV_TEXT)","DisplayLanguage":"English","IsInterlaced":false,"BitRate":105,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mjpeg","ColorSpace":"bt470bg","TimeBase":"1/90000","CodecTimeBase":"0/1","IsInterlaced":false,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":300,"Width":300,"RealFrameRate":90000,"Profile":"192","Type":"EmbeddedImage","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuvj444p","Level":-99,"IsAnamorphic":false}],"ImageTags":{"Primary":"de98cf81b4787fc85e7caec59ecf4b29"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --e2e75835-71c8-407d-8f31-6b02c2de456e-- tSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mov_text","CodecTag":"tx3g","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"English (Default MOV_TEXT)","DisplayLanguage":"English","IsInterlaced":false,"BitRate":105,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mjpeg","ColorSpace":"bt470bg","TimeBase":"1/90000","CodecTimeBase":"0/1","IsInterlaced":false,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":300,"Width":300,"RealFrameRate":90000,"Profile":"192","Type":"EmbeddedImage","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuvj444p","Level":-99,"IsAnamorphic":false}],"ImageTags":{"Primary":"de98cf81b4787fc85e7caec59ecf4b29"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --eecdb6f9-def9-4749-b00d-c385fc63da0e-- tSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mov_text","CodecTag":"tx3g","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"English (Default MOV_TEXT)","DisplayLanguage":"English","IsInterlaced":false,"BitRate":105,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mjpeg","ColorSpace":"bt470bg","TimeBase":"1/90000","CodecTimeBase":"0/1","IsInterlaced":false,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":300,"Width":300,"RealFrameRate":90000,"Profile":"192","Type":"EmbeddedImage","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuvj444p","Level":-99,"IsAnamorphic":false}],"ImageTags":{"Primary":"de98cf81b4787fc85e7caec59ecf4b29"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --72a52cd8-129c-458e-9822-13f77b94d486-- SubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mov_text","CodecTag":"tx3g","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"English (Default MOV_TEXT)","DisplayLanguage":"English","IsInterlaced":false,"BitRate":105,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mjpeg","ColorSpace":"bt470bg","TimeBase":"1/90000","CodecTimeBase":"0/1","IsInterlaced":false,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":300,"Width":300,"RealFrameRate":90000,"Profile":"192","Type":"EmbeddedImage","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuvj444p","Level":-99,"IsAnamorphic":false}],"ImageTags":{"Primary":"de98cf81b4787fc85e7caec59ecf4b29"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --9e2b0f1d-56e1-4edc-afab-f31ab4ae3ca8-- TextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mov_text","CodecTag":"tx3g","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"English (Default MOV_TEXT)","DisplayLanguage":"English","IsInterlaced":false,"BitRate":105,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Protocol":"File","Level":0},{"Codec":"mjpeg","ColorSpace":"bt470bg","TimeBase":"1/90000","CodecTimeBase":"0/1","IsInterlaced":false,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":300,"Width":300,"RealFrameRate":90000,"Profile":"192","Type":"EmbeddedImage","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuvj444p","Level":-99,"IsAnamorphic":false}],"ImageTags":{"Primary":"de98cf81b4787fc85e7caec59ecf4b29"},"BackdropImageTags":[],"ParentLogoImageTag":"07e5dfbfdee3e1bdd9b18cd5fe8b1827","ParentThumbItemId":"4583","ParentThumbImageTag":"8d58ab5440b8d524d7ceb4ae08aef2f6","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --0c290461-7a5c-440f-b3b9-b5e08f097bd8-- ":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --4bf71a63-d851-4efa-87d1-dbb760410606-- Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --618ccfd2-c415-4f63-9b73-1a3a9739dc09-- Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --78b23955-882b-4408-9e91-bb35a95df35e-- Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --a2d41341-02ed-454b-8807-c447c7df18a4-- ":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --26d09ed5-0d0f-48a0-9150-c8de54b33a3f-- :"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --88b84a41-1d30-4c47-bbb6-1123bb993663-- "Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --a7bd2fa4-13a0-4cef-a8fc-926ed34e237a-- 2,"Height":320},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --11b4eac4-12a8-433a-be21-569201149142-- "Height":320},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --a752a896-3e65-4037-9d32-fc7ac40fa609-- "Height":320},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --48dbe3b1-eb4f-4625-b209-d623d27d917d-- Height":320},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --d09895c4-b832-4623-a1eb-00763c0f9544-- 32,"Height":320},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --b8046e80-8732-4ad9-bc3e-84bbffe88c15-- ame":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --654c6fc3-fafd-43fc-b113-c951849ec85c-- e":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --702950a4-d7d1-4f70-a348-34dac833fd4c-- ":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --8da033dd-1e9a-4158-9c30-81b7cce732c8-- 00000,"Name":"Chapter 4"},{"StartPositionTicks":12000000000,"Name":"Chapter 5"}],"MediaType":"Video","Width":720,"Height":404},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --f8c3b2d1-c857-49a3-b2a7-3f39b2527724-- 0000000,"Name":"Chapter 4"},{"StartPositionTicks":12000000000,"Name":"Chapter 5"}],"MediaType":"Video","Width":720,"Height":404},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --53a0d807-ade1-4170-823e-ee1e4ed8b29b-- 0000000,"Name":"Chapter 4"},{"StartPositionTicks":12000000000,"Name":"Chapter 5"}],"MediaType":"Video","Width":720,"Height":404},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.110","Client":"Emby for Chromecast","DeviceName":"Bedroom TV","DeviceId":"QmVkcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"3e0beb182371310ed90c87dfa23484a1"}} --e3a92a2a-214c-4f21-a687-d541b3cc003e-- and; y Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"}, "Session": {"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"} } 2bebc8ac2de300c842383a35c9b09","ParentThumbItemId":"9479","ParentThumbImageTag":"9c7ad64c4081281ddd092160f16cc926","Chapters":[{"StartPositionTicks":0,"Name":"Chapter 1"},{"StartPositionTicks":3000000000,"Name":"Chapter 2"},{"StartPositionTicks":6000000000,"Name":"Chapter 3"},{"StartPositionTicks":9000000000,"Name":"Chapter 4"},{"StartPositionTicks":12000000000,"Name":"Chapter 5"},{"StartPositionTicks":15000000000,"Name":"Chapter 6"}],"MediaType":"Video","Width":1280,"Height":720},"Server":{"Name":"Emby Server","Id":"1d7e0f909f2748a981e8a3a0dd65d589"},"Session":{"RemoteEndPoint":"192.168.1.113","Client":"Emby for Chromecast","DeviceName":"Loungeroom TV","DeviceId":"TG91bmdlcm9vbSBUVg11","ApplicationVersion":"2.1.0","Id":"95269c73df843edf15320cc36ddbd159"}} --85a4a979-d4da-409d-bca7-2e94227300ea-- Notice how the post data is incomplete, each time missing a portion of the data from the beginning of the data body. My PHP code is rather simple, and is as follows :- $post_data = file_get_contents('php://input'); $post_data .= "\r\n"; file_put_contents("/home/medius/public_html/emby_hook_log.txt", $post_data, FILE_APPEND); Thanks for the insight and assistance! (Emby is completely uptodate, and so is webhooks plugin)
×
×
  • Create New...