Note that there are some explanatory texts on larger screens.

plurals
  1. POmailto: anchor links unloading html5 video in Chrome
    primarykey
    data
    text
    <p>I have a very simple page with a <code>&lt;video&gt;</code> tag and an email anchor link:<br> <a href="http://jsfiddle.net/6GquX/3/" rel="nofollow">http://jsfiddle.net/6GquX/3/</a></p> <p>Clicking the email link in Chrome (OS X 10.8 + Win7, 23.0.1271.97) invokes the <code>beforeunloadchange</code> event and causes the video to unload, which isn't the desired outcome.</p> <p>Curiously enough, if I let the video buffer a bit and then click the email link, the video keeps playing and doesn't unload.</p> <p>To my knowledge this only occurs in Chrome and I'm truly at a loss. Visiting any HTML5 video player site (videojs, flowplayer etc), starting a HTML5 video and then immediately simulating an email click with <code>document.location.href = "mailto:foo@bar.com"</code> in the dev console yields the same error. </p> <p>However, I'm inclined to think it's the way in which the video has been encoded as I'm unable to recreate the above with a video downloaded from YouTube's HTML5 player:<br> <a href="http://jsfiddle.net/6GquX/4/" rel="nofollow">http://jsfiddle.net/6GquX/4/</a> (<a href="http://www.youtube.com/embed/WkfgL5P3fw4?html5=1&amp;autoplay=1&amp;vq=medium" rel="nofollow">source</a>)</p> <p><strong>1. Is it possible that YouTube are encoding their videos in a particular way to combat this?</strong><br> <strong>2. Are there any strategies / hacks I can employ to get around this?</strong></p> <p><strong>Update:</strong></p> <p>The issue seems to be linked to the bitrate of the video. Re-encoding that flowplayer example above to 300kbps resolves the issue. (A 400kbps video still exhibits the same issue, not sure what the exact threshold is)</p> <p>300kbps example here: <a href="http://jsfiddle.net/6GquX/7/" rel="nofollow">http://jsfiddle.net/6GquX/7/</a></p> <p>Hopefully this will be resolved in a future version of Chrome.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload