Xfce Wiki

Sub domains
 

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

midori:faq [2013/12/20 22:56]
kalikiana [User styles]
midori:faq [2014/04/18 21:30] (current)
axlrose [Midori and mediaHerald]
Line 557: Line 557:
  
 Midori'​s support for WebKit2 is still provisional,​ and likely unsuitable for real-world daily usage; much work is being done in this area so that Midori can use WebKit2 by default at some point in the future. Midori'​s support for WebKit2 is still provisional,​ and likely unsuitable for real-world daily usage; much work is being done in this area so that Midori can use WebKit2 by default at some point in the future.
 +
 +====== Midori and mediaHerald ======
 +
 +
 +mediaHerald is a dbus service (/​org/​midori/​mediaHeraldallow) users to connect to dbus and check the titme and url of the video that midori plays in **YOUTUBE**,​ **VIMEO** or **DAILYMOTION**,​ the extension which does the work is called webmedia-now-playing.
 +
 +If you want to get the video title and the uri is easy more than easy :-) .
 +<code bash>
 +#!/bin/sh
 +
 +eval $(dbus-send --session --print-reply --dest=org.midori.mediaHerald /​org/​midori/​mediaHerald org.freedesktop.DBus.Properties.GetAll string:"​org.midori.mediaHerald"​ | awk '
 +    /​string ​ *"​VideoTitle/​{
 +        while (1) {
 +            getline line
 +            if (line ~ /string "/)
 +                sub(/​.*string /, "​TITLE=",​ line)
 +                print line
 +                break
 +            }
 +        }
 +        /​string ​ *"​VideoUri/​{
 +        while (1) {
 +            getline line
 +            if (line ~ /string "/)
 +                sub(/​.*string /, "​URI=",​ line)
 +                print line
 +                break
 +            }
 +        }
 +    ')
 +echo "​Midori is now playing: $TITLE ,the uri is: $URI"
 +</​code>​
midori/faq.1387576599.txt.gz · Last modified: 2013/12/20 22:56 by kalikiana