-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
=
committed
Aug 17, 2020
0 parents
commit 9298ea9
Showing
46 changed files
with
1,925 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
# YouTube TV | ||
|
||
Cliente de YouTube TV sencillo para escritorio basado en electron. | ||
|
||
Usa el siguiente userAgent: | ||
``` | ||
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.77 Large Screen Safari/534.24 GoogleTV/092754 | ||
``` | ||
|
||
Para lanzar la aplicación basta con usar el comando ```npm start```. | ||
|
||
## 🛠️ Compilar | ||
El proyecto se puede compilar para varias plataformas diferentes, así como arquitecturas de 32, 64 bits y ARM. | ||
|
||
Hay comandos preparados para compilarlo: | ||
|
||
**Windows x32** | ||
``` | ||
npm run buildWin32 | ||
``` | ||
**Windows x64** | ||
``` | ||
npm run buildWin64 | ||
``` | ||
**Windows ARM** | ||
``` | ||
npm run buildWinARM | ||
``` | ||
**Linux x32** | ||
``` | ||
npm run buildLinux32 | ||
``` | ||
**Linux x64** | ||
``` | ||
npm run buildLinux64 | ||
``` | ||
**Linux ARM64** | ||
``` | ||
npm run buildLinuxARM64 | ||
``` | ||
**Linux ARMv7** | ||
``` | ||
npm run buildLinuxARMv7 | ||
``` | ||
**macOS x64** | ||
``` | ||
npm run buildmOS64 | ||
``` | ||
Compilar para macOS puede dar fallos de permisos desde Windows. | ||
|
||
**Todas las plataformas y arquitecturas** | ||
``` | ||
npm run buildAll | ||
``` | ||
|
||
⚠️ Los scripts anteriores compilan el proyecto con el argumento ```--asar``` para ocultar el código fuente. | ||
Para compilar sin este argumento deberá lanzar el comando personalizado desde la línea de comandos. | ||
|
||
``` | ||
electron-packager ./ YouTube-TV --platform=#PLATAFORMA# --arch=#ARQUITECTURA# | ||
``` | ||
Plataformas disponibles: | ||
- win32 | ||
- linux | ||
- darwin | ||
- mas (no usado, solo para macOS App Store) | ||
|
||
Arquitecturas disponibles: | ||
- ia32 (x32/x86) | ||
- x64 | ||
- armv7l | ||
- arm64 | ||
|
||
Ejemplo de uso para Raspberry: | ||
|
||
``` | ||
electron-packager ./ 'YouTube TV' --platform=linux --arch=armv7l | ||
``` | ||
Una vez compilado, puede acceder y manipular el código fuente desde la carpeta **resources**. | ||
|
||
>⚠️ Si compila para varias plataformas sin usar el script ```buildAll``` procura sacar cualquier build de la carpeta del proyecto, si no lo hace, el resto de paquetes se añadirán al proyecto compilado, aumentando de esta forma el tamaño inutilmente. | ||
Por ejemplo, si compila una versión para Windows y después otra para Linux, saca la carpeta del proyecto y compila la siguiente versión. | ||
|
||
Para cambiar otros parámetros puede seguir la guía de [electron packager](https://github.com/electron/electron-packager#usage). | ||
|
||
## 📺 Kiosk mode | ||
Para alternar entre el modo ventana y kiosko se puede pulsar la tecla F11. | ||
|
||
También se puede forzar desde la instancia a BrowserWindow: | ||
```Javascript | ||
let win = new BrowserWindow({ | ||
width: 1230, | ||
height: 720, | ||
kiosk: true, | ||
title: 'YouTube TV', | ||
``` | ||
Sin embargo forzar este modo impide cambiar a otras ventanas de forma sencilla. | ||
## ⛔ Problemas conocidos | ||
- Al minimizar la ventana, la reproducción se detiene. Se puede reanudar si hay un teléfono enlazado pulsando el botón de reproducir desde la app de YouTube. | ||
- En la primera ejecución de la aplicación, desde la pantalla de inicio de sesión, no se puede lanzar el modo kiosko. | ||
- Durante la reproducción de contenido, el cursor no se oculta. | ||
- No se puede conectar un teléfono mediante el protocolo DIAL (el dispositivo no reconoce el equipo como un Chromecast), en cualquier caso debe emparejarlo mediante código de TV. | ||
## ⚙️ Tests | ||
- ✔️ Windows 10 x64 - win32_x64/ia32. | ||
- ✔️ Ubuntu 19.04 x64 (VM) - linux_x64. | ||
No comprobado en Windows ARM, Linux ARM y macOS | ||
## 📦 Builds | ||
El proyecto se puede descargar compilado y listo para su uso. | ||
### Windows | ||
[YouTube TV-win32-ia32.zip]() | ||
[YouTube TV-win32-x64.zip]() | ||
[YouTube TV-win32-arm64.zip]() | ||
### Linux | ||
[YouTube TV-linux-ia32.zip]() | ||
[YouTube TV-linux-x64.zip]() | ||
[YouTube TV-linux-arm64.zip]() | ||
[YouTube TV-linux-armv7l.zip]() | ||
**Licencia Creative Commons** | ||
 |
34 changes: 34 additions & 0 deletions
34
...in-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (GPU).app/Contents/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18E226</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.electron.youtube-tv.helper</string> | ||
<key>CFBundleName</key> | ||
<string>YouTube TV Helper (GPU)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTSDKBuild</key> | ||
<string>10.15</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.15</string> | ||
<key>DTXcode</key> | ||
<string>1110</string> | ||
<key>DTXcodeBuild</key> | ||
<string>11A1027</string> | ||
<key>LSRequiresNativeExecution</key> | ||
<true/> | ||
<key>LSUIElement</key> | ||
<true/> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<true/> | ||
<key>CFBundleDisplayName</key> | ||
<string>YouTube TV Helper (GPU)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>YouTube TV Helper (GPU)</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+251 KB
...pp/Contents/Frameworks/YouTube TV Helper (GPU).app/Contents/MacOS/YouTube TV Helper (GPU)
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...arwin-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (GPU).app/Contents/PkgInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
34 changes: 34 additions & 0 deletions
34
...x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (Plugin).app/Contents/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18E226</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.electron.youtube-tv.helper</string> | ||
<key>CFBundleName</key> | ||
<string>YouTube TV Helper (Plugin)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTSDKBuild</key> | ||
<string>10.15</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.15</string> | ||
<key>DTXcode</key> | ||
<string>1110</string> | ||
<key>DTXcodeBuild</key> | ||
<string>11A1027</string> | ||
<key>LSRequiresNativeExecution</key> | ||
<true/> | ||
<key>LSUIElement</key> | ||
<true/> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<true/> | ||
<key>CFBundleDisplayName</key> | ||
<string>YouTube TV Helper (Plugin)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>YouTube TV Helper (Plugin)</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+251 KB
...tents/Frameworks/YouTube TV Helper (Plugin).app/Contents/MacOS/YouTube TV Helper (Plugin)
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...in-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (Plugin).app/Contents/PkgInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
34 changes: 34 additions & 0 deletions
34
...4/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (Renderer).app/Contents/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18E226</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.electron.youtube-tv.helper</string> | ||
<key>CFBundleName</key> | ||
<string>YouTube TV Helper (Renderer)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTSDKBuild</key> | ||
<string>10.15</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.15</string> | ||
<key>DTXcode</key> | ||
<string>1110</string> | ||
<key>DTXcodeBuild</key> | ||
<string>11A1027</string> | ||
<key>LSRequiresNativeExecution</key> | ||
<true/> | ||
<key>LSUIElement</key> | ||
<true/> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<true/> | ||
<key>CFBundleDisplayName</key> | ||
<string>YouTube TV Helper (Renderer)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>YouTube TV Helper (Renderer)</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+251 KB
...s/Frameworks/YouTube TV Helper (Renderer).app/Contents/MacOS/YouTube TV Helper (Renderer)
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (Renderer).app/Contents/PkgInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
34 changes: 34 additions & 0 deletions
34
...V-darwin-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper.app/Contents/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18E226</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.electron.youtube-tv.helper</string> | ||
<key>CFBundleName</key> | ||
<string>YouTube TV</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTSDKBuild</key> | ||
<string>10.15</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.15</string> | ||
<key>DTXcode</key> | ||
<string>1110</string> | ||
<key>DTXcodeBuild</key> | ||
<string>11A1027</string> | ||
<key>LSRequiresNativeExecution</key> | ||
<true/> | ||
<key>LSUIElement</key> | ||
<true/> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<true/> | ||
<key>CFBundleDisplayName</key> | ||
<string>YouTube TV Helper</string> | ||
<key>CFBundleExecutable</key> | ||
<string>YouTube TV Helper</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+251 KB
...YouTube TV.app/Contents/Frameworks/YouTube TV Helper.app/Contents/MacOS/YouTube TV Helper
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...e TV-darwin-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper.app/Contents/PkgInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
58 changes: 58 additions & 0 deletions
58
build/YouTube TV-darwin-x64/YouTube TV.app/Contents/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18E226</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>YouTube TV</string> | ||
<key>CFBundleExecutable</key> | ||
<string>YouTube TV</string> | ||
<key>CFBundleIconFile</key> | ||
<string>electron.icns</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.electron.youtube-tv</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>YouTube TV</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0.0</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTSDKBuild</key> | ||
<string>10.15</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.15</string> | ||
<key>DTXcode</key> | ||
<string>1110</string> | ||
<key>DTXcodeBuild</key> | ||
<string>11A1027</string> | ||
<key>LSApplicationCategoryType</key> | ||
<string>public.app-category.developer-tools</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>10.10.0</string> | ||
<key>LSRequiresNativeExecution</key> | ||
<true/> | ||
<key>NSCameraUsageDescription</key> | ||
<string>This app needs access to the camera</string> | ||
<key>NSHighResolutionCapable</key> | ||
<true/> | ||
<key>NSMainNibFile</key> | ||
<string>MainMenu</string> | ||
<key>NSMicrophoneUsageDescription</key> | ||
<string>This app needs access to the microphone</string> | ||
<key>NSPrincipalClass</key> | ||
<string>AtomApplication</string> | ||
<key>NSQuitAlwaysKeepsWindows</key> | ||
<false/> | ||
<key>NSRequiresAquaSystemAppearance</key> | ||
<false/> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
Binary file added
BIN
+396 KB
build/YouTube TV-darwin-x64/YouTube TV.app/Contents/Resources/app.asar
Binary file not shown.
Binary file added
BIN
+20.5 KB
build/YouTube TV-darwin-x64/YouTube TV.app/Contents/Resources/electron.icns
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9.2.0 |
34 changes: 34 additions & 0 deletions
34
...as-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (GPU).app/Contents/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18E226</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.electron.youtube-tv.helper</string> | ||
<key>CFBundleName</key> | ||
<string>YouTube TV Helper (GPU)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTSDKBuild</key> | ||
<string>10.15</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.15</string> | ||
<key>DTXcode</key> | ||
<string>1110</string> | ||
<key>DTXcodeBuild</key> | ||
<string>11A1027</string> | ||
<key>LSRequiresNativeExecution</key> | ||
<true/> | ||
<key>LSUIElement</key> | ||
<true/> | ||
<key>NSSupportsAutomaticGraphicsSwitching</key> | ||
<true/> | ||
<key>CFBundleDisplayName</key> | ||
<string>YouTube TV Helper (GPU)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>YouTube TV Helper (GPU)</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+181 KB
...pp/Contents/Frameworks/YouTube TV Helper (GPU).app/Contents/MacOS/YouTube TV Helper (GPU)
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...V-mas-x64/YouTube TV.app/Contents/Frameworks/YouTube TV Helper (GPU).app/Contents/PkgInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
Oops, something went wrong.