mat-video icon indicating copy to clipboard operation
mat-video copied to clipboard

Progressbar stucks

Open mikegondan opened this issue 4 years ago • 17 comments

PLEASE FILL THIS OUT IF YOU WANT HELP WITH AN ISSUE!

Bug, feature request, or proposal:

Bug

What is the current behavior?

When you click on progressbar (or grab it), it stucks on grabbing and can't click anymore.

What is the expected behavior?

What are the steps to reproduce?

Click or grab the progressbar then try to click or grab.

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 9

Is there anything else I should know?

mikegondan avatar Apr 11 '20 15:04 mikegondan

Also experiencing this.

peavers avatar Apr 14 '20 13:04 peavers

Stuck as in won't move or how? More details if possible, browsers, and a stackblitz will help.

nkoehler avatar Apr 20 '20 20:04 nkoehler

Stuck as in won't move or how? More details if possible, browsers, and a stackblitz will help.

I cant move to other part of movie. for example, in the middle of a movie. On hover of red dot of actual position on movie, icon has been changed to hand. But is not possible to move this "red dot" to any other side ( forward or backward)

My movie has size about 1GB and 8 minutes. Format .mp4. Same results is with format .mov. Codec H264.

<mat-video
    title="matVideoSource"
    [overlay]="true"
    [autoplay]="false"
    [preload]="false"
    [quality]="true"
    [fullscreen]="true"
    [download]="false"
    color="accent"
    spinner="spin"
    poster=""
    src="assets/life_ep_1.mp4"
  >

MartinMikac avatar Apr 28 '20 20:04 MartinMikac

Also experiencing this problem

GKaszewski avatar Apr 29 '20 22:04 GKaszewski

ERROR in (1,1): Directive ɵd, Property '_onSlide' does not exist on type 'MatSli derProgressBarComponent'. (1,1): Directive ɵd, Property '_onSlideEnd' does not exist on type 'MatSliderPro gressBarComponent'. (1,1): Directive ɵd, Property '_onSlideStart' does not exist on type 'MatSliderP rogressBarComponent'. node_modules/mat-video/mat-video.d.ts.ɵm.html(1,1): Directive ɵd, Property '_onS lide' does not exist on type 'MatSliderProgressBarComponent'. node_modules/mat-video/mat-video.d.ts.ɵm.html(1,1): Directive ɵd, Property '_onS lideEnd' does not exist on type 'MatSliderProgressBarComponent'. node_modules/mat-video/mat-video.d.ts.ɵm.html(1,1): Directive ɵd, Property '_onS lideStart' does not exist on type 'MatSliderProgressBarComponent'.

I'm getting this strange error. Someone know how to fix?

miguelleitevieira avatar May 01 '20 17:05 miguelleitevieira

Same problem, also source tag inside mat-source seems not to work.

Not even fetching the video

<mat-video title="Video" [autoplay]="true" [preload]="true" [fullscreen]="true"[download]="false" color="accent" spinner="spin">
    <source matVideoSource src="http://localhost:3000/api/video" type="video/mp4">
</mat-video>

Video properly loading ( progressbar still not working)

<mat-video src="http://localhost:3000/api/video" title="Video" [autoplay]="true" [preload]="true" [fullscreen]="true" [download]="false" color="accent" spinner="spin">
</mat-video>

gabrielvendrame avatar May 02 '20 10:05 gabrielvendrame

Same problem here: ERROR in (1,1): Directive ɵd, Property '_onSlide' does not exist on type 'MatSliderProgressBarComponent'. (1,1): Directive ɵd, Property '_onSlideEnd' does not exist on type 'MatSliderProgressBarComponent'. (1,1): Directive ɵd, Property '_onSlideStart' does not exist on type 'MatSliderProgressBarComponent'.

Due to this error I'm not able to build SSR.

mazard avatar May 19 '20 05:05 mazard

I'm also seeing problems with the Progress Bar: 1 it doesn't, there is a gripper hand but clicking on the bar does nothing, and you can't slide the position either. 2) it doesn't fill 100% of the video frame

chsculpt avatar May 31 '20 21:05 chsculpt

Also seeing Same problem as reported by gabrielvendrame, also source tag inside mat-source seems not to work.

chsculpt avatar May 31 '20 21:05 chsculpt

I have the same issue.

cryystyy avatar Jun 04 '20 17:06 cryystyy

same here too, angular 9

ricardotorre avatar Jun 10 '20 17:06 ricardotorre

https://stackblitz.com/edit/angular-o9vxrp

i have created this where the problem reproduces, first click/drag works but then doesn't appear to release (running on Chrome Version 83.0.4103.106 (Official Build) (64-bit))

ricardotorre avatar Jun 16 '20 16:06 ricardotorre

I have the same problem unfortunately (Angular 9). I guess I have to look for other player :(

aponski avatar Jun 17 '20 13:06 aponski

I fixed this by removing the constructor in internal/mat-slider-progress-bar/mat-slider-progress-bar.component.ts.

Now the progress / seek bar works fine in Angular 10.

I also removed the host in the component decorator since it was pointing to slider.ts methods that do not exist anymore but this step was not necessary.

atgnatus avatar Jun 25 '20 17:06 atgnatus

What did you removed from the constructor?

constructor(
    elementRef: ElementRef,
    focusMonitor: FocusMonitor,
    changeDetectorRef: ChangeDetectorRef,
    @Optional() dir: Directionality,
    @Attribute("tabindex") tabIndex: string
  ) {
    super(elementRef, focusMonitor, changeDetectorRef, dir, tabIndex);
    this.tabIndex = parseInt(tabIndex, 10) || 0;
  }

yukwar avatar Jul 03 '20 22:07 yukwar

The whole constructor is redundant and can be removed, the problem happens due to a new constructor signature in Angular 9 and 10

ricardotorre avatar Jul 03 '20 22:07 ricardotorre

I've tried removing it from esm2015/internal/mat-slider-progress-bar/mat-slider-progress-bar.component.ts. This isn't working for me. Result is the same Angular 9

saeed-abdul-rahim avatar Jul 10 '20 04:07 saeed-abdul-rahim