Should we limit serviceRefTypes to 1, 4097, 5001, 5002? Are there any others?
Should we limit serviceRefTypes to 1, 4097, 5001, 5002? Are there any others?
They are the only serviceref types that I know of.
How about defaulting to 1 if serviceref type isn't one of those mentioned?
Here is the final version (not tested).
Attribute name has been changed to "servicereftype".
Text for adding to "README.txt":
Code:You can also give your stream a "service reference type". This allows you to tell the receiver which playback software to use for that individual stream. In this example "servicereftype" has been added. <custommix> <streams> <stream url="http://stream.source:port/live/username/F36/password/308.ts" target="118" servicereftype="4097" /> </streams> </custommix> The following is a list of currently valid "service reference types". 1, processed by the SoC (for when buffering is not required), 4097, processed by gstreamer via servicemp3, 5001, processed by gestreamer via gst-player, 5002, processed via extplayer3.
Last edited by Huevos; 01-12-19 at 09:32.
abu baniaz (05-09-22),bbbuk (01-12-19),dsayers (01-12-19),Sicilian (01-12-19)
@Huevos, above code works fine as intended except for small typo in tools.py:-
SERVICEREF_ALLOWED_TYPES = [1, 4097, 5001, 5002]
Thanks again
Create a PR here regarding your work on this @Huevos.
Thanks again
Last edited by bbbuk; 01-12-19 at 16:24.
abu baniaz (01-12-19),dsayers (01-12-19),Huevos (01-12-19)
abu baniaz (01-12-19),bbbuk (01-12-19),dsayers (01-12-19)