mirror of
https://github.com/videojs/video.js.git
synced 2025-01-27 11:22:06 +02:00
@IJsLauw fixed unhandled exception in deleting poster on ios7. closes #3337
This commit is contained in:
parent
8d5a1b1193
commit
4e0325013e
@ -4,6 +4,7 @@ CHANGELOG
|
|||||||
## HEAD (Unreleased)
|
## HEAD (Unreleased)
|
||||||
* @gkatsev pinned dependencies to direct versions ([view](https://github.com/videojs/video.js/pull/3338))
|
* @gkatsev pinned dependencies to direct versions ([view](https://github.com/videojs/video.js/pull/3338))
|
||||||
* @gkatsev fixed minified vjs in ie8 when initialized with id string ([view](https://github.com/videojs/video.js/pull/3357))
|
* @gkatsev fixed minified vjs in ie8 when initialized with id string ([view](https://github.com/videojs/video.js/pull/3357))
|
||||||
|
* @IJsLauw fixed unhandled exception in deleting poster on ios7 ([view](https://github.com/videojs/video.js/pull/3337))
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -773,7 +773,12 @@ class Player extends Component {
|
|||||||
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
||||||
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
||||||
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
||||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
try {
|
||||||
|
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
log('deleting tag.poster throws in some browsers', e);
|
||||||
|
}
|
||||||
this.play();
|
this.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user