Skip to content

Commit

Permalink
๐Ÿ”€ chore: Merge branch 'dev/v1.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
khk4912 committed Jul 14, 2024
2 parents ebd92cb + 5fa16bd commit 773369f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Chzzk-PIP",
"version": "1.1.1",
"version": "1.1.3",
"description": "์น˜์ง€์ง PIP, ๋…นํ™”, ์Šคํฌ๋ฆฐ์ƒท ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ",
"manifest_version": 3,
"action": {
Expand All @@ -13,7 +13,6 @@
},
"content_scripts": [
{

"matches": ["https://chzzk.naver.com/*"],
"js": ["js/content_script.js"],
"all_frames": true
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/record_result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function registerDownloadHandler (
originalVideoDuration: number
): void {
const downloadButtons: NodeListOf<HTMLButtonElement> = document.querySelectorAll('.download')
const isMP4 = MediaRecorder.isTypeSupported('video/mp4;codecs=avc1,mp4a.40.2')
const isMP4 = MediaRecorder.isTypeSupported('video/mp4;codecs=vp9,mp4a.40.2')

downloadButtons.forEach((btn) => {
const dataType = btn.getAttribute('data-type') ?? ''
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/utils/record/record_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export async function startRecord (video: Video, streamInfo: StreamInfo): Promis
stream = video.captureStream()
}

const isSupportMP4 = MediaRecorder.isTypeSupported('video/mp4;codecs=avc1,mp4a.40.2')
const isSupportMP4 = MediaRecorder.isTypeSupported('video/mp4;codecs=vp9,mp4a.40.2')

const recorder = new MediaRecorder(
stream,
{
mimeType: isMoz
? 'video/webm;codecs=vp8,opus'
: isSupportMP4 ? 'video/mp4;codecs=avc1,mp4a.40.2' : 'video/webm;codecs=avc1',
: isSupportMP4 ? 'video/mp4;codecs=vp9,mp4a.40.2' : 'video/webm;codecs=avc1',
videoBitsPerSecond: 8000000
}
)
Expand Down

0 comments on commit 773369f

Please sign in to comment.