Hi Tobias

Another point to bear in mind: the entire widget tree (and hence DOM tree)
may need to be destroyed and recreated at any time as part of a refresh
cycle.

> To me, this is not about states, it is about but temporarily manipulating
a representation, a simple action that does not require storing whatever
changes to the output were made. Meaning, I do not need to remember the
last triggered start (or end) position for the video. Instead, I just need
that button / link to trigger a redraw of the associated iframe to have
that player / video set to the desired parameters. This information does
not need to be stored as a state and can be happily discarded, can it not?
In other words, we are entirely working with the DOM at this moment, are we
not?

Embedding a YouTube video as an iframe is already problematic. Try playing
a video on tiddlywiki.com and then change the language setting while the
video is playing. The video will reset back to the beginning. That's
because the video player has state (whether it is playing or not) that is
not restored after a refresh. The fix would be for a YouTube widget to
store in tiddlers the position within the video, and whether it is playing
or not. Then the widget could restore the video to (almost) the correct
point. If the widget also responded to changes in those tiddlers then we'd
have a very flexible basis for controlling and manipulating videos.

Best wishes

Jeremy.





On Mon, Jan 5, 2015 at 5:28 PM, Tobias Beer <[email protected]> wrote:

> Hi Jeremy,
>
>
>> Remember that TW5 isn't like traditional jQuery development. With
>> traditional jQuery work you keep the state of the application in the DOM;
>> that's why there's a lot of DOM manipulation. In TW5, you never keep state
>> in the DOM, and so there's very little DOM manipulation.
>
>
> To me, this is not about states, it is about but temporarily manipulating
> a representation, a simple action that does not require storing whatever
> changes to the output were made. Meaning, I do *not* need to remember the
> last triggered start (or end) position for the video. Instead, I just need
> that button / link to trigger a redraw of the associated iframe to have
> that player / video set to the desired parameters. This information does
> not need to be stored as a state and can be happily discarded, can it not?
> In other words, we are entirely working with the DOM at this moment, are we
> not?
>
> Best wishes, Tobias.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to