mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
update
This commit is contained in:
parent
4e53936bb7
commit
2008e0f524
@ -223,6 +223,19 @@ FluScrollablePage{
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle{
|
||||
height: 12
|
||||
width: 12
|
||||
radius: 6
|
||||
color: FluTheme.primaryColor.dark
|
||||
anchors{
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
rightMargin: 14
|
||||
topMargin: 14
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea{
|
||||
id:item_mouse
|
||||
anchors.fill: parent
|
||||
|
@ -85,8 +85,6 @@ TextField{
|
||||
return text.pixelSize * 1.0
|
||||
}
|
||||
}
|
||||
background: FluTextBoxBackground{
|
||||
inputItem: input
|
||||
|
||||
FluIconButton{
|
||||
iconSource:FluentIcons.ChromeClose
|
||||
@ -105,6 +103,10 @@ TextField{
|
||||
}
|
||||
}
|
||||
|
||||
background: FluTextBoxBackground{
|
||||
inputItem: input
|
||||
|
||||
|
||||
FluIcon{
|
||||
id:icon_right
|
||||
iconSource: input.iconSource
|
||||
|
@ -28,8 +28,9 @@ Rectangle {
|
||||
property bool autoSeek:true
|
||||
source: control.source
|
||||
videoOutput: video_output
|
||||
audioOutput: AudioOutput{}
|
||||
onErrorChanged:(error)=> {
|
||||
audioOutput:audio_output
|
||||
onErrorChanged:
|
||||
(error)=> {
|
||||
console.debug(error)
|
||||
}
|
||||
onPositionChanged: {
|
||||
@ -52,6 +53,10 @@ Rectangle {
|
||||
slider.seek(0)
|
||||
}
|
||||
|
||||
AudioOutput{
|
||||
id:audio_output
|
||||
}
|
||||
|
||||
VideoOutput {
|
||||
id:video_output
|
||||
anchors.fill: parent
|
||||
@ -92,7 +97,7 @@ Rectangle {
|
||||
mediaplayer.autoSeek = false
|
||||
mediaplayer.pause()
|
||||
}
|
||||
value:0
|
||||
value:mediaplayer.position
|
||||
onReleased: {
|
||||
mediaplayer.autoSeek = true
|
||||
mediaplayer.play()
|
||||
@ -100,12 +105,12 @@ Rectangle {
|
||||
|
||||
onValueChanged: {
|
||||
if(mediaplayer.autoSeek == false){
|
||||
mediaplayer.seek(value*mediaplayer.duration/slider.maxValue)
|
||||
mediaplayer.position = value*mediaplayer.duration/slider.maxValue
|
||||
}
|
||||
}
|
||||
|
||||
onLineClickFunc:function(val){
|
||||
mediaplayer.seek(val*mediaplayer.duration/slider.maxValue)
|
||||
mediaplayer.position = val*mediaplayer.duration/slider.maxValue
|
||||
}
|
||||
}
|
||||
|
||||
@ -142,7 +147,7 @@ Rectangle {
|
||||
iconSize: 17
|
||||
iconSource: FluentIcons.SkipBack10
|
||||
onClicked: {
|
||||
mediaplayer.seek(Math.max(mediaplayer.position-10*1000,0))
|
||||
mediaplayer.position = Math.max(mediaplayer.position-10*1000,0)
|
||||
}
|
||||
}
|
||||
FluIconButton{
|
||||
@ -160,7 +165,7 @@ Rectangle {
|
||||
iconSize: 17
|
||||
iconSource: FluentIcons.SkipForward30
|
||||
onClicked: {
|
||||
mediaplayer.seek(Math.min(mediaplayer.position+30*1000,mediaplayer.duration))
|
||||
mediaplayer.position = Math.min(mediaplayer.position+30*1000,mediaplayer.duration)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -169,7 +174,7 @@ Rectangle {
|
||||
FluIconButton{
|
||||
id:btn_volume
|
||||
iconSize: 17
|
||||
iconSource: mediaplayer.volume ? FluentIcons.Volume : FluentIcons.Mute
|
||||
iconSource: audio_output.volume ? FluentIcons.Volume : FluentIcons.Mute
|
||||
anchors{
|
||||
left: parent.left
|
||||
leftMargin: 5
|
||||
@ -177,7 +182,7 @@ Rectangle {
|
||||
bottomMargin: 10
|
||||
}
|
||||
onClicked: {
|
||||
mediaplayer.volume = !mediaplayer.volume
|
||||
audio_output.volume = !audio_output.volume
|
||||
}
|
||||
}
|
||||
|
||||
@ -192,7 +197,7 @@ Rectangle {
|
||||
leftMargin: 10
|
||||
}
|
||||
onValueChanged:{
|
||||
mediaplayer.volume = value/100
|
||||
audio_output.volume = value/100
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user