Giter VIP home page Giter VIP logo

w11-mediaplayerrpc's Introduction

W11 Media Player RPC

This app enables rich presence for the new Media Player shipped with the February Windows 11 update.

Installation

  • Visit the releases tab and download the MediaPlayerRPC.zip file in the latest release assets.
  • Unzip and extract it with your preferred app (7zip, winRAR, etc).
  • Run the MediaPlayerRPC.exe file.

Known bugs

  • Timestamps are buggy and lag by a few seconds.
  • Sometimes, the album details are read as null values and display as Unknown Artist/Album.

Contributing

Contributions are welcome!
Create an issue, work on it on a new branch on your fork and make a PR.

w11-mediaplayerrpc's People

Contributors

dhzdhd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

w11-mediaplayerrpc's Issues

Unhandled exception. System.TypeInitializationException

Unhandled exception. System.TypeInitializationException: The type initializer for '<StartupCode$MediaPlayerRPC>.$Program' threw an exception.
 ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\a\W11-MediaPlayerRPC\W11-MediaPlayerRPC\MediaPlayerRPC\settings.json'.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at [email protected](Unit unitVar)
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 447
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 104
--- End of stack trace from previous location ---
   at Microsoft.FSharp.Control.AsyncResult`1.Commit() in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 393
   at Microsoft.FSharp.Control.AsyncPrimitives.QueueAsyncAndWaitForResultSynchronously[a](CancellationToken token, FSharpAsync`1 computation, FSharpOption`1 timeout) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 1045
   at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T](CancellationToken cancellationToken, FSharpAsync`1 computation, FSharpOption`1 timeout) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 1071
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T](FSharpAsync`1 computation, FSharpOption`1 timeout, FSharpOption`1 cancellationToken) in D:\a\_work\1\s\src\fsharp\FSharp.Core\async.fs:line 1366
   at <StartupCode$MediaPlayerRPC>.$Program..cctor() in D:\a\W11-MediaPlayerRPC\W11-MediaPlayerRPC\MediaPlayerRPC\Program.fs:line 23
   --- End of inner exception stack trace ---
   at MediaPlayerRPC.Program.main(String[] args) in D:\a\W11-MediaPlayerRPC\W11-MediaPlayerRPC\MediaPlayerRPC\Program.fs:line 188```

Improve presence timestamps

The timestamp currently updates every 6 seconds and relies on GlobalSystemMediaTransportControlsSessionTimelineProperties - EndTime and Position getters. This results in a unreliable lag of about 3 seconds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.