<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24558</bug_id>
          
          <creation_ts>2014-02-06 09:18:51 +0000</creation_ts>
          <short_desc>Difference in error handling for video element</short_desc>
          <delta_ts>2014-02-22 15:00:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>CR HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>24560</blocked>
    
    <blocked>24675</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>krsacme</reporter>
          <assigned_to name="Robin Berjon">robin</assigned_to>
          <cc>krsacme</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99883</commentid>
    <comment_count>0</comment_count>
      <attachid>1438</attachid>
    <who name="">krsacme</who>
    <bug_when>2014-02-06 09:18:51 +0000</bug_when>
    <thetext>Created attachment 1438
Samples to demonstrate the problem

Overview:
Observed a difference in error handling with and without source element for the video tag. In both the cases, the expectation is that application should know correct error codes (Network or Decode or Source Not Supported). Video element with out source is behaving as expected. Want to know why such a difference has been forced.

Steps To Reproduce:
1. Load &quot;video_error_good.html file&quot;
2. MediaError object in video element is updated with correct error code
3. Load &quot;video_error_bad.html&quot;
4. MediaError object in video element is null

Expected Behavior:
Application should be able to identify the reason for the failure (Network or Decode or source not supported)

Actual Behavior:
Application does not know what error it is even though source element fires error handler, type of the error is not known

Posted a query on the public-html5-comments list, haven&apos;t received any update. Link - http://lists.w3.org/Archives/Public/public-html-comments/2014Jan/0000.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99891</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-02-06 10:36:46 +0000</bug_when>
    <thetext>AFAICT this is working as expected. When using &lt;source&gt; elements, if the error occurs before reaching readyState HAVE_METADATA will cause the next &lt;source&gt; element to be tried instead. The error event is queued to be fired later, and at the time it fires the next source may already be loading, so it would be strange if HTMLMediaElement.error were not null at that point.

If distinguishing between network errors and decode errors at this point is important, the required spec change would be to set .error, delay trying the next source until the error event has been fired, and to set .error back to null at that point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99895</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-02-06 11:16:06 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #1)
&gt; If distinguishing between network errors and decode errors at this point is
&gt; important, the required spec change would be to set .error, delay trying the
&gt; next source until the error event has been fired, and to set .error back to
&gt; null at that point.

It seems better to add .error to HTMLSourceElement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101195</commentid>
    <comment_count>3</comment_count>
    <who name="">krsacme</who>
    <bug_when>2014-02-22 15:00:40 +0000</bug_when>
    <thetext>As per the discussion on Bug# 24560, and comment# 6 (https://www.w3.org/Bugs/Public/show_bug.cgi?id=24560#c6), the expected behavior should be same for src and &lt;srouce&gt; element. Will discuss with corresponding vendor implementation.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1438</attachid>
            <date>2014-02-06 09:18:51 +0000</date>
            <delta_ts>2014-02-06 09:18:51 +0000</delta_ts>
            <desc>Samples to demonstrate the problem</desc>
            <filename>w3c.rar</filename>
            <type>application/octet-stream</type>
            <size>1097</size>
            <attacher>krsacme</attacher>
            
              <data encoding="base64">UmFyIRoHAM+QcwAADQAAAAAAAACdQnQgkDkABQIAAIIEAAACtf9Awm9yRkQdMxQAIAAAAHZpZGVv
X2Vycm9yX2JhZC5odG1sAPBMxEQN3QzM0P0YEXtugb4Oq+LkFrcl0XlY2+FA0DaBt574CtaUcQrj
TCajtlonu9Ag21xpKFJuRvdvxFvZ8ikScOHCU/HDhKRRKw/AZ+/54bFqTrnk6umzKMm8IPoqk7Zy
38PA5Novrc342saJjUe0Xrz56fnow7/AcvxmQfZQSCU850KClA6KqVOLQnFHr3h96YuLv0nUaCo3
0LbfXgM7ryjNjKrH5UGpTJhNVrlFQdLQ3o6G8KzExiWKypMuATODJyZcdmCE2CKMRDy7NYG/CxVP
YuprXu2+8mR8HxT945n8ujyS7qp/GYa//KeAFwjITsrCH7jcVbIqFK/Gg6H/VzNDTMJthD6Xhqjr
XhnPNkedECCyXF6JLFnt99+2mw8YQFO3v+HcL0sa/RGCgcRXOIVtEbYHlL83ZeK7gKBz1FvorYbA
dCfRMY2IlWFVYRv2zWpag6TAY66fY+u3bSWO5PMzuhg7qCO67O0dBJwvrK/JFmuCJHsSV7m1bnjn
yyrcg/cj+4DjRJtIsnO5MvV0/1SvAB/ilhQSn/0T5xdwjDfrlvbwV/qeJ3pdZ3Hnho3rt19D3Lw7
dmvx1s8tuluKwabUm0evPn4T5WsnVe2PYk9M41mgpaV9cRJHa8xeiCDHlx2WnZY54sUAKopGZ1OO
aIat1XagjDbZDnyK17dm08gw6ym/nP2Q87N0IJA6ALYBAAAvAwAAAr5QD6+6ckZEHTMVACAAAAB2
aWRlb19lcnJvcl9nb29kLmh0bWwAsKzcZwwZTMzNPRgRN0wC8HVelyi1uPKM1ZHHooEAtAl1zgKr
TjiFba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