Commit 527d3484 authored by Soomin Lee's avatar Soomin Lee

MediaLibraryService: Generate new thumbnail at last playback position

Closes #390
parent 7fd4e2b9
......@@ -401,7 +401,11 @@ extension MediaLibraryService {
mlMedia.subtitleTrackIndex = Int64(player.indexOfCurrentSubtitleTrack)
mlMedia.chapterIndex = Int64(player.indexOfCurrentChapter)
mlMedia.titleIndex = Int64(player.indexOfCurrentTitle)
//create a new thumbnail
if mlMedia.type() == .video {
mlMedia.requestThumbnail(of: .thumbnail, desiredWidth: 320,
desiredHeight: 200, atPosition: player.playbackPosition)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment