Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Caption not loading


Hi I am working with JWPLAYER 6.12 version.
i am able to load the CC toggle button but when i click on that not able to load the WEBVTT file.

so please aqnyone have idea kindly suggest me.

Here is my code:
<script src="https://jwpsrv.com/library/zeZfDguSEeSJMCIACtqXBA.js"></script>
var objPlayer = {
playlist: [{
image: strImagePath,
sources: [{
file: AppConfig.VIDEO_HTTP_STREAMING_SERVER_PATH + "/mp4:" + curl + "/playlist.m3u8"
},{
file: AppConfig.AUDIO_VIDEO_RTMP_STREAMING_SERVER_PATH + "/" + curl
}],

"rtmp.bufferlength": AppConfig.MEDIA_BUFFER_TIME,
rtmp: {
subscribe: true
},
skin: "five",
// primary: "flash",
width: 391,
height: 293,
tracks: [{
file: AppConfig.BASE_HREF + "playertest/cl_player/MUNA.vtt",
label: "English",
kind: "captions",
"default": true

}]
}]
};
jwplayer("videoPlayer")
.setup(objPlayer);
}

THis is the some code which i used earlier
AUDIO_VIDEO_RTMP_STREAMING_SERVER_PATH = "rtmp://wowza.cengage.com:443/nelson-videos";
VIDEO_HTTP_STREAMING_SERVER_PATH = "http://wowza.cengage.com:443/nelson-videos/vod";

I think may be i give wrong path or i have to retrieve this caption from wowza server because video files are coming through RTMP.

4 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

Can you please supply a link to a reproduction page so we can take a look at your issue? We would need to be able to see the player in action.

Thank you.

Sudhir Ranjan Rout

User  
0 rated :

<!doctype html>
<html>
<head>
<script src="http://your_cloud-hosted_player_URL_or_self-hosted_jwplayer.js"></script>
<!-- if necessary: <script>jwplayer.key="your_self-hosted_license_key";</script> -->
</head>
<body>
<b>Issue:</b> Able to load CC toggle but Caption files not loading
<br><br>
<b>Reproduction steps:</b>(1): first click on any link

<br><br>
<b>Expected behavior:</b> Please state your expected behavior here
<br><br>
<b>Actual outcome:</b> Please state the actual outcome here
<br><br><br>
<div id=player>Loading your player...</div>
<script>
jwplayer('player').setup({
file: 'your_video_URL',
});

//include any of your Javascript API calls here
</script>
</body>
</html>

sudhir ranjan rout

User  
0 rated :

<!doctype html>
<html>
<head>
<script src="http://your_cloud-hosted_player_URL_or_self-hosted_jwplayer.js"></script>
<!-- if necessary: <script>jwplayer.key="your_self-hosted_license_key";</script> -->
</head>
<body>
<b>Issue:</b> Able to load CC toggle but Caption files not loading
<br><br>
<b>Reproduction steps:</b>(1): first click on any link
(2): click on a video link and video player will appear
(3): i am able to load the CC button but not able to load the caption
<br><br>
<b>Expected behavior:</b> Caption will be loaded
<br><br>
<b>Actual outcome:</b>when i click on cc button nothing hapend
<br><br><br>
<div id=videoplayer>Loading your player...</div>
<script>
jwplayer('player').setup({
file: 'sources: [{
file: AppConfig.VIDEO_HTTP_STREAMING_SERVER_PATH + "/mp4:" + curl + "/playlist.m3u8"
},{
file: AppConfig.AUDIO_VIDEO_RTMP_STREAMING_SERVER_PATH + "/" + curl
}],
tracks: [{
file: AppConfig.BASE_HREF + "playertest/cl_player/MUNA.vtt",
label: "English",
kind: "captions",
"default": true
}]
}]
});
jwplayer("videoPlayer")
.setup(objPlayer);
} ,
This is coming from wowza server
//AUDIO_VIDEO_RTMP_STREAMING_SERVER_PATH = "rtmp://wowza.cengage.com:443/nelson-videos";
VIDEO_HTTP_STREAMING_SERVER_PATH = "http://wowza.cengage.com:443/nelson-videos/vod";

CURL refers to the video file directory which is apend with the m3u8 file and WOWZA server


//include any of your Javascript API calls here
</script>
</body>
</html>

But my caption file is in my local directory so i think am not able to load this.

Alex

JW Player Support Agent  
0 rated :

Hi there,

Is it in any way possible for you to provide us with a URL to a live web page with your player on it?

This question has received the maximum number of answers.