Open Bug 1611235 Opened 1 month ago Updated 6 days ago

[MediaControl-Linux] Implement optional MPRIS Interfaces

Categories

(Core :: Widget: Gtk, enhancement)

Desktop
Linux
enhancement
Not set

Tracking

()

ASSIGNED

People

(Reporter: MeFisto94, Assigned: MeFisto94)

References

(Blocks 1 open bug)

Details

MPRIS provides a few optional features and we have to decide if we want to implement them:

#ifdef MPRIS_FULLSCREEN
  bool GetFullscreen();
  void SetFullscreen(bool aFullscreen);
  bool CanSetFullscreen();
#endif

#ifdef MPRIS_DESKTOP_ENTRY
  const char* DesktopEntry();
#endif

#ifdef MPRIS_LOOP_STATUS
  MPRISLoopStatus GetLoopStatus();
#endif

#ifdef MPRIS_SHUFFLE
  bool GetShuffle() const;
  void SetShuffle(bool aShuffle);
#endif

Desktop Entry is the path to the .desktop file, I think.
The others are self explanatory. I guess we can only implement Fullscreen and Desktop Entry. Looping and Shuffle probably don't make sense for single media elements (versus a playlist).

Looping maybe, I don't know if HTML5's Media supports native looping?

(In reply to Marc Streckfuß [:MeFisto94] from comment #0)

Looping maybe, I don't know if HTML5's Media supports native looping?

Yes, HTMLMediaElement supports looping.

[1] https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop

I think the most important is const char* DesktopEntry(); to get application icon and ID...we definitely should implement it.

You need to log in before you can comment on or make changes to this bug.