Skip to content
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

Create watch_folder_update_sch.sh #1503

Closed
wants to merge 2 commits into from
Closed

Conversation

bchah
Copy link
Collaborator

@bchah bchah commented Jan 16, 2024

This script lets you watch a folder relative to your root media folder for a Scheduled Provider and update a manifest.sch file of your choosing whenever files are added, renamed, or removed. Requires inotify-tools and xmlstarlet.

bchah added 2 commits January 16, 2024 12:35
This script lets you watch a folder relative to your root media folder for a Scheduled Provider and update a manifest.sch file of your choosing whenever files are added, renamed, or removed.
@getroot
Copy link
Member

getroot commented Feb 8, 2024

Thank you for the great PR. Could you please add information about this script to the manual?
https://github.com/AirenSoft/OvenMediaEngine/blob/master/docs/live-source/scheduled-channel.md

@bchah
Copy link
Collaborator Author

bchah commented Feb 21, 2024

Hi @getroot I was writing up the documentation but realized there is an issue with ScheduledChannel that makes use of a watch folder a bit risky. If you update the configuration of a .sch file OME will immediately start playback from the beginning of the updated .sch file.

So even if somebody wanted to just remove a file from the watch folder, it would cause their playlist to start from the beginning again. I have not tested this with the API yet. Do you know if it behaves the same way? i.e. restarts playback anytime a ScheduledChannel is updated?

Here is my idea for how to make changing the .sch file seamless: When a change is detected, the current playing item finishes playback. Then if the same item with matching parameters is found in the new .sch file, playback continues from the next item in the new playlist, rather than from the beginning. If previously playing item is not found in the new playlist, or if the user sends an API call to 'delete' the stream at any time then playback can start directly from the beginning. I hope this makes sense and appreciate that it is not a simple request, but it would make the ScheduledChannel feature a lot more robust.

Copy link

stale bot commented Apr 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 21, 2024
@stale stale bot closed this Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants