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

iCal -> Wallclock repeat implementation #26

Closed
jf133 opened this issue Dec 15, 2021 · 4 comments
Closed

iCal -> Wallclock repeat implementation #26

jf133 opened this issue Dec 15, 2021 · 4 comments

Comments

@jf133
Copy link

jf133 commented Dec 15, 2021

Hi --

I like this project and interested in its extensive use. Curious, is there a way to implement rrule for easy datetime interpretation of repeating of slides, etc?

Thank you!

JF

@sagiadinos
Copy link
Owner

Hello JF,

I am uncertain if I understood what you mean with "datetime interpretation of repeating".

There is a "begin" and "end" attribute in SMIL. There you can trigger repeats based on datetime (wallclock).
http://www.a-smil.org/index.php/Wallclock
https://www.w3.org/TR/SMIL3/smil-timing.html#q31

In the garlic-palyer /test/data/smil/ directory you will find some examples like this here:
https://github.com/sagiadinos/garlic-player/blob/master/tests/data/smil/par/5_wallclock.smil

Hope this helps.

@jf133
Copy link
Author

jf133 commented Dec 20, 2021

Hi Niko -- I was essentially asking for a way to convert ical's repeat rule into the wallclock format to understand format for smil.

for example: DTSTART:20211220T020000Z
RRULE:FREQ=WEEKLY;UNTIL=20220131T120000Z;COUNT=30;INTERVAL=1;WKST=MO would translate smartly into wallclock. I see there's a library to do ical->rrule implemntation here https://jakubroztocil.github.io/rrule/

Is there such a thing that smil can accept?

@jf133 jf133 changed the title rrule implementation iCal -> Wallclock repeat implementation Dec 20, 2021
@jf133
Copy link
Author

jf133 commented Dec 29, 2021

I'm going to try to use the Wall clock conversion.

Thank you
JF

@jf133 jf133 closed this as completed Dec 29, 2021
@sagiadinos
Copy link
Owner

Oh, I overseen this.

Is there such a thing that smil can accept?

Yes, As I understand, wallclock and the repeat periods cover this. Periods have the same syntax as time intervals of the iso-8601 date.
e.g.
P1Y2M10DT2H30M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants