Skip to content

Commit

Permalink
Fix displaying string uri
Browse files Browse the repository at this point in the history
  • Loading branch information
aszczurek-miquido committed Dec 8, 2023
1 parent df60772 commit 320985f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ios/Video/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ - (NSDictionary *)getAudioTrackInfo: (M3U8PlaylistModel *) model
@"title": currentAudio.name,
@"language": currentAudio.language,
@"codecs": [currentAudio groupId],
@"file": audioInfo.URI,
@"file": [audioInfo.URI absoluteString],
};
}

Expand All @@ -1466,9 +1466,10 @@ - (NSDictionary *)getVideoTrackInfo: (M3U8PlaylistModel *) model
{
NSMutableDictionary *audioTrackDict = [[NSMutableArray alloc] init];
if (model.mainMediaPl.segmentList.count > 0) {
NSString* uri = [model.mainMediaPl.segmentList segmentInfoAtIndex: 0].URI;
NSURL* uri = [model.mainMediaPl.segmentList segmentInfoAtIndex: 0].URI;
NSString *stringURL = uri.absoluteString;
audioTrackDict = @{
@"file": uri
@"file": stringURL
};
}

Expand Down

0 comments on commit 320985f

Please sign in to comment.