-
Notifications
You must be signed in to change notification settings - Fork 6
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
mpegts/network/mux_create #5
Comments
I've never tried to use that function, just documented it from the TVheadend source. The work is done by input/mpegts/iptv/iptv.c, input/mpegts/mpegts_network.c or input/mpegts/mpegts_network_dvb.c depending on what kind of network you are adding a mux to. I've tried to add another mux to my DVB-S setup through the API (using curl) but all attempts produce a 400 error. Unfortunately because of the way the api is written there is no information available on what went wrong. |
OK got it working. I enabled debug and trace of the "http" subsystem of TVH, then added a new mux manually through the GUI. The debug log showed what the browser had sent to TVH when I added the mux. I could then replicate that using the api. My curl command was
I was adding a DVB-S mux; other network types will need different parameters. The trick of using http debug won't work for all APIs, as the GUI doesn't always seem to use that protocol. I'll add more detail to the api docs later. |
Hello.
How should I enter the parameters containing the mux configuration? I tried mpegts/network/mux_create?uuid=net&conf=json in python as well as mpegts/network/mux_create?uuid=net, json=json containing {"conf": {"keys"}} all taken from mpegts/network/mux_class including class, event, caption and even props still in config, also props without config and config without props, config without class, events and caption also does not work, I get 400 bad request. From src/api/mpegts.c I am not able to deduce much. Can I ask for an example or guide me what I am doing wrong?
The text was updated successfully, but these errors were encountered: