watching videos on pinephone
#1
One of the main things i use my phone for is watching videos so when i recently got a pinephone i set out to get this working nicely on it.

I installed mobian with phosh on a microsd and that's been really stable for me. This has a videos program built in but it wouldn't play a video i'd downloaded to the phone so i installed mpv since i'm familiar with it on desktop and it's small and simple. This worked great when i went into settings and made it the default for video and music files. The only problem is the default interface and other ones i found were not made for a phone and so it made pausing and changing time difficult with only a touch interface.

Thankfully mpv has a fully scriptable interface so i managed to make a really simple interface by editing the the default file from the mpv github.

It just gives you a time seekbar and a central play/pause button but that's all that's usually needed.

To use this script you need to make a 'mpv.conf' file in the '/home/{username}/.config/mpv/' folder with the line 'osc=no'
This stops the builtin interface from appearing. There must be no spaces in the file and {username} is 'mobian' on mobian.

Then you need to make a folder named 'scripts' in the same folder so that you can put a new file in '/home/{username}/.config/mpv/scripts'

To use my edit of the interface you need to make a file with a .lua extension. I named it 'osc.lua'.
Then copy and paste this code in which is mostly just the same as the original: https://pastebin.com/aTq7Uncb

With this done, anytime you open a video on the pinephone, you'll have a simple interface that will be fully usable with only touch.
To fullscreen the video just double tap somewhere above or to the sides of the play button and seekbar. double tap again to exit fullscreen.


Hopefully this is an easy way to make pinephone a little more normal for daily use. Any improvements are welcome as this is just a simple edit of the osc and I don't very well understand the mpv API. Also i did most of this on desktop and then moved the files to where they needed to be.
  Reply


Messages In This Thread
watching videos on pinephone - by Galad - 12-13-2021, 10:54 AM
RE: watching videos on pinephone - by dukla2000 - 12-14-2021, 02:24 AM
RE: watching videos on pinephone - by bongosunny - 12-11-2022, 08:05 PM
RE: watching videos on pinephone - by treebeard - 12-11-2022, 09:42 PM
RE: watching videos on pinephone - by treebeard - 12-12-2022, 04:11 PM
RE: watching videos on pinephone - by Fish - 12-13-2022, 02:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 273 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 3,081 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 524 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 476 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone visibly losing power while plugged in Hiraghm 7 4,789 10-21-2025, 10:38 PM
Last Post: Anthona
  Pinephone boot. Richy_T 8 4,687 10-21-2025, 12:12 PM
Last Post: Richy_T
  How can I record video on a Pinephone? kk22 22 15,761 10-08-2025, 01:29 PM
Last Post: Kevin Kofler
  Does PinePhone support long-term battery health optimization? roseblack 5 1,523 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 3,933 09-24-2025, 09:25 PM
Last Post: elwoodb25
  Why projects like PinePhone matter – feedback and encouragement Gary2003 13 18,480 09-16-2025, 01:13 PM
Last Post: Gary2003

Forum Jump:


Users browsing this thread: 1 Guest(s)