Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This page aims at summarizing all the UA test cases covering the syntax, semantics, and units of the three dimensions defined in the Media Fragment URI specification. The temporal test cases have been partially defined during the 5th face-to-face meeting, see also http://www.w3.org/2008/WebVideo/Fragments/meetings/2010-03-09-f2f_ghent/
For the temporal test cases, we introduce the following definitions:
Apply filters here:
Fragment axis | |
Fragment characteristic | |
Test case type |
TC | Description | Media Fragment | Expected HTTP request | Expected visual output | Comment | Status |
---|---|---|---|---|---|---|
TC0001-UA | #t=, | t=, | OR | Playback of the entire media resource | Syntax error, not allowed according to the ABNF. The media fragment is ignored. | approved |
TC0002-UA | #t=a,a and a >= 0 | t=3,3 | OR | Playback of the entire media resource | Invalid semantics: start must be smaller than end. The media fragment is ignored. | approved |
TC0003-UA | #t=a,b and a > b | t=7,3 | OR | Playback of the entire media resource | Invalid semantics: the requested interval's start is beyond its end. The media fragment is ignored. | approved |
TC0004-UA | #t=a,b and a = 0, b = e | t=0,9.97 | OR OR OR | Playback of the entire media resource | The media is requested from 0 to e. | approved |
TC0005-UA | #t=a,b and a >= 0, a < b, a < e and b <= e | t=3,7 | OR OR OR OR | Playback from 3 to 7 seconds | The media is requested from a to b. | approved |
TC0006-UA | #t=a,b and a >= 0, a < b, a < e and b > e | t=3,15 | OR OR OR OR OR OR | Playback from 3 seconds to the end | The media is requested from a to e. | approved |
TC0009-UA | #t=a,b and a < b and a >= e | t=15,20 | OR OR | UA seeks to the end of the media resource. | The request lies beyond the end of the resource. If the UA knows the duration of the resource, it seeks to the end of the media resource. Otherwise, the UA will send an (out-of-range) HTTP request with an 'include-setup' in order to setup its decoding pipeline. | approved |
TC0011-UA | #t=a with a >= 0, a < e | t=3 | OR OR OR OR OR | Playback from 3 seconds to the end | Equivalent to #t=a,e. The media is requested from a to e. | approved |
TC0012-UA | #t=a, with a >= 0, a < e | t=3, | OR | Playback of the entire media resource | Invalid syntax, hence the temporal fragment is ignored. | approved |
TC0014-UA | #t=a with a >= e | t=15 | OR OR | UA seeks to the end of the media resource. | The request lies beyond the end of the resource. If the UA knows the duration of the resource, it seeks to the end of the media resource. Otherwise, the UA will send an (out-of-range) HTTP request with an 'include-setup' in order to setup its decoding pipeline. | approved |
TC0015-UA | #t=,b and b > 0, b <= e | t=,7 | OR OR OR OR | Playback from the beginning to 7 seconds | Equivalent to #t=0,b. The media is requested from 0 to b. | approved |
TC0017-UA | #t=,b and b > e | t=,15 | OR OR OR | Playback of the entire media resource | Equivalent to #t=0,e. The media is requested from 0 to e. | approved |
TC0018-UA | SMPTE | t=smpte:0:00:03,0:00:07 | OR OR OR OR | Playback from the frame marked with timecode 00:00:03 in smpte-30 to the frame marked with timecode 00:00:07 in smpte-30. | SMPTE time code unit | approved |
TC0019-UA | SMPTE (detail) | t=smpte:0:00:03:15.00,0:00:07 | OR OR OR OR | Playback from the frame marked with timecode 00:00:03:15.00 in smpte-30 to the frame marked with timecode 00:00:07 in smpte-30 | SMPTE time code unit | approved |
TC0020-UA | SMPTE-25 | t=smpte-25:0:00:03,0:00:07 | OR OR OR OR | Playback from the frame marked with timecode 00:00:03 in smpte-25 to the frame marked with timecode 00:00:07 in smpte-25 | SMPTE time code unit | approved |
TC0021-UA | SMPTE-25 applied to a non-25fps media resource | t=smpte-25:0:00:03,0:00:07 | OR OR OR | Playback of the entire media resource. | A smpte temporal fragment using the wrong frame rate is ignored if the UA is aware of the frame rate. Otherwise, a (non-understandable) Range header is sent. | approved |
TC0022-UA | SMPTE-30 | t=smpte-30:0:00:03,0:00:07 | OR OR OR OR | Playback from the frame marked with timecode 00:00:03 in smpte-30 to the frame marked with timecode 00:00:07 in smpte-30 | SMPTE time code unit | approved |
TC0023-UA | SMPTE-30-drop | t=smpte-30-drop:0:00:03,0:00:07 | OR OR OR OR | Playback from the frame marked with timecode 00:00:03 in smpte-30-drop to the frame marked with timecode 00:00:07 in smpte-30-drop | SMPTE time code unit | approved |
TC0024-UA | NPT | t=npt:3,7 | OR OR OR OR | Playback from 3 to 7 seconds | equivalent to #t=3,7 | approved |
TC0025-UA | Clock | t=clock:2010-10-22T07:33:56Z | OR OR OR OR | Playback from 3 seconds to the end (creation time = 2010-10-22T07:33:53Z) | Given the creation time of the media resource, find the corresponding temporal fragment | approved |
TC0026-UA | Clock with + | t=clock:2010-10-22T07:33:56+00:20 | OR OR OR OR | Playback from 3 seconds to the end (creation time = 2010-10-22T07:33:53Z) | Given the creation time of the media resource, find the corresponding temporal fragment | approved |
TC0027-UA | Illegal strings | t=banana | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0028-UA | Illegal strings | t=3,banana | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0029-UA | Illegal strings | t=banana,7 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0030-UA | Illegal strings | t='3' | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0031-UA | Illegal strings | t=3-7 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0032-UA | Illegal strings | t=3:7 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0033-UA | Illegal strings | t=3,7,9 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0034-UA | Illegal strings | t%3D3 | OR | Playback of the entire media resource | UA does not identify this as a media fragment, so it will play the entire media resource. Note: %3D is equivalent to =. | approved |
TC0035-UA | Valid percent encoding | %74=3 | OR OR OR OR | Playback of from 3 seconds to the end | The media is requested from 3 seconds to the end. Note: %74 is equivalent to t. | approved |
TC0036-UA | Valid percent encoding | t=%33 | OR OR OR OR | Playback of from 3 seconds to the end | The media is requested from 3 seconds to the end. Note: %33 is equivalent to 3. | approved |
TC0037-UA | Valid percent encoding | t=3%2C7 | OR OR OR OR | Playback from 3 to 7 seconds | The media is requested from 3 to 7 seconds. Note: %2C is equivalent to ,. | approved |
TC0038-UA | Valid percent encoding | t=%6Ept:3 | OR OR OR OR | Playback of from 3 seconds to the end | The media is requested from 3 seconds to the end. %6E is equivalent to n. | approved |
TC0039-UA | Valid percent encoding | t=npt%3A3 | OR OR OR OR | Playback of from 3 seconds to the end | The media is requested from 3 seconds to the end. Note: %3A is equivalent to :. | approved |
TC0044-UA | #t=a,b and a < 0 | t=-1,3 | OR | Playback of the entire media resource | Invalid syntax: a '-' character is not allowed at this position according to the ABNF. The UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0045-UA | Valid simple spatial fragment | xywh=200,100,200,200 | OR | Cropped playback of the media resource. Cropping details: upper left corner: (200,100) pixels, width: 200, height: 200 | The full media resource is requested. Subsequently, the media is cropped within the rectangular (200,100,200,200) during playback. | approved |
TC0046-UA | Valid simple spatial fragment in pixels | xywh=pixel:200,100,200,200 | OR | Cropped playback of the media resource. Cropping details: upper left corner: (200,100) pixels, width: 200, height: 200 | The full media resource is requested. Subsequently, the media is cropped within the rectangular (200,100,200,200) during playback. | approved |
TC0047-UA | Valid simple spatial fragment in percent | xywh=percent:0,0,50,50 | OR | Cropped playback of the media resource. Cropping details: upper left corner: (0,0) pixels, width: 640, height: 360 | The full media resource is requested. Subsequently, the media is cropped within the rectangular (0,0,640,360) during playback, since the video's full resolution is 1280x720px | approved |
TC0048-UA | Width and/or height are lower than or equal to zero | xywh=200,100,0,0 | OR | Playback of the entire media resource | Invalid semantics: width and height of cropped region must be larger than 0. The media fragment is ignored and the full media resource is requested. | approved |
TC0049-UA | The x and/or y coordinate is lower than zero | xywh=-200,100,200,200 | OR | Playback of the entire media resource | Invalid syntax: the '-' character is not allowed at that position according to the ABNF. Hence, the full media resource is requested. | approved |
TC0050-UA | One of the coordinates is higher than 100 when percent is used as unit | xywh=percent:0,0,150,50 | OR | Playback of the entire media resource | Invalid semantics: width and height percentages of a cropped region must be smaller or equal to 100. The media fragment is ignored and the full media resource is requested. | approved |
TC0051-UA | Trailing '&' | t=3& | OR OR OR OR | Playback from 3 seconds to the end | After processing name-value pairs, this appears to be equivalent to #t=3. | approved |
TC0052-UA | Unknown keys | u=12&t=3 | OR OR OR OR | Playback from 3 seconds to the end | After processing name-value pairs, this appears to be equivalent to #t=3. | approved |
TC0053-UA | Unknown unit | t=foo:7&t=npt:3 | OR OR OR OR | Playback from 3 seconds to the end | After processing name-value pairs, this appears to be equivalent to #t=3. | approved |
TC0054-UA | Unknown keys (bis) | &&=&=tom&jerry=&t=3&t=meow:0# | OR OR OR OR | Playback from 3 seconds to the end | After processing name-value pairs, this appears to be equivalent to #t=3. | approved |
TC0055-UA | Duplicate (key - known unit) combination | t=7&t=3 | OR OR OR OR | Playback from 3 seconds to the end | When a fragment dimensions occurs multiple times, only the last occurrence of that dimension is interpreted. | approved |
TC0056-UA | A valid track fragment | track=4 | OR | Playback of track '4' (video only) | The full media resource is requested, only track 4 will be played. | approved |
TC0057-UA | A non-existing track fragment | track=foo | OR | Playback of the entire media resource | The track 'foo' is a non-existent track, hence the track fragment will be ignored. The entire media resource will be played. | approved |
TC0058-UA | Invalid axis parameters | T=3,7 | OR | Playback of the entire media resource | UA does not identify this as a media fragment. The entire media resource is played. | approved |
TC0059-UA | Duplicate (key - known unit) combination | t=smpte:00:00:01&t=npt:3 | OR OR OR OR | Playback from 3 seconds to the end | When a fragment dimensions occurs multiple times, only the last occurrence of that dimension is interpreted. | approved |
TC0060-UA | A valid track fragment | track=n%40m3%20%26%3D | OR | Playback of track 'n@m3 &=' | The full media resource is requested. Only to track 'n@m3 &=' is played. | approved |
TC0061-UA | Illegal strings | t= | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0062-UA | Illegal strings | t=. | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0063-UA | Illegal strings | t=.0 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0064-UA | Illegal strings | t=0s | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0065-UA | Illegal strings | t=,0s | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0066-UA | Illegal strings | t=0s,0s | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0067-UA | Illegal strings | t=00:00:00s | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0068-UA | Illegal strings | t=s | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0069-UA | Illegal strings | t=npt: | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0070-UA | Illegal strings | t=1e-1 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0071-UA | Illegal strings | t=00:00:01.1e-1 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0072-UA | Trailing dot | t=3. | OR OR OR OR OR | Playback from 3 seconds to the end | Equivalent to #t=a,e. The media is requested from a to e. | approved |
TC0073-UA | Illegal strings | t=0:0:0 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0074-UA | Illegal strings | t=0:00:60 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0075-UA | Illegal strings | t=0:01:60 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0076-UA | Illegal strings | t=0:60:00 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0077-UA | Illegal strings | t=0:000:000 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0078-UA | NPT HH:MM:SS format | t=00:00:03,00:00:07 | OR OR OR OR | Playback from 3 to 7 seconds | The media is requested from a to b. | approved |
TC0079-UA | NPT mixed formats | t=3,00:00:07 | OR OR OR OR | Playback from 3 to 7 seconds | The media is requested from a to b. | approved |
TC0080-UA | NPT, trailing dot | t=00:00. | OR | Playback of the entire media resource | A valid media fragment, starting at 0 seconds. Thus, the UA will play the entire media resource. | approved |
TC0081-UA | NPT, trailing dot (bis) | t=0:00:00. | OR | Playback of the entire media resource | A valid media fragment, starting at 0 seconds. Thus, the UA will play the entire media resource. | approved |
TC0082-UA | Illegal strings | t=0:00:10e-1 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0083-UA | Illegal strings | t=0:00:60.000 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0084-UA | Illegal strings | t=0:60:00.000 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0085-UA | Trailing invalid time fragment is ignored | t=3,7&t=foo | OR OR OR OR | Playback from 3 to 7 seconds | The media is requested from a to b. | approved |
TC0086-UA | Rubbish before & | foo&t=3,7 | OR OR OR OR | Playback from 3 to 7 seconds | Rubbish before & is ignored. | approved |
TC0087-UA | Rubbish after & | t=3,7&foo | OR OR OR OR | Playback from 3 to 7 seconds | Rubbish after & is ignored. | approved |
TC0088-UA | Sprinkling & | t=3,7&& | OR OR OR OR | Playback from 3 to 7 seconds | Sprinkling & is OK. | approved |
TC0089-UA | Sprinkling & | &t=3,7 | OR OR OR OR | Playback from 3 to 7 seconds | Sprinkling & is OK. | approved |
TC0090-UA | Sprinkling & | &&t=3,7 | OR OR OR OR | Playback from 3 to 7 seconds | Sprinkling & is OK. | approved |
TC0091-UA | Sprinkling & | &t=3,7& | OR OR OR OR | Playback from 3 to 7 seconds | Sprinkling & is OK. | approved |
TC0092-UA | Incorrect percent encoding | t%3d10 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0093-UA | Incorrect percent encoding | t=10%26 | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0094-UA | Trailing comma | t=3,7, | OR | Playback of the entire media resource | UA knows that this is an invalid media fragment, so it will play the entire media resource. | approved |
TC0095-UA | Spatial fragment partially covering the source media | xywh=200,100,2000,200 | OR | Cropped playback of the media resource. Cropping details: upper left corner: (200,100) pixels, width: 520, height: 200 (because height of the source media is only 720 pixels) | The full media resource is requested. Subsequently, the media is cropped within the rectangular (200,100,520,200) during playback (since the media's resolution is 1280x720px). | approved |
TC0096-UA | Multiple track fragments | track=4&track=5 | OR | Playback of tracks '4' and '5' | The full media resource is requested. Only tracks 4 and 5 are played. | approved |
TC0097-UA | Non-applicable fragment dimension | xywh=20,20,5,5 | OR | Playback of the entire resource | Spatial fragments cannot be applied to audio resources and are thus ignored by the UA. | approved |
TC0098-UA | Spatial fragment outside the source media | xywh=2000,100,200,200 | OR | Playback of the entire resource | The full media resource is requested. Since the spatial fragment is outside the source media (its resolution is 1280x720px), it is ignored by the UA. | approved |
TC0099-UA | SMPTE starting at non-zero | t=smpte-30:0:00:03,0:00:07 | OR OR OR OR | Playback from the frame marked with timecode 0:00:03 in smpte-30 to the frame marked with timecode 0:00:07 in smpte-30. | SMPTE encoded media resources having smpte time codes starting at non-zero. The first frame of the media resource is marked with timecode 0:00:02 in smpte-30. | approved |
TC0100-UA | SMPTE starting at non-zero (bis) | t=smpte-30:0:00:00,0:00:01 | OR OR OR | Playback of the entire media resource (first frame is marked with timecode 0:00:02 in smpte-30). | SMPTE encoded media resources having smpte time codes starting at non-zero. The first frame of the media resource is marked with timecode 0:00:02 in smpte-30. | approved |
TC0101-UA | A valid id fragment | id=Doug | OR OR OR OR | Playback of the id fragment 'Doug' | The bytes corresponding to the id fragment are requested. | approved |
TC0102-UA | An invalid id fragment | id=foo | OR OR OR | Playback of the entire media resource | The requested id fragment does not exist within the media resource. | approved |