Skip to content

Commit

Permalink
fix(types): LivePlayerProps (#5559)
Browse files Browse the repository at this point in the history
* fix(types): add refresher to ScrollViewProps

weapp scroll-view 2.10.1 new property.

* Update packages/taro-components/types/ScrollView.d.ts

Co-Authored-By: Garfield Lee <Garfield550@users.noreply.github.com>

* Update packages/taro-components/types/ScrollView.d.ts

Co-Authored-By: Garfield Lee <Garfield550@users.noreply.github.com>

* Update packages/taro-components/types/ScrollView.d.ts

Co-Authored-By: Garfield Lee <Garfield550@users.noreply.github.com>

* Update packages/taro-components/types/ScrollView.d.ts

Co-Authored-By: Garfield Lee <Garfield550@users.noreply.github.com>

* fix(types): add refresher to ScrollViewProps

weapp scroll-view 2.10.1 new property.

* fix(types): LivePlayerProps

Non-required props.

Co-authored-by: Garfield Lee <Garfield550@users.noreply.github.com>
  • Loading branch information
onlyling and Garfield550 authored Mar 6, 2020
1 parent 14d6bb6 commit 58a9a2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions packages/taro-components/types/LivePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,48 @@ interface LivePlayerProps extends StandardProps {

/** 音视频地址。目前仅支持 flv, rtmp 格式
*/
src: string
src?: string

/** live(直播),RTC(实时通话)
* 默认值:`live`
*/
mode: 'live' | 'RTC'
mode?: 'live' | 'RTC'

/** 自动播放
* 默认值:`false`
*/
autoplay: boolean
autoplay?: boolean

/** 是否静音
* 默认值:`false`
*/
muted: boolean
muted?: boolean

/** 画面方向,可选值有 vertical,horizontal
* 默认值:`vertical`
*/
orientation: 'vertical' | 'horizontal'
orientation?: 'vertical' | 'horizontal'

/** 填充模式,可选值有 contain,fillCrop
* 默认值:`contain`
*/
objectFit: 'contain' | 'fillCrop'
objectFit?: 'contain' | 'fillCrop'

/** @deprecated
* 进入后台时是否静音(已废弃,默认退台静音)
* 默认值:`false`
*/
backgroundMute: boolean
backgroundMute?: boolean

/** 进最小缓冲区,单位s
* 默认值:`1`
*/
minCache: number
minCache?: number

/** 进最小缓冲区,单位s
* 默认值:`3`
*/
maxCache: number
maxCache?: number

/** 播放状态变化事件,detail = {code}
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/ScrollView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ interface ScrollViewProps extends StandardProps {
*/
declare const ScrollView: ComponentType<ScrollViewProps>

export { ScrollView, ScrollViewProps }
export { ScrollView, ScrollViewProps }

0 comments on commit 58a9a2d

Please sign in to comment.