어이 얘들 아, 내 비디오 캡션에이 문제가 생겼다.JWPlayer를 사용하여 JSON으로 파일 변환
내 개체에 내 .vtt 값을 배치하고 있지만 브라우저에서 출력되는 방식이 마음에 들지 않는 것처럼 보입니다. 나는이 가이드 here
을 다음있어이 내 콘솔
{name: "", message: "Converting circular structure to JSON", error: TypeError: Converting circular structure to JSON at Object.stringify (native) at Object.<ano…}
자막 - en.vtt에
00:00:01.000 --> 00:00:15.000
What brings you to the land
of the gatekeepers?
00:00:15.500 --> 00:00:20.500
I'm searching for someone.
00:00:36.500 --> 00:00:39.000
A dangerous quest for a lone hunter.
00:00:41.500 --> 00:00:44.000
I've been alone for as long
as I can remember.
자바 스크립트
jwplayer("my-video").setup({
file: "<my-video-file>",
width: "100%",
aspectratio: "24:10",
primary: "flash",
tracks: [{
file: "/assets/captions/captions-en.vtt",
label: "English",
kind: "captions"
}]
});
팝업 오류입니다
"UTF-8"인코딩으로 저장했는지 확인했습니다.
다른 단계가 빠졌습니까? 구문 분석 메소드와 같은가요?
또한 동영상을 AWS S3 Bucket에서 스트리밍하고 있습니다. 그게 내가 vtt 파일을 거기에 업로드해야한다는 오류를 일으키는 이유가 될까요?
이 오류는 post에서와 동일하지만 문자열에 배치하여 오류가 발생했음을 보여줍니다. 그것이 vtt 파일에서 나온다면 어떻게 될까요?
가능한 [JSON.stringify의 복제본, TypeError : 순환 구조체를 JSON으로 변환하지 않기] (http://stackoverflow.com/questions/11616630/json-stringify-avoid-typeerror-converting-circular-structure-to-json)) –
VTT를 이미 이와 같이 확인 했습니까? https://quuz.org/webvtt/ – zer00ne