React setup #3

Merged
KevinMidboe merged 4 commits from react_setup into master 2017-06-02 10:08:07 +00:00
Showing only changes of commit 76b8c46197 - Show all commits

View File

@@ -6,7 +6,9 @@ function convertStreamToMediaInfo(plexStream) {
mediaInfo.duration = plexStream.duration;
mediaInfo.height = plexStream.height;
mediaInfo.width = plexStream.width;
mediaInfo.bitrate = plexStream.bitrate;
if (plexStream.bitrate) {
mediaInfo.bitrate = plexStream.bitrate;
}
mediaInfo.resolution = plexStream.videoResolution;
mediaInfo.framerate = plexStream.videoFrameRate;
mediaInfo.protocol = plexStream.protocol;