我无法显示我的表索引。这是一个示例表:
<mat-table [dataSource]="dataSource" multiTemplateDataRows>
<!--Column definitions-->
<ng-container matColumnDef="{{columnProp.name}}" *ngFor="let columnProp of columnProps; let i = index;">
<mat-header-cell *matHeaderCellDef
mat-sort-header>
{{columnProp.name}} {{i}}
</mat-header-cell>
<mat-cell *matCellDef="let element; let j = index;">
<div>{{element[columnProp.name}} {{j}}</div>
</mat-cell>
</ng-container>
<!--Row definitions-->
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<!-- Row content-->
<mat-row *matRowDef="let row; columns: displayedColumns; let k = index;"
matRipple
(click)="this.expandRow(row, k)">
</mat-row>
<!--Expanded row content-->
<mat-row *matRowDef="let row; columns: ['expandedContent'];"
[@detailExpand]="row == expandedElement ? 'expanded' : 'collapsed'">
</mat-row>
</mat-table>
Run Code Online (Sandbox Code Playgroud)
列索引i
并按j
预期显示,但是当我单击行时,索引k
显示为未定义。我在这里做错了什么?
我已经使用ickbeard_mp4_converter有一段时间了,通过为ffmpeg生成脚本将视频文件转换为mp4。我不确定我更改了什么,但是它生成的 ffmpeg 脚本不再起作用,并且我在调试它时遇到了麻烦。谁能从我的日志中看出问题是什么?是的,它应该是 mp4 到 mp4,这通常没问题。
我现在正在使用一个 mp4,它昨天与相同的自动生成脚本一起工作,但现在不再这样了。我记得更新了 ffmpeg 但降级并没有解决问题,尽管我可能降级得不够。
FFmpeg 4.1.4
媒体信息输出:
$ mediainfo --fullscan Downloads/Dallas\ Buyers\ Club\ \(2013\).mp4.original
General
Count : 334
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Audio_Format_List : AAC LC
Audio_Format_WithHint_List : AAC LC
Audio codecs …
Run Code Online (Sandbox Code Playgroud)