e71ed5e7eb
Added favicon, apple-touch-icon, and related meta tags to all HTML pages to ensure consistent branding and improve user experience on various platforms.
73 lines
2.8 KiB
HTML
73 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="https://alexxit.github.io/go2rtc/icons/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="https://alexxit.github.io/go2rtc/icons/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="https://alexxit.github.io/go2rtc/icons/favicon-16x16.png">
|
|
<link rel="manifest" href="https://alexxit.github.io/go2rtc/icons/site.webmanifest">
|
|
<link rel="mask-icon" href="https://alexxit.github.io/go2rtc/icons/safari-pinned-tab.svg" color="#5bbad5">
|
|
<link rel="shortcut icon" href="https://alexxit.github.io/go2rtc/icons/favicon.ico">
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
<meta name="msapplication-config" content="https://alexxit.github.io/go2rtc/icons/browserconfig.xml">
|
|
<title>go2rtc - WebRTC</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="out"></div>
|
|
<script>
|
|
const out = document.getElementById('out');
|
|
|
|
const print = (name, caps) => {
|
|
out.innerText += name + '\n';
|
|
caps.codecs.forEach((codec) => {
|
|
out.innerText += [codec.mimeType, codec.channels, codec.clockRate, codec.sdpFmtpLine] + '\n';
|
|
});
|
|
out.innerText += '\n';
|
|
};
|
|
|
|
if (RTCRtpReceiver.getCapabilities) {
|
|
print('receiver video', RTCRtpReceiver.getCapabilities('video'));
|
|
print('receiver audio', RTCRtpReceiver.getCapabilities('audio'));
|
|
print('sender video', RTCRtpSender.getCapabilities('video'));
|
|
print('sender audio', RTCRtpSender.getCapabilities('audio'));
|
|
}
|
|
|
|
const types = [
|
|
'video/mp4; codecs="avc1.42401E"',
|
|
'video/mp4; codecs="avc1.42C01E"',
|
|
'video/mp4; codecs="avc1.42E01E"',
|
|
'video/mp4; codecs="avc1.42001E"',
|
|
'video/mp4; codecs="avc1.4D401E"',
|
|
'video/mp4; codecs="avc1.4D001E"',
|
|
'video/mp4; codecs="avc1.640032"',
|
|
'video/mp4; codecs="avc1.640C32"',
|
|
'video/mp4; codecs="avc1.F4001F"',
|
|
'video/mp4; codecs="hvc1.1.6.L93.B0"',
|
|
'video/mp4; codecs="hev1.1.6.L93.B0"',
|
|
'video/mp4; codecs="hev1.2.4.L120.B0"',
|
|
'video/mp4; codecs="flac"',
|
|
'video/mp4; codecs="opus"',
|
|
'video/mp4; codecs="mp3"',
|
|
'video/mp4; codecs="null"',
|
|
'application/vnd.apple.mpegurl',
|
|
];
|
|
|
|
const video = document.createElement('video');
|
|
out.innerText += 'video.canPlayType\n';
|
|
types.forEach(type => {
|
|
out.innerText += `${type} = ${'MediaSource' in window && MediaSource.isTypeSupported(type)} / ${video.canPlayType(type)}\n`;
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |