Homebrew RELEASE pPlay: switch video player

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Hi guys,

First sorry for not looking closely at this thread, i'm a little out of development since a few months, i'm doing this since a lot of years (developing) and i think i need a little (big) beak :)

I did saw @ShroomKing work thought (thanks to his github PR), thanks to him for improving pPlay. I also needs to thanks @DarkMatterCore for usbhostfs I guess :)

Since yesterday i did take the time to merge his changes and fix a few things (including subtitles).
Please note that I was not able to test usb.

So you'll find a new version of pPlay on the release page (3.3) !

https://github.com/Cpasjuste/pplay/releases/tag/v3.3
 
Last edited by cpasjuste,

Kyrn

Member
Newcomer
Joined
May 18, 2019
Messages
10
Trophies
0
Age
48
XP
376
Country
Sweden
Hi!

I just found out about this great homebrew the other day and after trying it out i downloaded the source and started adding some features to the OSD with options set/read in the config file of the app. @cpasjuste Would you be interested in more collaborators on this project?
I’m planning to use it also for music playback so i’m thinking playlists and other features too.
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Hi!

I just found out about this great homebrew the other day and after trying it out i downloaded the source and started adding some features to the OSD with options set/read in the config file of the app. @cpasjuste Would you be interested in more collaborators on this project?
I’m planning to use it also for music playback so i’m thinking playlists and other features too.
Hi,

You're more than welcome, of course. The project (as all my projects) is open source, and it's one of the reasons :)

A few dev notes, to @ShroomKing and @Kyrn :

- I use a custom ffmpeg build because the devkitpro one is "stripped" (missing some codecs/demuxers..). You can see how to compile it here: https://github.com/Cpasjuste/pplay/blob/master/ffmpeg.sh
- @ShroomKing , there is a cmake target to build the nro (and the release package)
- You can (should) build it for linux for faster development (unless you're doing switch specific stuff, of course)
- I use CLion ide to handle the project, it's a great ide (you can get free licence on request)
 
Last edited by cpasjuste,

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
@cpasjuste It seems the latest official release breaks the USB mass storage option from the + button menu. According to a friend, pressing A on it does nothing (compared to the build from @ShroomKing). I just wanted to let you know this.

Also, it seems the print code doesn't parse strings as UTF-8. This results in garbled text in the file browser while displaying file/directory names that hold UTF-8 codepoints. All fs strings should be handled as UTF-8.

@Kyrn using pPlay as an audio player sounds great. If possible, displaying files with unsupported extensions would be great - in the end, file extensions don't really mean anything at all.

Adding some sort of mark right next to videos that have already been played would be great as well.
 

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Hi @cpasjuste testing pplay 3.3 right now and USB doesn't seem to work, tried in my 2T HDD and when press A on Usb tab nothing happens, I did a clean exit from PC.
Just for the record, safely removing a NTFS drive from a PC is no longer mandatory since libusbhsfs v0.2.2.

It is still, however, good practice, so keep doing it.
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
@cpasjuste It seems the latest official release breaks the USB mass storage option from the + button menu. According to a friend, pressing A on it does nothing (compared to the build from @ShroomKing). I just wanted to let you know this.

Also, it seems the print code doesn't parse strings as UTF-8. This results in garbled text in the file browser while displaying file/directory names that hold UTF-8 codepoints. All fs strings should be handled as UTF-8.

@Kyrn using pPlay as an audio player sounds great. If possible, displaying files with unsupported extensions would be great - in the end, file extensions don't really mean anything at all.

Adding some sort of mark right next to videos that have already been played would be great as well.

Erf, unfortunately i can't really test usb stuff. Tomorrow i'll try to take a closer look to the changes I made, but I don't think I did modify something on the usb code from @ShroomKing. Would be great if he could debug that :)

For the utf part, this is something I need to do since a while in my libcross2d lib, but... well... :)
 
Last edited by cpasjuste,

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
@cpasjuste I recall @ShroomKing was looking for a way to update the elements from the + button menu at runtime. It'd be nice to actually display a submenu with all the available UMS devices instead of a hardcoded/configurable list.
Is it possible to use an usb-c pen drive? Is it possible to debug this (usb host) without a dock at all ?
 
Last edited by cpasjuste,

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Is it possible to use an usb-c pen drive? Is it possible to debug this (usb host) without a dock at all ?
Yes. USB3 storage devices also implement the legacy Bulk-Only Transport protocol used by USB2 storage devices, which is also the protocol supported by my driver. And sure, you can use USB-C OTG adapters in handheld mode.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,849
Trophies
1
Age
44
XP
6,653
Country
Germany
@cpasjuste Since you're here (for a short amount of time at least?) I'd like to thank you very much for the update and I wanna drop, that FTP does not work but worked in 2.1 according to other users here.
If you can fix FTP by any chance before you disappear again (which is well deserved!), that's be amazing!
I'd love to access my drive that is hanging on my Fritz!Box (popular german router).
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Yes. USB3 storage devices also implement the legacy Bulk-Only Transport protocol used by USB2 storage devices, which is also the protocol supported by my driver. And sure, you can use USB-C OTG adapters in handheld mode.

