WebFrontend: Fix context menu bug affecting Firefox and Chromium (but not Opera)
WebFrontend: Fix subtitle scaling issue in Chromium.
Fix lossless transcode.

Following 6c3653cd378aacef10b7706d8b7f71beae41274c, lossless mythtranscode got broken.

This is just a quick workaround, the whole code needs to be revisited and properly use FFmpeg API

Fixes #11213

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
Since IPv6 addresses can contain %{num} as the zone index, it's not safe to use QString::arg() in GenMythUrl(). Potentially fixes #11937
Simplify MythCoreContext::GetMasterHostPrefix(). It's a waste of time to get the IP/port from the socket when we can be using the values from the settings instead, if we're not already connected to the master we will soon be connecting anyway to conduct the file transfer.
Allow the Guide start channel to be the "natural" Live TV channel.

If the DefaultTVChannel setting is left blank, then the EPG starting
channel is dynamically selected to be the same channel that would
naturally be tuned when Live TV is started.  This depends on the
available cards, their Live TV priority ordering, and the current
value of the starting channel for the inputs.

Note: It looks like there are still problems selecting the correct
tuner and starting channel when starting Live TV, which need to be
separately fixed.

Refs #11922.
WebFrontend: Increase the size of the preview image to fill the available space. Refs #11938
Services: Add DVR::GetUpcomingList() to the scriptable API
Update cardinput.startchan upon successful Live TV tuning.

Previously, this was only done when switching inputs during Live TV.
Prefer the DefaultChanid setting when picking EPG channel.

This more closely matches the logic of picking the starting channel
during Live TV startup.  Refs #11922.
Add Program Guide to the top-level menu.

For menu themes that contain Watch Live TV in the top-level
mainmenu.xml, add a button for Program Guide.  This only applies to
defaultmenu and mediacentermenu themes.  Refs #11922.
Add tunability tests to the Watch This Channel menu entry.

Make sure the selected channel can actually be tuned before offering
the "Watch This Channel" action.  Refs #11913.
Remove the option to start Live TV in the Program Guide.

The user can instead start Live TV and then bring up the Guide, or
start the Guide and then select "Watch This Channel" from the menu.

With the first option, to get to the Guide quickly, the user may want
to use the "Program Guide" jump point, or reorganize their Playback
OSD menu or Playback OSD compact menu
(http://www.mythtv.org/wiki/Themed_Menus) to bring the Program Guide
item to a more convenient position in the menu.

Refs #11922.
WebFrontend: Add an Upcoming Recordings page, basic functionality for now.

Refs #11938
Services: Amend DVR::GetUpcomingList to include in-progress recordings

This mirrors the behaviour of MythFrontend and the old MythWeb.
Swap load order of recording.css with common.css as a temporary workaround for recording status not being reflected in the recording page.
Services: Add RecStatusToDescription() and RecTypeToString() methods to DVR