Mon 20 Aug 2007 02:30:22 PM UTC, comment #15:
Patch attribution fixed in ChangeLog. Thanks.
|
Mon 20 Aug 2007 02:26:46 PM UTC, comment #14:
Sorry for delay - I was out of the country.
OK, it wasn't my patch... but it allows Konq to play embedded youtube videos - thanks.
Nick
|
Sat 18 Aug 2007 03:04:40 AM UTC, comment #13:
Thanks Nick, your patch committed to both head and 0.8.1 branch.
Let me know if this bug item can be closed or refers to a more general issue about other then youtube.com uses...
|
Sat 18 Aug 2007 02:45:04 AM UTC, comment #12:
Blocker again for the kparts issue, back to normal/important after kparts behaves as nsapi (we should consider sharing some code in the future)
|
Fri 17 Aug 2007 10:10:25 PM UTC, comment #11:
i'm attaching a minimalistic patch that enables youtube videos in konqueror. note however that kpart still does not pass -U or any -P parameters. while i didn't notice any problems with this it might be wise to make sure that both plugins behave the same way in the long run.
(file #13685)
|
Thu 09 Aug 2007 05:07:41 AM UTC, comment #10:
Not a blocker anymore, since I belive this was never tested before.
|
Sat 04 Aug 2007 08:24:39 AM UTC, comment #9:
No, I do not get a crash - if you look at my debug trace, you can see the URL gets changed and kpart then can't load the *.swf - 404, file not found.
Nick
|
Thu 02 Aug 2007 06:20:27 AM UTC, comment #8:
I belive what Thomas is seeing is the same as bug #20657.
Nick is it the same of yours ?
That bug has the item attached, for easy testing with the standalone player.
Note that bug #20657 is unrelated to renderer and gui (can be reproduced with -r0)
|
Tue 31 Jul 2007 05:56:37 PM UTC, comment #7:
Yes, I can't play any youtube embedded video at all in Konqueror (works great standalone gnash player though).
It seems the URL gets confused:
kdecore (KAccel): KAccelBase(): this = 0x8739dc0
konqueror: KlashPart::openURL http://www.youtube.com/player2.swf?hl=en&video_id=AY9qcDCFeVI&l=407&t=OEgsToPDskK-7A4t3oRJyGXE_l9OvdQq&soff=1&sk=jdC3wJM43X3plofA2SKSkgC
kio (KTrader): KServiceTypeProfile::offers serviceType=application/x-shockwave-flash genericServiceType=KParts/ReadOnlyPart
kio (KTrader): query for application/x-shockwave-flash, KParts/ReadOnlyPart : returning 1 offers
...
...
parts: ReadOnlyPart::slotJobFinished
konqueror: gnash -G kde -v -x 35661876 -j 450 -k 370 '/tmp/kde-nick/konqueror5bnGHa.tmp'
khtml (part): 0x830a558 slotChildCompleted child=0x85a34e0 m_frame=0x85087f4
kdecore (KAction): KAction::updateItems( 0, lst )
khtml (part): saveState this=0x830a558 '' saving URL http://www.youtube.com/watch?v=AY9qcDCFeVI
libkonq: ## addToHistory: http://www.youtube.com/watch?v=AY9qcDCFeVI Typed URL: , Title: YouTube - Create a Lemon Battery
kdecore (KAccel): KAccelPrivate::setEnabled( "stop", false ): this = 0x814b828
kdecore (KAccel): KAccelPrivate::setEnabled( "stop", false ): this = 0x8283b58
kdecore (KAcceleratorManager): KAcceleratorManager::manage
Flavor 'kde' parsed as 2
4055] 18:54:07: Verbose output turned on
4055] 18:54:07: Setting width to 450
4055] 18:54:07: Setting height to 370
4055] 18:54:07: No rendering flags specified, using rcfile
init_gui called - gui flavor : KDE (2)
Gui flavor is 2
getGui(2) called
4055] 18:54:07: Base url set to: file:///tmp/kde-nick/konqueror5bnGHa.tmp
4055] 18:54:07: Movie file:///tmp/kde-nick/konqueror5bnGHa.tmp (SWF7) added to library
4055] 18:54:07: framebuffer pixel format is BGRA32
4055] 18:54:07: initialized AGG buffer <0x43171008>, 680000 bytes, 450x370, rowsize is 1800 bytes
kdecore (KAcceleratorManager): KAcceleratorManager::manage
4055] 18:54:07: frame load advancement (from -1 to 1)
4055] 18:54:07: ERROR: At end of stream, still no 'LogWindow' symbol found in m_exports (28 entries in it, follow)
4055] 18:54:07: frame load advancement (from -1 to 1)
4055] 18:54:07: ERROR: At end of stream, still no 'LogWindowScrollbar' symbol found in m_exports (28 entries in it, follow)
4055] 18:54:07: DEBUG: video_stream_instance 0x81c20d0 ctor
4055] 18:54:07: ERROR: Unimplemented: localconnection_send
4055] 18:54:07: ERROR: Unimplemented: sharedobject_getlocal
4055] 18:54:07: ERROR: Unimplemented: MovieClip.attachAudio()
4055] 18:54:07: ERROR: Unimplemented: localconnection_send
4055] 18:54:07: DEBUG: gnash::as_value gnash::netconnection_new(const gnash::fn_call&) enter
4055] 18:54:07: DEBUG: static gnash::as_value gnash::NetConnection::connect_method(const gnash::fn_call&) enter
4058] 18:54:08: Connecting to movie: file:///get_video?video_id=undefined&t=undefined
4058] 18:54:08: ERROR: Gnash could not open this url: file:///get_video?video_id=undefined&t=undefined
4058] 18:54:08: ERROR: Gnash could not open movie: /get_video?video_id=undefined&t=undefined
4058] 18:54:08: DEBUG: av_streamer: !ns->startPlayback, returning
Konqueror never crashes though - it justs doesn't play embedded youtube (or derivatives) files.
Nick
|
Mon 30 Jul 2007 10:19:44 AM UTC, comment #6:
I can reproduce the embedded youtube player crash from http://wordpress.com/blog/2006/01/26/youtube-support/
I've attached the backtrace.
(file #13526)
|
Sat 28 Jul 2007 07:55:23 PM UTC, comment #5:
I see. I don't have up-to-date GTK stuff (Slackware) and use KDE gui. No wonder it doesn't work...
Gnash as a standalone is super* - I was just trying to find out why this works embedded:
http://www.userfriendly.org/animation/compaq.html
and this doesn't:
http://wordpress.com/blog/2006/01/26/youtube-support/
Nick
*
#!/bin/sh
read -p "url: " url
swf=$(wget --quiet -O - "$url" | grep -F player2.swf | cut -d \" -f 2)
gnash -G kde -v $* "http://youtube.com$swf"
|
Sat 28 Jul 2007 07:51:15 PM UTC, comment #4:
I was wrong, just tested and KDE gui works perfectly as a firefox plugin
|
Sat 28 Jul 2007 07:45:27 PM UTC, comment #3:
firefox plugin invokes 'gnash'.
'gnash', in turn, needs to suppor the GTK gui.
It might be that your 'gnash' binary runs the KDE gui by default.
I think I'll force GTK gui by hard-coding the -G flag in it
to make sure.
|
Sat 28 Jul 2007 06:57:44 PM UTC, comment #2:
Ummm. I can't use the FF one - it just locks FF up.
Konq is my main browser. I can't work out how to debug FF as it runs from a script.
Nick
|
Sat 28 Jul 2007 05:10:37 PM UTC, comment #1:
It is possible that klash is not using the -P argument, did you try with the firefox plugin ?
|
Sat 28 Jul 2007 10:42:24 AM UTC, original submission:
I have been looking at why youtube embedded video in Konqueror doesn't work; it looks like a URL mangle.
I used this page to test:
http://wordpress.com/blog/2006/01/26/youtube-support/
KDE kio pulls in the respective redirect URL:
kio (KIOJob): TransferJob::slotRedirection(http://www.youtube.com/p.swf?video_id=_dIya1aJJKA&eurl=&iurl=http%3A//img.youtube.com/vi/_dIya1aJJKA/default.jpg&t=OEgsToPDskLu_P3V-cw-0cVK6SJIP-f9&rel=0)
But later, Gnash gets confused and seems to totally lose the '_dIya1aJJKA' part of the URL to the image:
http://img.youtube.com/vi/_dIya1aJJKA/default.jpg
=====
3769] 11:34:20: Base url set to: file:///tmp/kde-nick/konquerorsLpiKa.tmp
3769] 11:34:20: Movie file:///tmp/kde-nick/konquerorsLpiKa.tmp (SWF7) added to library
3769] 11:34:20: framebuffer pixel format is BGRA32
3769] 11:34:20: initialized AGG buffer <0x43141008>, 600000 bytes, 425x350, rowsize is 1700 bytes
kdecore (KAcceleratorManager): KAcceleratorManager::manage
3769] 11:34:20: frame load advancement (from -1 to 1)
3769] 11:34:20: ERROR: At end of stream, still no 'LogWindow' symbol found in m_exports (28 entries in it, follow)
3769] 11:34:20: frame load advancement (from -1 to 1)
3769] 11:34:20: ERROR: At end of stream, still no 'LogWindowScrollbar' symbol found in m_exports (28 entries in it, follow)
3769] 11:34:20: DEBUG: video_stream_instance 0x81d3198 ctor
3769] 11:34:20: ERROR: Unimplemented: localconnection_send
3769] 11:34:20: ERROR: Unimplemented: sharedobject_getlocal
3769] 11:34:20: ERROR: Unimplemented: MovieClip.attachAudio()
3769] 11:34:20: ERROR: Unimplemented: localconnection_send
3769] 11:34:20: ERROR: Unimplemented: localconnection_send
3769] 11:34:20: ERROR: Unimplemented: TextField.getDepth()
3769] 11:34:20: SECURITY: Load from host img.youtube.com granted (default).
3769] 11:34:20: ERROR: 404 response from url http://img.youtube.com/vi/undefined/default.jpg
3769] 11:34:20: ERROR: unknown file type (unknown)
3769] 11:34:20: ERROR: Couldn't load library movie 'http://img.youtube.com/vi/undefined/default.jpg'
3769] 11:34:20: ERROR: can't create movie_definition for http://img.youtube.com/vi/undefined/default.jpg
====
I have looked at the code, but cannot see why.
Nick
|