View previous topic :: View next topic |
Author |
Message |
sebaro Veteran


Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
|
Back to top |
|
 |
Etal Veteran


Joined: 15 Jul 2005 Posts: 1932
|
Posted: Thu Sep 16, 2010 4:13 pm Post subject: |
|
|
Doesn't work for me
Here are the files installed:
Code: | /usr/lib/debug/usr/lib64/kde4/kviewtube.so.debug
/usr/lib64/kde4/kviewtube.so
/usr/share/apps/khtml/kpartplugins/plugin_kviewtube.desktop
/usr/share/apps/khtml/kpartplugins/plugin_kviewtube.rc
/usr/share/apps/kviewtube/plugin_kviewtube.js
/usr/share/icons/oxygen/16x16/actions/kviewtube.png
/usr/share/icons/oxygen/32x32/actions/kviewtube.png
/usr/share/icons/oxygen/48x48/actions/kviewtube.png
/usr/share/icons/oxygen/64x64/actions/kviewtube.png |
And I get "kviewtube" in extensions, but YouTube tells me "You need to upgrade your Adobe Flash Player to watch this video. Download it from Adobe." |
|
Back to top |
|
 |
sebaro Veteran


Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Fri Sep 17, 2010 5:03 am Post subject: |
|
|
I never got that message, probably because I don't have kde-base/nsplugins installed.
Are you using khtml or webkit? And what media player?
Works for me with konqueror-4.4.4 and kmplayer. |
|
Back to top |
|
 |
Etal Veteran


Joined: 15 Jul 2005 Posts: 1932
|
Posted: Fri Sep 17, 2010 2:15 pm Post subject: |
|
|
I tried with both KHTML and WebKit, but it works with niether.
What players is it supposed to work with? I assumed it would use Phonon... The only KDE player I have is dragonplayer.
I'll try uninstalling nsplugins and see if it helps. (Edit: no it doesn't) |
|
Back to top |
|
 |
sparc n00b

Joined: 18 Aug 2005 Posts: 72 Location: Stockholm, Sweden
|
Posted: Fri Sep 17, 2010 5:49 pm Post subject: |
|
|
I once had that problem in firefox and it was because of a symlink issue.
Adobe-flash gets installed in /opt/Adobe/flash-player/libflashplayer.so
However, all browsers use a symlink at /usr/lib/nsbrowser/plugins/libflashplayer.so
So, if you ever mover files around it is possible that this symlink became a normal file and never got upgraded. |
|
Back to top |
|
 |
sebaro Veteran


Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sat Sep 18, 2010 6:55 am Post subject: |
|
|
AM088 wrote: | I tried with both KHTML and WebKit, but it works with niether.
What players is it supposed to work with? I assumed it would use Phonon... The only KDE player I have is dragonplayer.
I'll try uninstalling nsplugins and see if it helps. (Edit: no it doesn't) |
The youtube website script contains an DIV element named "watch-player". ViewTube replaces this DIV's content (innerHTML) with an OBJECT element, like this:
Code: | document.getElementById('watch-player').innerHTML = '<object height=\"38" + "5\" width=\"64" + "0\" type="video/avi" data='+myVideo+'></object>'; |
That's an embeded video that could be played with a video player plugin. Works with kmplayer, I see that dragonplayer has in the source code a "part" file, but I don't know if it works. You can test it by creating a html file with the following:
Code: | <object data="path/to/a/video/file" type="video/avi"></object> |
To test if the ViewTube plugin works add
Code: | alert('This is a test!'); |
at the end of /usr/share/apps/kviewtube/plugin_kviewtube.js. |
|
Back to top |
|
 |
sebaro Veteran


Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sun Sep 26, 2010 10:32 am Post subject: |
|
|
www-plugins/kviewtube-2.ebuild:
Code: | # Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-plugins/kviewtube-2.ebuild,v 1.1 2010/09/26 12:19:00 sebaro Exp $
EAPI=2
WEBKIT_REQUIRED=always
inherit kde4-base
MY_P="${PN}_v_${PV}"
S="${WORKDIR}/KViewTube v.${PV}"
DESCRIPTION="An Konqueror extension for viewing videos from video websites without the need for Flash Player."
HOMEPAGE="http://kde-apps.org/content/show.php?content=132597"
SRC_URI="http://kde-apps.org/CONTENT/content-files/132597-${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="kde-base/konqueror"
src_install() {
kde4-base_src_install
}
|
|
|
Back to top |
|
 |
sebaro Veteran


Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Sat Oct 02, 2010 3:44 pm Post subject: |
|
|
I added support for Vimeo
Code: | /* Vimeo */
if (window.location.href.indexOf('vimeo.com') != -1) {
var viVideoIDParse = document.body.innerHTML.match(/vimeo_player_([^($)]*)" class/);
viVideoID = (viVideoIDParse != null) ? viVideoIDParse[1] : null;
var viXMLParse = 'http://vimeo.com/moogaloop/load/clip:' + viVideoID;
var xmlHTTP = new XMLHttpRequest();
xmlHTTP.open("GET",viXMLParse,false);
xmlHTTP.send();
viVideoisHD = xmlHTTP.responseXML.getElementsByTagName('isHD')[0].textContent;
viVideoQ = (viVideoisHD) ? "hd" : "sd";
viReqSign = xmlHTTP.responseXML.getElementsByTagName('request_signature')[0].textContent;
viReqSignExp = xmlHTTP.responseXML.getElementsByTagName('request_signature_expires')[0].textContent;
viVideoPath = 'http://www.vimeo.com/moogaloop/play/clip:' + viVideoID + '/' + viReqSign + '/' + viReqSignExp + '/?q=' + viVideoQ;
var viVideoDiv = document.getElementById('vimeo_player_'+viVideoID);
viVideoDiv.innerHTML = '<object width="100%" height="100%" type="video/avi" data=' + viVideoPath + '></object>';
} |
Works fine in Firefox with Greasemonkey but in Konqueror (4.4.4) I get a loop of embeded video. |
|
Back to top |
|
 |
|