Coder Social home page Coder Social logo

wmc-mpris's People

Contributors

denton-l avatar doronbehar avatar evgenyzinoviev avatar f1u77y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

doronbehar

wmc-mpris's Issues

Crashes after some time

I am not sure whether this is bug in browser extension or system binary. I use Firefox with https://github.com/f1u77y/web-media-controller and with web-media-controller-mpris-git AUR package. When I start Firefox and youtube/spotify, extension works but after some time it crashes. This is log from browser console (Ctrl+Shift+J):

stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.418: g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.420: g_variant_new_variant: assertion 'value != NULL' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.420: g_variant_get_type: assertion 'value != NULL' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.421: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.421: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.421: g_variant_builder_end: assertion 'GVSB(builder)->offset >= GVSB(builder)->min_items' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.421: g_variant_get_type: assertion 'value != NULL' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.421: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:14.421: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_new_object_path: assertion 'g_variant_is_object_path (object_path)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_new_variant: assertion 'value != NULL' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_get_type: assertion 'value != NULL' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_builder_end: assertion 'GVSB(builder)->offset >= GVSB(builder)->min_items' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_get_type: assertion 'value != NULL' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
stderr output from native app me.f1u77y.web_media_controller: 
stderr output from native app me.f1u77y.web_media_controller: (process:9157): GLib-CRITICAL **: 14:41:18.866: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed

How to use this?

Hello,

I've encountered this project via the AUR package when looking for a way to control media players in the browser via mpris. I've managed to compile it successfully but I don't know what to do next.

Should I put the file me.f1u77y.web_media_controller.firefox.json somewhere inside my ~/.mozilla/*.default directory?

Does this work only with certain websites?

wmc-mpris doesn't get infromation from nor send commands to Firefox

So I have installed the web extension via Mozilla's Add-on store, got wmc-mpris installed via my distro's package manager. And it seems to work, with playerctl listing web-media-controller.

$ playerctl --list-all
mpd.instance28978
web-media-controller.pid27534
chromium.instance13752

But using playerctl <cmd>, doesn't to do anything. Following the advise here, I looked at the properties and found that it seems like web-media-controller does not get any information from Firefox/the web-media-controller.

$ dbus-send --print-reply --type=method_call --dest=org.mpris.MediaPlayer2.web-media-controller.pid27534 /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.GetAll string:'org.mpris.MediaPlayer2.Player'
method return time=1572478987.936083 sender=:1.321 -> destination=:1.335 serial=7 reply_serial=2
   array [
      dict entry(
         string "PlaybackStatus"
         variant             string ""
      )
      dict entry(
         string "LoopStatus"
         variant             string ""
      )
      dict entry(
         string "Rate"
         variant             double 1
      )
      dict entry(
         string "Shuffle"
         variant             boolean false
      )
      dict entry(
         string "Metadata"
         variant             array [
            ]
      )
      dict entry(
         string "Volume"
         variant             double 0
      )
      dict entry(
         string "Position"
         variant             int64 0
      )
      dict entry(
         string "MinimumRate"
         variant             double 1
      )
      dict entry(
         string "MaximumRate"
         variant             double 1
      )
      dict entry(
         string "CanGoNext"
         variant             boolean false
      )
      dict entry(
         string "CanGoPrevious"
         variant             boolean false
      )
      dict entry(
         string "CanPlay"
         variant             boolean false
      )
      dict entry(
         string "CanPause"
         variant             boolean false
      )
      dict entry(
         string "CanSeek"
         variant             boolean false
      )
      dict entry(
         string "CanControl"
         variant             boolean false
      )
   ]

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.