Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
canwdev committed Feb 19, 2024
1 parent 37fff0d commit b60f190
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/assets/index-b30cd3ce.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/assets/index-c755aaa2.js

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="./favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web MediaDevices Player</title>
<script type="module" crossorigin src="./assets/index-c755aaa2.js"></script>
<script type="module" crossorigin src="./assets/index-b30cd3ce.js"></script>
<link rel="stylesheet" href="./assets/index-1194dece.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion docs/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-mediadevices-player",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tauri-build = { version = "1.5.1", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.6.0", features = [] }
tauri = { version = "1.6.0", features = ["window-set-fullscreen"] }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }

[features]
Expand Down
11 changes: 7 additions & 4 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"distDir": "../docs"
},
"package": {
"productName": "Web Mediadevices Player",
"version": "1.1.0"
"productName": "web-mediadevices-player",
"version": "1.1.1"
},
"tauri": {
"allowlist": {
"all": false
"all": false,
"window": {
"setFullscreen": true
}
},
"bundle": {
"active": true,
Expand Down Expand Up @@ -58,7 +61,7 @@
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "web-mediadevices-player",
"title": "Web Mediadevices Player",
"width": 800
}
]
Expand Down
4 changes: 3 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async function getEnumerateDevices() {
export default defineComponent({
setup() {
const isLoading = ref(false)
const isTauri = ref(!!window.__TAURI__)
const isShowControls = useLocalStorageBoolean('ls_key_is_show_controls', false)
const deviceList = ref([])
const videoRef = ref()
Expand Down Expand Up @@ -297,6 +298,7 @@ export default defineComponent({
handleScreenshot,
actionBarRef,
rootRef,
isTauri,
}
},
})
Expand Down Expand Up @@ -333,7 +335,7 @@ export default defineComponent({
<button @click="handleStart">▶Start</button>
<button @click="stopBothVideoAndAudio">⏹Stop</button>
<button @click="clearSelect">🛑Reset</button>
<button @click="toggleFullScreen">📺Fullscreen</button>
<button v-if="!isTauri" @click="toggleFullScreen">📺Fullscreen</button>
<label for="toggleControls">
<input
Expand Down

0 comments on commit b60f190

Please sign in to comment.