2022-09-26 12:04:37 +03:00
|
|
|
import genericProxyHandler from "utils/proxy/handlers/generic";
|
2022-09-25 16:15:47 -07:00
|
|
|
|
|
|
|
const widget = {
|
|
|
|
api: "{url}/emby/{endpoint}?api_key={key}",
|
|
|
|
proxyHandler: genericProxyHandler,
|
|
|
|
|
|
|
|
mappings: {
|
2022-09-26 12:04:37 +03:00
|
|
|
Sessions: {
|
2022-09-25 16:15:47 -07:00
|
|
|
endpoint: "Sessions",
|
|
|
|
},
|
2022-09-26 12:04:37 +03:00
|
|
|
PlayControl: {
|
2022-09-25 16:15:47 -07:00
|
|
|
method: "POST",
|
2022-10-29 13:39:54 -05:00
|
|
|
endpoint: "Sessions/{sessionId}/Playing/{command}",
|
2022-09-26 12:04:37 +03:00
|
|
|
segments: ["sessionId", "command"],
|
|
|
|
},
|
2022-09-25 16:15:47 -07:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default widget;
|