This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Commit f959157
[video_player] Fixes video initialization future stall. (#2134)
Fixes issue where `initialize()` `Future` stalls when failing to load source data and does not throw error.
For example if the network is offline and you try to load a video. The video will attempt to load the source on Android through ExoPlayer. This error of failing to load is reported through the event stream to the client. However, this does not complete the initialization `Completer` leaving the `Future stalled waiting for the completer to complete which it never will.1 parent 58f2698 commit f959157
File tree
4 files changed
+53
-14
lines changed- packages/video_player/video_player
- lib
- test
4 files changed
+53
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Lines changed: 44 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
| |||
437 | 452 | | |
438 | 453 | | |
439 | 454 | | |
| 455 | + | |
440 | 456 | | |
441 | 457 | | |
442 | 458 | | |
| |||
447 | 463 | | |
448 | 464 | | |
449 | 465 | | |
450 | | - | |
451 | | - | |
| 466 | + | |
| 467 | + | |
452 | 468 | | |
453 | 469 | | |
454 | 470 | | |
| |||
481 | 497 | | |
482 | 498 | | |
483 | 499 | | |
484 | | - | |
| 500 | + | |
| 501 | + | |
485 | 502 | | |
486 | 503 | | |
487 | 504 | | |
| |||
490 | 507 | | |
491 | 508 | | |
492 | 509 | | |
| 510 | + | |
493 | 511 | | |
494 | 512 | | |
495 | 513 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
503 | 524 | | |
504 | 525 | | |
505 | 526 | | |
| |||
522 | 543 | | |
523 | 544 | | |
524 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
525 | 558 | | |
526 | 559 | | |
527 | 560 | | |
528 | 561 | | |
529 | 562 | | |
530 | | - | |
531 | | - | |
532 | | - | |
| 563 | + | |
533 | 564 | | |
534 | 565 | | |
0 commit comments