Skip to content

Commit

Permalink
WebFrontend: Disable the 720p video option for now, you need decent h…
Browse files Browse the repository at this point in the history
…ardware to transcode to 720p in realtime. Until we can figure out a way to disable it selectively on systems that can't handle it, it's better not to even offer it as a choice.
  • Loading branch information
stuartm committed Feb 27, 2014
1 parent 7ad57f0 commit ea4bfde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mythtv/html/tv/tvplayer.qsp
Expand Up @@ -32,16 +32,16 @@ import "/tv/js/tvutil.qjs"
var program = dvr.GetRecorded(chanID, startTime); var program = dvr.GetRecorded(chanID, startTime);


var videoProfile = "360p"; var videoProfile = "360p";
if (Server.CLIENT_NETWORK == "local") // if (Server.CLIENT_NETWORK == "local")
videoProfile = "720p"; // videoProfile = "720p";


var streamInfo = 0; var streamInfo = 0;
// Relative bitrates and resolutions taken from // Relative bitrates and resolutions taken from
// https://developer.apple.com/library/ios/technotes/tn2224/_index.html#//apple_ref/doc/uid/DTS40009745-CH1-SETTINGSFILES // https://developer.apple.com/library/ios/technotes/tn2224/_index.html#//apple_ref/doc/uid/DTS40009745-CH1-SETTINGSFILES
if (videoProfile == "720p") if (videoProfile == "720p")
streamInfo = content.AddRecordingLiveStream(chanID, startTime, 0, 1280, 720, 2500000, 64000, -1); // Local - 2.5Mbps 1280x720 streamInfo = content.AddRecordingLiveStream(chanID, startTime, 0, 1280, 720, 2500000, 64000, -1); // Local - 2.564 Mbps 1280x720
else else
streamInfo = content.AddRecordingLiveStream(chanID, startTime, 0, 640, 360, 600000, 40000, -1); // Remote - 600 Kbps 640x360 streamInfo = content.AddRecordingLiveStream(chanID, startTime, 0, 640, 360, 600000, 64000, -1); // Remote - 664 Kbps 640x360


var streamID = 0; var streamID = 0;
if (isValidObject(streamInfo)) if (isValidObject(streamInfo))
Expand Down Expand Up @@ -103,10 +103,10 @@ import "/tv/js/tvutil.qjs"
<button id="muteButton" class="playbackControl" onClick="jwplayer('player').setMute()">Mute</button>&nbsp; <button id="muteButton" class="playbackControl" onClick="jwplayer('player').setMute()">Mute</button>&nbsp;
<label for="hlsProfileList"> <label for="hlsProfileList">
<%=qsTr("Quality")%>: <%=qsTr("Quality")%>:
<select name="profile" id="hlsProfileList"> <!-- <select name="profile" id="hlsProfileList">
<option value="360p"><%=qsTr("360p (Mobile)")%></option> <option value="360p"><%=qsTr("360p (Mobile)")%></option>
<option value="720p" <%if (videoProfile == "720p") {%>selected<%}%>><%=qsTr("720p (WiFi)")%></option> <option value="720p" <%if (videoProfile == "720p") {%>selected<%}%>><%=qsTr("720p (WiFi)")%></option>
</select> </select>-->
</label> </label>
</div> </div>
</div> </div>
Expand Down

0 comments on commit ea4bfde

Please sign in to comment.