closed-captions

How to get system's closed caption font size?

不羁岁月 提交于 2020-06-17 15:47:29
问题 I want to get system's closed caption font style, and I referd doc. So far everything is good, except the font size. According to doc, ClosedCaptionProperties.FontSize returns enum ClosedCaptionSize , see code switch (Windows.Media.ClosedCaptioning.ClosedCaptionProperties.FontSize) { case Windows.Media.ClosedCaptioning.ClosedCaptionSize.FiftyPercent: richtextblock.FontSize = 50; break; case Windows.Media.ClosedCaptioning.ClosedCaptionSize.OneHundredPercent: richtextblock.FontSize = 100; break

HTML5 track captions not showing

可紊 提交于 2020-01-14 08:14:23
问题 I am trying to make the simplest html5 video player in the world: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ST Media Player</title> </head> <body> <video id="player" src="http://video-js.zencoder.com/oceans-clip.mp4" controls> <track kind="captions" src="_tracks/test.vtt" default> </video> </body> </html> Done! Now why does the player recognize that there is captions, but doesnt show them? I have tried different video's and subtitle files now. 回答1: Track tag is working when

HTML5 track captions not showing

て烟熏妆下的殇ゞ 提交于 2020-01-14 08:13:01
问题 I am trying to make the simplest html5 video player in the world: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ST Media Player</title> </head> <body> <video id="player" src="http://video-js.zencoder.com/oceans-clip.mp4" controls> <track kind="captions" src="_tracks/test.vtt" default> </video> </body> </html> Done! Now why does the player recognize that there is captions, but doesnt show them? I have tried different video's and subtitle files now. 回答1: Track tag is working when

How use app closedcaption settings instead of system closed caption settings in ios

∥☆過路亽.° 提交于 2019-12-25 03:22:28
问题 In my application i have closed caption settings and i am using AVPLayer to play video/live content without showing default controls. In my app i can able or disable closed captions like switch based on that switch status i am storing BOOL value in userdefaults. Based on userdefaults i am trying to enable or disable cc for avplayer using below api. [self.player setClosedCaptionDisplayEnabled:enable]; Now problem is Even if i off cc in app but iphone system settings cc enabled that time i am

Does AVPlayer support closed captions delivered in a separate text file?

廉价感情. 提交于 2019-12-22 06:32:32
问题 My team produces iOS apps that play video using AVPlayer. We've recently been told that we MUST allow display of closed captions for all videos... but that the closed captions would not be coming as a track within the video files (we already support closed captions that come in this way). Instead, we'll be getting them as a separate text file. I've seen a couple references to including the caption text file in the SMIL, but I've found nothing about how to incorporate this text file into the

Does AVPlayer support closed captions delivered in a separate text file?

て烟熏妆下的殇ゞ 提交于 2019-12-22 06:32:04
问题 My team produces iOS apps that play video using AVPlayer. We've recently been told that we MUST allow display of closed captions for all videos... but that the closed captions would not be coming as a track within the video files (we already support closed captions that come in this way). Instead, we'll be getting them as a separate text file. I've seen a couple references to including the caption text file in the SMIL, but I've found nothing about how to incorporate this text file into the

Turning off closed caption on HTML5 video by default

左心房为你撑大大i 提交于 2019-12-13 16:26:53
问题 Here's what I have... <video id="video" controls="controls" preload="metadata" poster="/video/promotional/transparent.png"> <source src="/video/promotional/promotional.mp4" type="video/mp4" /> <source src="/video/promotional/promotional.webm" type="video/webm" /> <source src="/video/promotional/promotional.ogv" type="video/ogg" /> <track src="/video/promotional/promotional.vtt" label="English Captions" kind="subtitles" srclang="en-us" /> </video> <script type="text/javascript"> $(document)

Firing events at specific times into a video played by MPMoviePlayerController (for Custom Captions on Movie)

冷暖自知 提交于 2019-12-11 09:14:43
问题 I'm considering implementing an SRT File parser for overlaying videos over an MPMoviePlayerController class. Can anyone think of a reliable way to fire off events at very specific times while a movie's playing? 回答1: Hmm, not as familiar with iOS as I am with AppKit, but doesn't look like there's a direct equivalent of AppKit's NSTimer class. I suppose you could always use CoreFoundation's CFTimer (found in CFRunLoop.h), or NSObject's: - (void)performSelector:(SEL)aSelector withObject:(id

How To Disable Youtube Captions in a Youtube Embed Link

余生颓废 提交于 2019-12-11 04:28:24
问题 When creating an embed link on youtube the Captions are on by default. Is there a way to disable to the captions or turning them off when embedding a youtube link? The documentation indicates: Make captions automatically appear for an embedded video by adding "&cc_load_policy=1" to the video's embed code. And I need to it the other way around. I tried to use &cc_load_policiy=0 but that didn't work. I also found this question but none of the answers seem to work. I am using also VideoJS. So