How to display subtitle?
tuanbs opened this issue · comments
Hi, could you tell me how to display my own subtitle on youtube video. I tried this:
In html file I added: "...vg-tracks="config.tracks"...", and in js file I added:
tracks: [
{
src: $scope.story.subtitleUrl,
kind: "subtitles",
srclang: "en",
label: "English",
default: "default"
}
]
But the subtitle is not shown. Thanks.
Can you provide me a codepen
Hi, I cannot create Codepen account using Facebook.
Basically, I just added the tracks property to load the subtitle and using vg-tracks to show. If you still cannot figure it out, could you please give me a codepen example of using videogular-youtube displaying subtitle? Thanks.
Ok. I'll create an issue with @2fdevs . Thanks for your reply.
FYI, this is the codepen: http://codepen.io/tuanbs/pen/oxmwBv