Hi @DarkMatterCore,

I just installed the devkitpro switch environment today on a new computer (so all is stock), but liblwext4 fail to compile. Do you have an idea of what on going on ? :)
 

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Hi @DarkMatterCore,

I just installed the devkitpro switch environment today on a new computer (so all is stock), but liblwext4 fail to compile. Do you have an idea of what on going on ? :)
Take a look at line 23. cmake is generating a command line for aarch64-none-elf-gcc where the specs file is defined twice - maybe that's the issue.

Which Linux distro are you using? And which steps did you exactly follow to compile lwext4?
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
Take a look at line 23. cmake is generating a command line for aarch64-none-elf-gcc where the specs file is defined twice - maybe that's the issue.

Which Linux distro are you using? And which steps did you exactly follow to compile lwext4?

I'm using ubuntu (20.04), and i just use "dkp-makepkg" for building. I'm used to pacman, i did handle a lot of switch packages, but i didn't want to go further yet :) I wonder if you could try to compile it with an up to date pacman packages (pacman -Syyu) to see if the problem is on my side.

What is very strange is i didn't had this problem yesterday on another computer (ubuntu 20.04 too) and an up to date pacman packages... Very strange...
 

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
I'm using ubuntu (20.04), and i just use "dkp-makepkg" for building. I'm used to pacman, i did handle a lot of switch packages, but i didn't want to go further yet :) I wonder if you could try to compile it with an up to date pacman packages (pacman -Syyu) to see if the problem is on my side.

What is very strange is i didn't had this problem yesterday on another computer (ubuntu 20.04 too) and an up to date pacman packages... Very strange...
Ok, it seems we've spotted a problem in latest devkitpro updates, "we" are working on it.
 
  • Like
Reactions: cucholix

cpasjuste

Well-Known Member
OP
Member
Joined
Aug 27, 2015
Messages
1,108
Trophies
1
Age
44
XP
4,483
Country
France
I could gladly help you fix this using UTF-8 helper functions from libnx if you point me in the right direction. :)

Unfortunately this won't be easy. I need to implement this in my libcross2d library, but this will require some time (it should not break anything). But this is on my todo !
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • S @ salazarcosplay:
    and also ahve the option to play as a human
  • S @ salazarcosplay:
    or set it up that when you get injured past a certain point they have to replace your human parts with cybernetics
  • Xdqwerty @ Xdqwerty:
    i have a placeholder enemy sprite i made
  • S @ salazarcosplay:
    or have it that you don't know you are a cyborg, robot, and you find out and have a existential crisis
  • S @ salazarcosplay:
    or have it start in the virtual world and you are an ai that gained sentience
  • Xdqwerty @ Xdqwerty:
    btw gonna wash my face in a bit, my eyes feel tired
  • S @ salazarcosplay:
    and you convince your owner to help you break out of the virtual world to real world
  • BigOnYa @ BigOnYa:
    Eyes - "yawn"
    +1
  • S @ salazarcosplay:
    you bleack in to goverment computer systems to get cyborg schematics so you can get a robot body constructed
  • Xdqwerty @ Xdqwerty:
    btw @BigOnYa the health bar doesnt decrease when i take damage (and yes i put the "at the beggining of the scene change value of greenflatbar: set to Protagonistcopmode.Health::Health())
  • S @ salazarcosplay:
    i the protagonist
  • S @ salazarcosplay:
    human, robot, cyborg
  • S @ salazarcosplay:
    human with cyborg enhancements
  • S @ salazarcosplay:
    or like terminatior
  • S @ salazarcosplay:
    with living tissue
  • BigOnYa @ BigOnYa:
    @Xdqwerty there is health behaviour you can add to your character, then to use a health bar is lil more complicated, google n watch a few tutorial video on it, be too hard to explain here.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, the character has the health behavior
  • BigOnYa @ BigOnYa:
    I know you have to create a health and health max variable. Then there is a calculation you use in code to subtract width size of the health bar. Google few vids.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, the "greenflatbar" is one of the preset health bars btw
  • BigOnYa @ BigOnYa:
    Yea you can use any bar/sprite. It will just change the width. Ok good luck and have fun. I'm off to go shoot some pool at the bar. Talk to you later.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why does the health behavior exist if you can just use a variable?
  • Xdqwerty @ Xdqwerty:
    and nope the number still doesnt change
    Xdqwerty @ Xdqwerty: and nope the number still doesnt change