-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from AstaTus/dep-har-1.5.0-preview3-2
[QPlayer Harmony] 1.5.0-preview4 版本发布
- Loading branch information
Showing
26 changed files
with
1,001 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
entry/src/main/ets/pages/common/Helper/QDecimalToHexHelper.ets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
|
||
export class QDecimalToHexHelper{ | ||
static decimalToHex(num : number) : string{ | ||
if (num < 10) { | ||
return num.toString() | ||
}else if (num == 10){ | ||
return "a" | ||
}else if (num == 11){ | ||
return "b" | ||
}else if (num == 12){ | ||
return "c" | ||
}else if (num == 13){ | ||
return "d" | ||
}else if (num == 14){ | ||
return "e" | ||
}else{ | ||
return "f" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 25 additions & 1 deletion
26
entry/src/main/ets/pages/model/longVideo/QPlayerSettingModel.ets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,35 @@ | ||
import { QPlayerSeek } from '@qiniu/qplayer2-core/qplayer2-core' | ||
|
||
import { QBlindType, QPlayerDecoderPriority, QPlayerSeek, | ||
QPlayerStart, | ||
QRenderRatio } from '@qiniu/qplayer2-core/qplayer2-core' | ||
import { QSettingPersistentStorageHelper } from '../../common/helper/QSettingPersistentStorageHelper' | ||
import { Context } from '@ohos.abilityAccessCtrl' | ||
|
||
export enum PlaySpeed{ | ||
SPEED_0_5, | ||
SPEED_0_75, | ||
SPEED_1_0, | ||
SPEED_1_25, | ||
SPEED_1_5, | ||
SPEED_2_0 | ||
} | ||
export enum Immediately{ | ||
IMMEDIATELY_TRUE = 0, | ||
IMMEDIATELY_FALSE = 1, | ||
IMMEDIATELY_MIX = 2 | ||
} | ||
@Observed | ||
export class QPlayerSettingModel{ | ||
public mSeekMode :QPlayerSeek = QPlayerSeek.NORMAL | ||
public mBackgroundPlay : number = 1 | ||
public mDecoderType : QPlayerDecoderPriority = QPlayerDecoderPriority.AUTO | ||
public mPlaySpeed : PlaySpeed = PlaySpeed.SPEED_1_0 | ||
public mRenderRatio : QRenderRatio = QRenderRatio.AUTO | ||
public mBlinderType : QBlindType = QBlindType.NONE | ||
public mPosition : number = 0 | ||
public mSEIEnable : number = 0 | ||
public mStartAction : QPlayerStart = QPlayerStart.PLAYING | ||
public mImmediately : Immediately = Immediately.IMMEDIATELY_TRUE | ||
constructor() { | ||
} | ||
} |
Oops, something went wrong.