Page 1 of 2

Introducing PMPlayer

Posted: 2020-05-15, 16:47
by moonbat
Just submitted an original extension, PMPlayer. It lets you play videos from popular streaming sites as well as MP4/WEBM and other container formats in a separate floating window. Please try it and provide feedback (on Windows especially, since I developed this on Linux).

Re: Introducing PMPlayer

Posted: 2020-05-15, 17:27
by adesh
Wonderful! You've really started making some impact in the extension sphere.

Re: Introducing PMPlayer

Posted: 2020-05-15, 19:59
by KlarkKentThe3rd
Is this yet another fork of the MPlayer project?

Re: Introducing PMPlayer

Posted: 2020-05-15, 21:59
by therube
Windows 7.

Not seeing anything (happen)...

https://vimeo.com/ondemand/40yearsofcomedy
Tools... grayed out

https://www.youtube.com/watch?v=30b-5ABaONA
Tools... says Play with, but it doesn't

https://www.dailymotion.com/video/x7txbfd
Context-menu (when over the video) shows here, & it works, here. Tools menu, grayed out.

https://www.bitchute.com/video/mcWIHQE6yIAF/
No context-menu, but Tools is there, & it plays from there.
(I've never like Peanuts so much in my life.)

Re: Introducing PMPlayer

Posted: 2020-05-15, 22:14
by therube
Shortcut keys, & or have the window follow OS rules.

Winkey+left,right,down, work, but not Winkey+up (to maximize).

Similarly, double-click on the Title line (to maximize).
Could even have standard window controls, maximize, minimize, restore.

(Options) Changing the initial player size, can't seem to figure out how to type a value in there?


Youtube requires a double-context menu click(s).
First click, gives the html context-menu, second click gives the OS context-menu (but even so, Play is not working there).


Presumably any clip opened with the browser "native player" will "just work", this does:
https://edu-net.net/media/balcony/balcony.mp4
But not (necessarily) if it is "styled", embedded in a web page.
https://www.edu-net.net/media/balcony/

Re: Introducing PMPlayer

Posted: 2020-05-16, 02:41
by moonbat
KlarkKentThe3rd wrote:
2020-05-15, 19:59
Is this yet another fork of the MPlayer project?
Nope, it's a new browser extension. PM as in Pale Moon, not related to any standalone player software :) .
I was inspired to make it from what I had earlier, a Jetpack extension from CAA called 'Youtube Video Player Pop Out' (a mouthful). The idea was similar - it has a toolbar button to play the currently displayed youtube video in a floating javascript popup window - but was terrible to use apart from only supporting Youtube, and now it doesn't display properly after they moved to the new interface. The window could barely be moved around without jerking and it wasn't a true separate desktop window like this one.
therube wrote:
2020-05-15, 21:59
Not seeing anything (happen)...

https://vimeo.com/ondemand/40yearsofcomedy
Tools... grayed out
Yeah, it works for simple video links, not their ondemand. You have to be on the actual video page for it to work - so for example it will stay disabled on Youtube.com, or on the main page of a channel or playlist. Same goes for rightclick - only if the link points to a video it will play. If you enable logging, it will log detected video links to the toolkit error console.
therube wrote:
2020-05-15, 22:14
Shortcut keys, & or have the window follow OS rules.

Winkey+left,right,down, work, but not Winkey+up (to maximize).

Similarly, double-click on the Title line (to maximize).
Could even have standard window controls, maximize, minimize, restore.
I'm running Linux Mint here, it appears like any other standard window since internally the window it uses is just a regular window opened via Javascript and the doubleclick to maximize, controls etc work (check out the preview screenshot on the addons page).
Browser windows are supposed to follow OS conventions without any extra effort, I'll need a little more help troubleshooting on Windows.
therube wrote:
2020-05-15, 22:14
Youtube requires a double-context menu click(s).
First click, gives the html context-menu, second click gives the OS context-menu (but even so, Play is not working there).
Are you rightclicking on the video itself when on a Youtube video page? You don't have to do that - if you're on a youtube video like this one, you can rightclick anywhere on the page for the context menu, or just use the toolbar button or tools menu entry. It goes by the URL in the address bar, or the URL that you rightclick on on any non video webpage (like on the youtube link above). I've got plans to allow rightclicking embedded videos on other sites too.
therube wrote:
2020-05-15, 22:14
But not (necessarily) if it is "styled", embedded in a web page.
https://www.edu-net.net/media/balcony/
Yup, that's planned for future.

I'm also looking at whether to implement fullscreen support - if you press the fullscreen button on the site's player, it won't work so at best you can maximize the window. Then again the point of the extension was to be able to watch videos while doing something else ;)
So far I've been unable to, so it's on a future to do list.

Re: Introducing PMPlayer

Posted: 2020-05-16, 02:46
by moonbat
If anyone's interested in the technicalities - I'm using a <browser> element in the popup window along with the embed URL specific to each site that allows embeds. URLs are detected by pattern, for example Peertube instances follow the format of /videos/watch/<videoID> so it will try to work any site that follows that URL pattern. I was originally hoping for more sophisticated control over the displayed video - having a separate set of playback buttons that pass events to the displayed player, but these are completely different for each site (to say nothing of using remote Javascript calls, which wouldn't be good security aside from being a moving target if they unexpectedly change or deprecate them as Google famously does). So what you see is just the regular embedded player on the site's page but in a floating window of its own.

Re: Introducing PMPlayer

Posted: 2020-05-16, 10:09
by Moonchild
FTR: WIn+Up isn't available in windows that don't have maximize enabled, so that would be by design.

Re: Introducing PMPlayer

Posted: 2020-05-16, 10:59
by New Tobin Paradigm
Isn't that contengent on having aero snap enabled?

Re: Introducing PMPlayer

Posted: 2020-05-20, 02:18
by moonbat
PMPlayer 1.2 changelog
  • Supports Borealis Navigator.

Re: Introducing PMPlayer

Posted: 2020-05-23, 06:20
by moonbat
PMPlayer 1.3 changelog
  • Supports small icons in toolbar.
  • Detects youtu.be links.

Re: Introducing PMPlayer

Posted: 2020-06-14, 15:02
by moonbat
Changelog for 1.3.2
  • Enhancement: - Context menu now available over videos embedded on 3rd party sites, not just for links.
  • Use Services.jsm instead of directly calling services.

Re: Introducing PMPlayer

Posted: 2020-06-22, 14:52
by Billyhook
Today i install two Palemoon extension for better experience, Search engine button (tumpio) Version 1.2.2 and PMPlayer (moonbat) Version 1.3.2.
and wanted tell "Thank you" developer for this great job. :clap:

Re: Introducing PMPlayer

Posted: 2020-06-22, 15:40
by moonbat
Billyhook wrote:
2020-06-22, 14:52
Today i install two Palemoon extension for better experience, Search engine button (tumpio) Version 1.2.2 and PMPlayer (moonbat) Version 1.3.2.
and wanted tell "Thank you" developer for this great job. :clap:
You're welcome :)

Re: Introducing PMPlayer

Posted: 2020-06-24, 16:27
by moonbat
Changelog for 1.3.3
  • PMPlayer now has a homepage! :mrgreen: Updated with screenshots and usage instructions.

Re: Introducing PMPlayer

Posted: 2020-06-24, 17:23
by Moonchild
Tip: Specify lighter colors for links (and visited). dark blue and dark purple defaults are hard to read on black.

Re: Introducing PMPlayer

Posted: 2020-06-25, 12:23
by moonbat
Moonchild wrote:
2020-06-24, 17:23
Tip: Specify lighter colors for links (and visited). dark blue and dark purple defaults are hard to read on black.
Thanks, I've changed it. Am still a beginner at CSS :)

Re: Introducing PMPlayer

Posted: 2020-06-25, 12:26
by moonbat
Changelog for 1.4
  • Added support for Basilisk :D
    Install it from here.
  • Separate CSS for each operating system - so that I can set default background colors on Windows separately from others. Would appreciate feedback from Windows users, especially on Basilisk.

Re: Introducing PMPlayer

Posted: 2020-06-25, 13:01
by moonbat
Changelog for 1.4.1
  • Removed os=Linux from chrome.manifest (thanks Lootyhoof!)

Re: Introducing PMPlayer

Posted: 2020-07-18, 03:29
by Tharthan
It doesn't seem to be working for me.

I usually use two windows, one for private browsing and one for non-private browsing, but because I was informed that this only works when one uses only one window. So I opted to use the private window for all browsing when I want to use the extension.

But when I try using it, even when the button is useable (not... "greyed out" [not the proper term here, but I'm not sure what to call it]), it fails to do anything.


I'm using Pale Moon Version 28.11.0 (32-bit) for Windows 7, and I don't have any problems with any other extensions:

My list of extensions:ABPrime, Active Tab More Visible, Autoplay Toggle (Non-Restartless), butWhyMod, Context Search X, Cookie Permissions Button, Cookies Control Panel, Decentraleyes, Dismiss The Overlay, Greasemonkey for Pale Moon (no scripts present for it at the moment, so it's not doing anything), NoSquint, OpenDownload², Pale Moon Commander, PDFViewer, PMPlayer, Pure URL, Reader View, Sasuga, SearchLoad Options Revived, Statusbar Date & Time, Tab Mix Plus, and TimerFox.

Autoplay Toggle is enabled, which means that it prevents videos (such as YouTube videos) from autoplaying, but I don't see why that would interfere. That doesn't prevent videos from loading, it just has them on "forever buffer" until I choose to have them play.