Jellyfin Forum
Player for android TV and firetv - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Feature Requests (https://forum.jellyfin.org/f-feature-requests)
+--- Thread: Player for android TV and firetv (/t-player-for-android-tv-and-firetv)

Pages: 1 2 3


RE: Player for android TV and firetv - vince954 - 2024-08-09

Maybe but I have hundreds of files. Way too long a project.


RE: Player for android TV and firetv - TheDreadPirate - 2024-08-09

If this is Linux, the command line and loops are your friend.


RE: Player for android TV and firetv - theguymadmax - 2024-08-09

Have you tried adding external subtitles? ATV will load external subs first. If you’re interested in this approach, here’s a quick PowerShell script to create dummy .srt files.

To run:
1. Create a new file, paste contents into the file, and name it something with a .ps1 extension, e.g., CreateSRTFiles.ps1
2. Open PowerShell and run the script by navigating to its location in PowerShell and executing it with .\CreateSRTFiles.ps1.
3. Enter the path to the directory when prompted. The script will scan through your directory and create a dummy srt file for each mp4 file it finds.

Code:
# Prompt the user for a directory
$directory = Read-Host "Enter the path to the directory you want to scan"

# Check if the directory exists
if (-Not (Test-Path $directory)) {
    Write-Host "The directory does not exist. Please check the path and try again."
    exit
}

# Get all .mp4 files recursively
$mp4Files = Get-ChildItem -Path $directory -Recurse -Filter *.mp4

# Loop through each .mp4 file found
foreach ($file in $mp4Files) {
    # Define the .en.srt file path
    $srtFilePath = "$($file.DirectoryName)\$($file.BaseName).en.srt"
   
    # Create the .srt file with the specified content
    $content = "1`r`n00:00:00,000 --> 00:00:00,000"
    Set-Content -Path $srtFilePath -Value $content
}

Write-Host "Dummy .srt files with content have been created for all .mp4 files in the directory."



RE: Player for android TV and firetv - vince954 - 2024-08-11

That may work but my files are separated in directories for each movie. Did I mention my server is running in windows 11?


RE: Player for android TV and firetv - theguymadmax - 2024-08-11

Yes, I noticed that you're using Windows. The script I provided is intended for Windows. To run it, click on the Start menu, type "PowerShell," and select the app.

The script will scan your folders recursively. When you run it, you'll be prompted to enter the directory where your media is located. Just specify the top-level folder, and it will scan through all the subfolders within that directory.

For example: c:\media\movies\


RE: Player for android TV and firetv - vince954 - 2024-08-12

i will give this a try. one question, on your first step
1. Create a new file, paste contents into the file, and name it something with a .ps1 extension, e.g., CreateSRTFiles.ps1
do i need to create just one file for the whole run? where should it be located? and finally, what do i paste in it?


RE: Player for android TV and firetv - theguymadmax - 2024-08-12

To use the script, paste it into your preferred text editor. For Windows, Notepad is the default option. I’ve attached the script to this post for your convenience so you can skip that step, but you’ll need to rename the attached file by removing the .txt extension so that it’s named CreateSRTFiles.ps1 instead of CreateSRTFiles.ps1.txt.

To show file extensions in Windows 11:
  1.     Open File Explorer: You can do this by clicking the File Explorer icon on the taskbar or pressing Win + E on your keyboard.
  2.     Go to the View Menu (located on the ribbon menu): Select Show, then select File name extensions. 

With file extensions now visible, rename the file and move it to a convenient location, such as your desktop.

Next, open PowerShell and navigate to the directory where the file is saved. Use the following command, replacing username with your actual Windows username:
Code:
cd C:\Users\username\Desktop\

Once in the correct directory, execute the script by typing: 
Code:
.\CreateSRTFiles.ps1

The script will then prompt you to specify the directory. You only need to perform this step once.


RE: Player for android TV and firetv - vince954 - 2024-08-23

thanks so much for that workaround, i did try it but ran into an issue. the media folders are on a network drive in my openmediavault NAS server. i cannot see a mapped drive to the folder under powershell. any ideas? i am ok with setting the subtitles to none for now but would love for this to be automatic. can this be done?


RE: Player for android TV and firetv - theguymadmax - 2024-08-23

There was a fix for the bug you were experiencing, which will be included in the upcoming bugfix release, version 10.9.10. Once the update is available, upgrade to it, no need for this workaround.


RE: Player for android TV and firetv - engmaxneto - 2024-08-27

I am quite new at Jellyfin and everything is working great so far, 3 Tvs, google chromecast, notebook, phone, NAS, remote access.

The only thing that has been bothering me is the android tv player, not the player itself, it plays fine, find the correct subtitles and plays all kinds of media.

The problem is with the seek bar, when I want to fast forward I have to press 3 times the remote button, one to lift the bar, one to actualy forward and another to resume play.

The problem is not with exoplayer since I use other apps based on it and works fine.

Would be possible to change something I might be doing wrong to fix it?

Thanks and congratulations on the great work