Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ Distributed builds combine this project with:

==== Third-party Components ====

- CarPlay and its icon (android/app/src/main/res/drawable/ic_carplay.png)
are trademarks of Apple Inc., used only to identify CarPlay. No affiliation
or endorsement is implied.
- The CarPlay icon (android/app/src/main/res/drawable/ic_carplay.png)
is used to identify CarPlay.

- AndroidX ProfileInstaller 1.4.1, licensed under the Apache License 2.0
(https://www.apache.org/licenses/LICENSE-2.0). Source:
Expand All @@ -86,8 +85,7 @@ Distributed builds combine this project with:
- The Android robot (the head drawn for this phone on Home's connection stage)
is reproduced or modified from work created and shared by Google and used
according to terms described in the Creative Commons 3.0 Attribution License
(https://creativecommons.org/licenses/by/3.0/). Android is a trademark of
Google LLC.
(https://creativecommons.org/licenses/by/3.0/).

- mdns-sd 0.13.11, Copyright (c) 2021-2022 Han Xu, licensed under the
Apache License 2.0 or the MIT License, at your option; vendored in
Expand Down Expand Up @@ -175,3 +173,13 @@ Distributed builds combine this project with:
insights.

==== End of Notices ====

==== Compatibility and Trademarks ====

MyLink and MyLife are OpenXPlay’s own connection methods. Some features happen to work with the built-in CarLink and CarLife connectivity features on some head units. Compatibility is partial, and the experience falls well short of native support on Android phones. OpenXPlay is an independent project. It has no affiliation with the manufacturers or organizations behind these features and has received no endorsement or certification from them. Names such as CarLink and CarLife belong to their respective rights holders.

Trademark notice. Apple, iPhone, CarPlay, AirPlay, Siri, TestFlight, Apple Music, Bonjour, Mac, Safari, and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries and regions. App Store is a registered service mark of Apple Inc. iOS is a trademark or registered trademark of Cisco. Android and Google are trademarks of Google LLC. CarLink, CarLife, Tesla, DLNA, Bluetooth, Wi-Fi, WeChat, WeChat Pay, Telegram, NetEase Cloud Music, Amap, NIO, Leapmotor, Honda, Roewe, XPeng, MG, GWM, Geely, Mazda, Zeekr, and any other vehicle brands, model names, app names, and third-party marks mentioned here are trademarks or registered trademarks of their respective owners. OpenXPlay is an independent project. It has no affiliation with these companies or organizations and has received no endorsement, sponsorship, or certification from them. These names are used solely to describe compatibility.

MyLink 和 MyLife 是 OpenXPlay 自己的连接方式,只有一部分功能恰好能和部分车机自带的 CarLink、CarLife 互联功能配合使用,属于部分兼容,并非完整支持,效果也远不如安卓手机上的原生支持。OpenXPlay 是独立项目,与这些功能的厂商和组织没有任何关联,也未获得其认可或认证。CarLink、CarLife 等名称归各自权利人所有。

商标声明:Apple、iPhone、CarPlay、AirPlay、Siri、TestFlight、Apple Music、Bonjour、Mac、Safari 和 Xcode 是 Apple Inc. 在美国及其他国家和地区注册的商标。App Store 是 Apple Inc. 的注册服务商标。iOS 是 Cisco 的商标或注册商标。Android 和 Google 是 Google LLC 的商标。CarLink、CarLife、特斯拉(Tesla)、DLNA、Bluetooth、Wi-Fi、微信、微信支付、Telegram、网易云音乐、高德地图、蔚来、零跑、本田、荣威、小鹏、名爵、长城汽车、吉利、马自达、极氪,以及文中提到的其他汽车品牌、车型名称、App 名称和第三方标识,均为其各自权利人的商标或注册商标。OpenXPlay 是独立项目,与上述公司和组织没有任何关联,也未获得其认可、赞助或认证;文中提及这些名称仅用于说明兼容性。
10 changes: 7 additions & 3 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# OpenXPlay Relay

[OpenXPlay](https://github.com/OpenXPlay/OpenXPlay) 的中继:它作为 CarPlay 接收端连接 iPhone,再通过 [OpenXPlay-Stream](https://github.com/OpenXPlay/OpenXPlay-Stream) 的输出把会话转给车机,例如车机的浏览器或 Carlink 应用。车机无需安装任何软件。
[OpenXPlay](https://github.com/OpenXPlay/OpenXPlay) 的中继:它作为 CarPlay 接收端连接 iPhone,再通过 [OpenXPlay-Stream](https://github.com/OpenXPlay/OpenXPlay-Stream) 的输出把会话转给车机,例如车机浏览器,或使用 MyLink 或 MyLife 连接。车机无需安装任何软件。

中继可在两种平台上运行:

- **Android 应用。** 运行在手机上,使用 [OpenXPlay-DiPlay](https://github.com/OpenXPlay/OpenXPlay-DiPlay) 作为 CarPlay 接收端,并使用 Kotlin 版 Stream 输出。
- **Linux 中继。** 运行在小型 Linux 设备上,例如 UFI003 USB 随身 Wi-Fi。CarPlay 接收端用 Rust 编写,Rust 版 Stream 输出作为独立的 `oxp-relay` 进程运行。设备支持文件位于 [OpenXPlay-Hardware](https://github.com/OpenXPlay/OpenXPlay-Hardware)。

两种平台都在 6975 端口提供同一个网页管理页面,用于 Wi-Fi 设置、iPhone 配对、输出配置和 Carlink 配对。
两种平台都在 6975 端口提供同一个网页管理页面,用于 Wi-Fi 设置、iPhone 配对、输出配置和 MyLink 配对。

## 下载

Expand Down Expand Up @@ -53,4 +53,8 @@ CarPlay 协议 crate `rust/carplay-iap2` 和 `rust/carplay-airplay`,以及 `ru

如果贵组织的政策不允许使用 AGPLv3 许可的软件,或你希望免于履行 AGPLv3 的开源义务,请联系:[support@openxplay.org](mailto:support@openxplay.org)。豁免范围为 OpenXPlay 拥有的代码;派生自 DiPlay 和 xcertplay 的部分仍受 GPLv3 约束。

CarPlay 和 iPhone 为 Apple Inc. 的商标;OpenXPlay 为独立项目,与 Apple 不存在隶属、认可或认证关系。本仓库及其构建产物不包含任何 Apple 配件(MFi)身份凭据;要正常使用,需由用户自行提供。
本仓库及其构建产物不包含任何 Apple 配件(MFi)身份凭据;要正常使用,需由用户自行提供。

MyLink 和 MyLife 是 OpenXPlay 自己的连接方式,只有一部分功能恰好能和部分车机自带的 CarLink、CarLife 互联功能配合使用,属于部分兼容,并非完整支持,效果也远不如安卓手机上的原生支持。OpenXPlay 是独立项目,与这些功能的厂商和组织没有任何关联,也未获得其认可或认证。CarLink、CarLife 等名称归各自权利人所有。

商标声明:Apple、iPhone、CarPlay、AirPlay、Siri、TestFlight、Apple Music、Bonjour、Mac、Safari 和 Xcode 是 Apple Inc. 在美国及其他国家和地区注册的商标。App Store 是 Apple Inc. 的注册服务商标。iOS 是 Cisco 的商标或注册商标。Android 和 Google 是 Google LLC 的商标。CarLink、CarLife、特斯拉(Tesla)、DLNA、Bluetooth、Wi-Fi、微信、微信支付、Telegram、网易云音乐、高德地图、蔚来、零跑、本田、荣威、小鹏、名爵、长城汽车、吉利、马自达、极氪,以及文中提到的其他汽车品牌、车型名称、App 名称和第三方标识,均为其各自权利人的商标或注册商标。OpenXPlay 是独立项目,与上述公司和组织没有任何关联,也未获得其认可、赞助或认证;文中提及这些名称仅用于说明兼容性。
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# OpenXPlay Relay

The relay of [OpenXPlay](https://github.com/OpenXPlay/OpenXPlay): it connects to the iPhone as a CarPlay receiver and passes the session on to the head unit through [OpenXPlay-Stream](https://github.com/OpenXPlay/OpenXPlay-Stream) outputs, such as the head unit's browser or its Carlink app. Nothing is installed on the head unit.
The relay of [OpenXPlay](https://github.com/OpenXPlay/OpenXPlay): it connects to the iPhone as a CarPlay receiver and passes the session on to the head unit through [OpenXPlay-Stream](https://github.com/OpenXPlay/OpenXPlay-Stream) outputs, using the head unit’s browser or a connection option such as MyLink or MyLife. Nothing is installed on the head unit.

The relay runs on two platforms:

- **Android app.** It runs on a phone and uses [OpenXPlay-DiPlay](https://github.com/OpenXPlay/OpenXPlay-DiPlay) as its CarPlay receiver and the Kotlin Stream outputs.
- **Linux relay.** It runs on small Linux devices such as the UFI003 USB Wi-Fi dongle. The CarPlay receiver is written in Rust, and the Rust Stream outputs run as a separate `oxp-relay` process. Device support files live in [OpenXPlay-Hardware](https://github.com/OpenXPlay/OpenXPlay-Hardware).

Both platforms serve the same web admin page on port 6975, for Wi-Fi setup, iPhone pairing, outputs and Carlink pairing.
Both platforms serve the same web admin page on port 6975, for Wi-Fi setup, iPhone pairing, outputs and MyLink pairing.

## Download

Expand Down Expand Up @@ -67,6 +67,9 @@ to avoid the open-source obligations of AGPLv3, please contact us at:
[support@openxplay.org](mailto:support@openxplay.org). Exemptions cover the code OpenXPlay owns;
the parts derived from DiPlay and xcertplay stay under GPLv3.

CarPlay and iPhone are trademarks of Apple Inc.; OpenXPlay is an independent project and is not
affiliated with, endorsed or certified by Apple. This repository and its builds contain no Apple
This repository and its builds contain no Apple
accessory (MFi) identity; a working setup needs one supplied by the user.

MyLink and MyLife are OpenXPlay’s own connection methods. Some features happen to work with the built-in CarLink and CarLife connectivity features on some head units. Compatibility is partial, and the experience falls well short of native support on Android phones. OpenXPlay is an independent project. It has no affiliation with the manufacturers or organizations behind these features and has received no endorsement or certification from them. Names such as CarLink and CarLife belong to their respective rights holders.

Trademark notice. Apple, iPhone, CarPlay, AirPlay, Siri, TestFlight, Apple Music, Bonjour, Mac, Safari, and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries and regions. App Store is a registered service mark of Apple Inc. iOS is a trademark or registered trademark of Cisco. Android and Google are trademarks of Google LLC. CarLink, CarLife, Tesla, DLNA, Bluetooth, Wi-Fi, WeChat, WeChat Pay, Telegram, NetEase Cloud Music, Amap, NIO, Leapmotor, Honda, Roewe, XPeng, MG, GWM, Geely, Mazda, Zeekr, and any other vehicle brands, model names, app names, and third-party marks mentioned here are trademarks or registered trademarks of their respective owners. OpenXPlay is an independent project. It has no affiliation with these companies or organizations and has received no endorsement, sponsorship, or certification from them. These names are used solely to describe compatibility.
2 changes: 1 addition & 1 deletion admin-web/src/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function capabilityView(status: Status, t: Translate): string {
if (status.platform !== 'linux') return '';
const rows = (['web', 'clink'] as const).map(key => {
const cap = status.transcoding?.[key];
return `<dt>${esc(key === 'web' ? t('option.output.web') : 'Carlink')}</dt><dd>${esc(t(cap?.available ? 'capability.available' : 'capability.unavailable'))}${cap?.description ? ` · ${esc(cap.description)}` : ''}</dd>`;
return `<dt>${esc(key === 'web' ? t('option.output.web') : t('option.output.carlink'))}</dt><dd>${esc(t(cap?.available ? 'capability.available' : 'capability.unavailable'))}${cap?.description ? ` · ${esc(cap.description)}` : ''}</dd>`;
}).join('');
return `<section class="inset-group"><h3>${esc(t('capability.encoder'))}</h3><dl class="facts">${rows}</dl><pre>${esc(JSON.stringify(status.transcoding ?? {}, null, 2))}</pre><h3>${esc(t('capability.localAudio'))}</h3><pre>${esc(JSON.stringify(status.localAudio ?? {}, null, 2))}</pre></section>`;
}
2 changes: 1 addition & 1 deletion admin-web/src/feature-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function mountFeaturePage(container: HTMLElement, route: string, options:
});
} else if (route === 'settings/about') {
const locale = options.language === 'auto' ? (t('files.stable') === 'Stable' ? 'en' : 'zh-CN') : options.language;
container.innerHTML = `<div class="inset-group menu-group"><div class="inset-row"><strong class="row-copy">OpenXPlay Relay</strong><span>${esc(options.version)}</span></div><a class="inset-row" href="${locale.startsWith('zh') ? 'https://openxplay.org/zh/' : 'https://openxplay.org/'}" target="_blank" rel="noopener noreferrer"><span class="row-copy">${esc(t('files.project'))}</span>${icon('external-link')}</a><a class="inset-row" href="https://github.com/OpenXPlay/OpenXPlay-Relay" target="_blank" rel="noopener noreferrer"><span class="row-copy">${esc(t('files.source'))}</span>${icon('external-link')}</a><a class="inset-row" href="https://github.com/OpenXPlay/OpenXPlay-Relay/blob/main/NOTICE" target="_blank" rel="noopener noreferrer"><span class="row-copy">${esc(t('files.licence'))}</span>${icon('external-link')}</a><div class="inset-row"><label class="row-copy" for="language">${esc(t('ui.language'))}</label><select id="language" style="width: auto; max-width: 60%"><option value="auto">${esc(t('ui.automatic'))}</option><option value="en">English</option><option value="zh-CN">简体中文</option></select></div></div>${options.adminFeatures?.includes('update-check') ? `<div class="inset-group"><div class="input-row"><label class="row-copy" for="update-channel">${esc(t('files.channel'))}</label><select id="update-channel" style="width: auto; max-width: 60%"><option value="stable">${esc(t('files.stable'))}</option><option value="beta">${esc(t('files.beta'))}</option></select></div><button id="update-check">${esc(t('files.checkUpdate'))}</button><progress hidden aria-label="${esc(t('files.checking'))}"></progress><p id="feature-feedback" role="status"></p><div id="update-result"></div><p class="muted">${esc(t('files.channelHint'))}</p><p class="muted">${esc(t(options.platform === 'linux' ? 'files.updateHint.linux' : 'files.updateHint.android'))}</p></div>` : ''}<div class="inset-group"><h2>${esc(t('files.acknowledgements'))}</h2><p>${esc(t('files.acknowledgementText'))}</p><a class="inset-row" href="https://github.com/shihabal3amri/DiPlay" target="_blank" rel="noopener noreferrer">DiPlay · ${esc(t('files.diplayHint'))}</a><a class="inset-row" href="https://github.com/shilapi/xcertplay" target="_blank" rel="noopener noreferrer">xcertplay · ${esc(t('files.xcertplayHint'))}</a><p>${esc(t('files.trademark'))}</p></div>`;
container.innerHTML = `<div class="inset-group menu-group"><div class="inset-row"><strong class="row-copy">OpenXPlay Relay</strong><span>${esc(options.version)}</span></div><a class="inset-row" href="${locale.startsWith('zh') ? 'https://openxplay.org/zh/' : 'https://openxplay.org/'}" target="_blank" rel="noopener noreferrer"><span class="row-copy">${esc(t('files.project'))}</span>${icon('external-link')}</a><a class="inset-row" href="https://github.com/OpenXPlay/OpenXPlay-Relay" target="_blank" rel="noopener noreferrer"><span class="row-copy">${esc(t('files.source'))}</span>${icon('external-link')}</a><a class="inset-row" href="https://github.com/OpenXPlay/OpenXPlay-Relay/blob/main/NOTICE" target="_blank" rel="noopener noreferrer"><span class="row-copy">${esc(t('files.licence'))}</span>${icon('external-link')}</a><div class="inset-row"><label class="row-copy" for="language">${esc(t('ui.language'))}</label><select id="language" style="width: auto; max-width: 60%"><option value="auto">${esc(t('ui.automatic'))}</option><option value="en">English</option><option value="zh-CN">简体中文</option></select></div></div>${options.adminFeatures?.includes('update-check') ? `<div class="inset-group"><div class="input-row"><label class="row-copy" for="update-channel">${esc(t('files.channel'))}</label><select id="update-channel" style="width: auto; max-width: 60%"><option value="stable">${esc(t('files.stable'))}</option><option value="beta">${esc(t('files.beta'))}</option></select></div><button id="update-check">${esc(t('files.checkUpdate'))}</button><progress hidden aria-label="${esc(t('files.checking'))}"></progress><p id="feature-feedback" role="status"></p><div id="update-result"></div><p class="muted">${esc(t('files.channelHint'))}</p><p class="muted">${esc(t(options.platform === 'linux' ? 'files.updateHint.linux' : 'files.updateHint.android'))}</p></div>` : ''}<div class="inset-group"><h2>${esc(t('files.acknowledgements'))}</h2><p>${esc(t('files.acknowledgementText'))}</p><a class="inset-row" href="https://github.com/shihabal3amri/DiPlay" target="_blank" rel="noopener noreferrer">DiPlay · ${esc(t('files.diplayHint'))}</a><a class="inset-row" href="https://github.com/shilapi/xcertplay" target="_blank" rel="noopener noreferrer">xcertplay · ${esc(t('files.xcertplayHint'))}</a><p>${esc(t('link.compatibilityDisclosure'))}</p><p>${esc(t('files.trademark'))}</p></div>`;
container.querySelector<HTMLSelectElement>('#language')!.value = options.language;
on(container.querySelector('#language'), 'change', e => options.setLanguage((e.target as HTMLSelectElement).value));
if (!options.adminFeatures?.includes('update-check')) return;
Expand Down
Loading
Loading