Code Monkey home page Code Monkey logo

Comments (4)

sagiadinos avatar sagiadinos commented on May 25, 2024

Assuming that the seq is in active/reachable state.
Yes, the correct behavior on a playlist start between 17:16:00 and 18:00:00 should be to enter the seq.

It seems there is a bug. Can you attach me the complete index.smil, please?

from garlic-player.

jf133 avatar jf133 commented on May 25, 2024

The example I'm using is below (sensitive info removed). Appreciate your feedback on the construction, as I'm new to SMIL:

<?xml version="1.0" encoding="UTF-8"?> <smil> <head> <meta http-equiv="Refresh" content="30"/> <layout> <root-layout width="3840" height="2160"/> <region xml:id="fullScreen" width="3840px" height="2160px" left="0px" top="0px" z-index="0" mediaAlign="center" backgroundColor="#000000" /> <transition xml:id="fade" type="fade" subtype="crossfade" dur="5s" /> </layout> </head> <body systemComponent="http://www.w3.org/1999/xhtml"> <par dur="indefinite"> <seq repeatCount="indefinite" begin="wallclock(R/2022-03-29T17:16:00/P1D)" end="wallclock(R/2022-03-29T18:00:00/P1D)"> <img src="https://xxxxx/file1.jpg" fit="meetBest" fill="transition" region="fullScreen" dur="5s"/> <video src="https://xxxxxxx/video1.mp4" fit="fill" fill="transition" region="fullScreen" dur="5s"/> <text src="https://xxxxxxx" fit="meetBest" fill="transition" region="fullScreen" dur="5s"/> </seq> </par> </body> </smil>

from garlic-player.

jf133 avatar jf133 commented on May 25, 2024

Another expected behavior:

Let's say the start time & sequence is like this
16:00:00 begin time
10 min slide 1 (ends at 16:10:00)
20 min slide 2 (ends at 16:30:00)
15 min slide 3 (ends at 16:45:00)
15 min slide 4 (ends at 17:00:00)
17:00:00 end time

For proper synchronization, if the player were to start at 16:35 it should start playing slide 3 with 5 min already elapsed and if player were to start at 16:47:00 it should start playing slide 4 with two minutes already elapsed.

from garlic-player.

sagiadinos avatar sagiadinos commented on May 25, 2024

I cannot reproduce it. Your example works on v0.5.0.601 (current dev version).

For the second question, I created a par sequence started
from 23:30:00 then every minute an image change
When started player at 23:34:20 correct number 5 is shown.

Do you try it with the garlic 0.5.0 stable or the current dev version? There were some fixes since last release.

Here is my test smil. The images are from test directory.

You can also try https://saghiadinos.de/garlic-test/issues/32.smil as Content-Url

<?xml version="1.0" encoding="UTF-8"?>
<smil>
	<head>
		<meta http-equiv="Refresh" content="30"/>
		<layout>
			<root-layout width="1920" height="1080"/>
			<region xml:id="fullScreen" width="1920px" height="1080px" left="0px" top="0px" z-index="0" mediaAlign="center" backgroundColor="#ff00ff" />
		</layout>
	</head>
	<body systemComponent="http://www.w3.org/1999/xhtml">
		<par dur="indefinite">
			<img src="../images/0001.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:30:00/P1D)" end="wallclock(R/2022-03-29T23:31:00/P1D)" />
			<img src="../images/0002.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:31:00/P1D)" end="wallclock(R/2022-03-29T23:32:00/P1D)" />
			<img src="../images/0003.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:32:00/P1D)" end="wallclock(R/2022-03-29T23:33:00/P1D)" />
			<img src="../images/0004.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:33:00/P1D)" end="wallclock(R/2022-03-29T23:34:00/P1D)" />
			<img src="../images/0005.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:34:00/P1D)" end="wallclock(R/2022-03-29T23:35:00/P1D)" />
			<img src="../images/0006.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:35:00/P1D)" end="wallclock(R/2022-03-29T23:36:00/P1D)" />
			<img src="../images/0007.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:36:00/P1D)" end="wallclock(R/2022-03-29T23:37:00/P1D)" />
			<img src="../images/0008.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:37:00/P1D)" end="wallclock(R/2022-03-29T23:38:00/P1D)" />
			<img src="../images/0009.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:38:00/P1D)" end="wallclock(R/2022-03-29T23:39:00/P1D)" />
			<img src="../images/0010.jpg" region="fullScreen" begin="wallclock(R/2022-03-29T23:39:00/P1D)" end="wallclock(R/2022-03-29T23:40:00/P1D)" />
		</par>
	</body>
</smil>

from garlic-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.