Trying to understand the s:source workaround for dynamic streams #2252
Replies: 4 comments 9 replies
-
Hi! Make sure that you surround everything with parenthesis. The complete syntax is: |
Beta Was this translation helpful? Give feedback.
-
@toots one other question:
|
Beta Was this translation helpful? Give feedback.
-
Nevermind. I think that the example from the book is just outdated. I will work with the example posted. Is there any drawback to having the output defined within the create_playlist function as opposed to having an output without a mountpoint declared beforehand? I thank you for your patience as I do my best to learn! |
Beta Was this translation helpful? Give feedback.
-
It looks like part of the issue might be that the playlist that is created is considered to be static, not dynamic and I'm not sure why that would be. That might be the reason that list.iter(source.shutdown, matching_sources) can't shut it down. |
Beta Was this translation helpful? Give feedback.
-
Hi. I'm trying to get an example of dynamic streams working. I saw the workaround which involved using s:source but unfortunately I always get a syntax error message when I include the colon after the source. Can anyone share an example of a dynamic playlist stream that works? Much appreciated.
Edit: to clarify, I'm referring to lists of stream variables which are not recognized as streams in the type checker.
Beta Was this translation helpful? Give feedback.
All reactions