fix(folder): copy raw video stream URL instead of player page
영상 주소 복사 결과를 /player/:id 가 아닌 실제 스트리밍 엔드포인트 /api/video/:id/file 로 변경. 공개/관리자 양쪽 모두 적용. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
function copyVideoUrl(id) {
|
function copyVideoUrl(id) {
|
||||||
var url = location.origin + '/player/' + encodeURIComponent(id)
|
var url = location.origin + '/api/video/' + encodeURIComponent(id) + '/file'
|
||||||
if (navigator.clipboard && navigator.clipboard.writeText) {
|
if (navigator.clipboard && navigator.clipboard.writeText) {
|
||||||
navigator.clipboard.writeText(url).then(function () {
|
navigator.clipboard.writeText(url).then(function () {
|
||||||
flashToast('주소가 복사되었습니다.')
|
flashToast('주소가 복사되었습니다.')
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
function copyVideoUrl(id) {
|
function copyVideoUrl(id) {
|
||||||
var url = location.origin + '/player/' + encodeURIComponent(id)
|
var url = location.origin + '/api/video/' + encodeURIComponent(id) + '/file'
|
||||||
if (navigator.clipboard && navigator.clipboard.writeText) {
|
if (navigator.clipboard && navigator.clipboard.writeText) {
|
||||||
navigator.clipboard.writeText(url).then(function () {
|
navigator.clipboard.writeText(url).then(function () {
|
||||||
flashToast('주소가 복사되었습니다.')
|
flashToast('주소가 복사되었습니다.')
|
||||||
|
|||||||
Reference in New Issue
Block a user