Datta321 | 6 Jul 2010 13:55

Is it possible to obtain session id of a streaned out SMIL file ?


 Does anyone know how to obtain session id of a SMIL being streamed out ? 
  i.e 
       1)http://localhost:8080/Sample.smil is being streamed out on "Apache
Tomcat server" and is being 
         played by Ambulant player, invoked by Mozilla browser. 

     2)I need to create a unique file per session, in the smil file, for the
following code segment
       "<submission xml:id="subid1" method="put" action="session_id.xml" />
, where session_id variable in 
       data model can be set using <setvalue ref="session_id"
value="sessionid"> and sessionid be value 
       obtained by using smil <element>/attribute. 

  Does smil have any provision for identifying session id, when such a
streamed file is played by a browser ?

--

-- 
View this message in context: http://old.nabble.com/Is-it-possible-to-obtain-session-id-of-a-streaned-out-SMIL-file---tp29084547p29084547.html
Sent from the w3.org - www-smil mailing list archive at Nabble.com.

Datta321 | 7 Jul 2010 14:15

Can SMIL read/send http response/request using query string ?


Is it possible to read http response, received after sending query string to
a server, through a SMIL file.
In this scenario, the SMIL first sends a request and then receives the
response.
       If so, can anyone let me know of a site, explaining the same with an
example and the syntax for the same ? 
--

-- 
View this message in context: http://old.nabble.com/Can-SMIL-read-send-http-response-request-using-query-string---tp29095368p29095368.html
Sent from the w3.org - www-smil mailing list archive at Nabble.com.

Jack Jansen | 8 Jul 2010 23:44
Picon
Picon
Favicon

Re: Can SMIL read/send http response/request using query string ?


On 7 jul 2010, at 14:15, Datta321 wrote:

> 
> Is it possible to read http response, received after sending query string to
> a server, through a SMIL file.
> In this scenario, the SMIL first sends a request and then receives the
> response.
>       If so, can anyone let me know of a site, explaining the same with an
> example and the syntax for the same ? 

To a limited extent, with the SMIL State <send> and <submission> elements. See
<http://www.w3.org/TR/2008/REC-SMIL3-20081201/smil-state.html#q34> for the formal details (and
an example). You may also want to check the SMIL Language Profile section (which has some details on the
methods supported) and possibly the XForms specification (after which this was modeled).

What this looks like, from the server side, is as if a form (HTML form or XForms form) has been filled in and
submitted by the user (with SMIL state variables being the data entered into the form). The replace and
target attributes allow you to determine what to do with the server response: if its a set of form values you
probably want to use replace=instance to store the values in the SMIL state, if it's a SMIL document (or
possibly something like an HTML document, or so) replace=all. That said, if you're using Ambulant to play
things I wouldn't count on the latter being fully implemented, let us hear of any issues you encounter.
--
Jack Jansen, <Jack.Jansen <at> cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma Goldman

Brian Birtles | 19 Jul 2010 08:53
Picon
Gravatar

Behaviour when active interval becomes invalid

Dear all,

I am writing to seek clarification about the correct behaviour of an
implementation of SMIL for an active interval than becomes invalid.

SMIL 3.0 gives "Principles for building and pruning intervals" under
section 5.4.5, 'Evaluation of begin and end lists'
(http://www.w3.org/TR/SMIL/smil-timing.html#q89)

This section provides some clear rules including the following:
"2. Do not change any interval time that is in the past. Do not prune
an interval that has already begun. Note that this refers to intervals
and not instance times.
"3. When building an interval from a set of instance times, if the
duration is resolved and negative, reject the interval; do not
propagate the interval to time dependents.
  A. When the current interval has not yet begun, if the interval
times change such that the duration is negative, prune the interval."

However, whilst the behaviour for an interval that has not yet begun
is clearly specified, the only rule provided for an interval that HAS
already begun is simply: do not prune.

Consider the following example. At t=4s, an interval with begin=3s,
end=5s is playing. Then some chain of syncbase dependencies is fired
causing the end time to be updated to 2s. We now have an active
interval from 3s to 2s which is invalid since it is negative. What
should be the behaviour in this case?

We can't prune the interval. But can we say the interval is trimmed?
(Continue reading)


Gmane