Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi-cpp committed Apr 9, 2023
1 parent 2ab8f79 commit 7f3822e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ It works on Linux.
[Here is a video show how qmlscrcpy work](https://qmlscrcpy.s3.ir-thr-at1.arvanstorage.ir/QmlScrcpy-V0.0.1-alpha.mp4)


<div >
<a href="https://github.com/othneildrew/Best-README-Template">
<img src="./res/images/screenshot.png" width="843" height="375" alt="">
</a>
</div>

<div >
<a href="https://github.com/othneildrew/Best-README-Template">
<img src="./res/images/screenshot2.png" width="843" height="375" alt="">
</a>
</div>

### scrcpy vs QmlScrcpy

| Item | Scrcpy | QmlScrcpy |
Expand All @@ -29,7 +41,7 @@ It works on Linux.
### Qml Benefits
* You can embed [scrcpy](https://github.com/Genymobile/scrcpy) inside your qml project
* Screen buffers are render by native OpenGl inside Qml, No requirement to external library similar GStreamer or LibVlc
* You can use Animation, Scale, Rotation , ReSize and ... similar other qml componnets.
* You can use Animation, Scale, Rotation , Resize and ... similar other qml componnets.


## Requirements
Expand Down
Binary file added res/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/images/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions res/qml/components/Music.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import QtQuick 2.10
import QtMultimedia 5.9

Item {
id: root
Expand All @@ -19,6 +20,10 @@ Item {
grid.flow = GridLayout.LeftToRight
}

Audio {
id: audio
}

Image {
source: "../../images/peaceful_blur.jpg"
width: parent.width
Expand Down Expand Up @@ -113,6 +118,12 @@ Item {
height: 50
x: 130
y: 40
MouseArea {
anchors.fill: parent
onClicked: {
audio.pause()
}
}
}
Image {
source: "../../icons/skip-next.svg"
Expand Down
6 changes: 2 additions & 4 deletions res/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import QtQuick 2.10
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.0


import App 1.0

import "./components"
Expand All @@ -23,7 +24,6 @@ Rectangle {
//resource.scene = resource.WINDOW_HOME;
}


ToolBarApps {
id: toolbarApps
onSelect: {
Expand All @@ -41,10 +41,8 @@ Rectangle {
animation_hide.restart()
break
case "compass":
ali = 1
break
case "photo":
ali = 2
case "photo.png":
break
}
}
Expand Down
1 change: 0 additions & 1 deletion ui/mirror/MirrorRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "service/ServiceManager.h"
#include "config.h"


MirrorRenderer::MirrorRenderer(QObject *parent) {
Q_UNUSED(parent);
m_resourceService = ServiceManager::getInstance().resourceService();
Expand Down

0 comments on commit 7f3822e

Please sign in to comment.