Reworked the way text tracks are presented to better support webvtt.
This commit is contained in:
1 parent
c00241be82
commit
99edb689d0
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -202,7 +202,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
||||
if (trackId == chapterId) {
|
||||
track = [MP42ChapterTrack alloc];
|
||||
} else {
|
||||
track = [MP42Track alloc];
|
||||
track = [MP42SubtitleTrack alloc];
|
||||
}
|
||||
} else if (!strcmp(type, MP4_SUBTITLE_TRACK_TYPE)) {
|
||||
track = [MP42SubtitleTrack alloc];
|
||||
|
||||
@@ -40,7 +40,7 @@ BOOL isTrackMuxable(NSString *formatName)
|
||||
{
|
||||
NSArray *supportedFormats = @[MP42VideoFormatH264, MP42VideoFormatMPEG4Visual, MP42AudioFormatAAC, MP42AudioFormatHEAAC, MP42AudioFormatALAC,
|
||||
MP42AudioFormatAC3, MP42AudioFormatEAC3, MP42AudioFormatDTS, MP42SubtitleFormatTx3g, MP42SubtitleFormatText,
|
||||
MP42ClosedCaptionFormatCEA608, MP42VideoFormatJPEG, MP42SubtitleFormatVobSub];
|
||||
MP42ClosedCaptionFormatCEA608, MP42VideoFormatJPEG, MP42SubtitleFormatVobSub, MP42SubtitleFormatWebVTT];
|
||||
|
||||
return [supportedFormats containsObject:formatName];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user