Page 3 of 3 FirstFirst 123
Results 31 to 37 of 37
  1. #31
    Moderator Huevos's Avatar

    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    8,524
    Thanks
    1,654
    Thanked 3,174 Times in 2,087 Posts
    Should we limit serviceRefTypes to 1, 4097, 5001, 5002? Are there any others?

  2. #32
    Forum Supporter
    Donated Member


    Join Date
    Jun 2014
    Posts
    1,086
    Thanks
    458
    Thanked 342 Times in 214 Posts
    They are the only serviceref types that I know of.

    How about defaulting to 1 if serviceref type isn't one of those mentioned?

  3. #33
    Moderator Huevos's Avatar

    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    8,524
    Thanks
    1,654
    Thanked 3,174 Times in 2,087 Posts
    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.
    Attached Files Attached Files
    Last edited by Huevos; 01-12-19 at 09:32.

  4. The Following 3 Users Say Thank You to Huevos For This Useful Post:

    bbbuk (01-12-19),dsayers (01-12-19),Sicilian (01-12-19)

  5. #34
    Moderator Huevos's Avatar

    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    8,524
    Thanks
    1,654
    Thanked 3,174 Times in 2,087 Posts
    Quote Originally Posted by bbbuk View Post
    They are the only serviceref types that I know of.

    How about defaulting to 1 if serviceref type isn't one of those mentioned?
    Code attached above should do that automatically.

  6. #35
    Forum Supporter
    Donated Member


    Join Date
    Jun 2014
    Posts
    1,086
    Thanks
    458
    Thanked 342 Times in 214 Posts
    @Huevos, above code works fine as intended except for small typo in tools.py:-
    SERVICEREF_ALLOWED_TYPES = [1, 4097, 5001, 5002]

    Thanks again

  7. #36
    Forum Supporter
    Donated Member


    Join Date
    Jun 2014
    Posts
    1,086
    Thanks
    458
    Thanked 342 Times in 214 Posts
    Create a PR here regarding your work on this @Huevos.

    Thanks again
    Last edited by bbbuk; 01-12-19 at 16:24.

  8. The Following 3 Users Say Thank You to bbbuk For This Useful Post:

    abu baniaz (01-12-19),dsayers (01-12-19),Huevos (01-12-19)

  9. #37
    Moderator Huevos's Avatar

    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    8,524
    Thanks
    1,654
    Thanked 3,174 Times in 2,087 Posts

  10. The Following 3 Users Say Thank You to Huevos For This Useful Post:

    abu baniaz (01-12-19),bbbuk (01-12-19),dsayers (01-12-19)

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.