Bug 344941 - YouTube embedded video does not work - ask for Flash or HTML5
Summary: YouTube embedded video does not work - ask for Flash or HTML5
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui-message-filters (show other bugs)
Version: 0.9.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-07 22:01 UTC by Alexander Potashev
Modified: 2015-07-31 16:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2015-03-07 22:01:15 UTC
When I send a link to a YouTube video in a message, I can't watch the video inside the chat window and instead Youtube says I need either Adobe Flash Player or a web browser with HTML5 support.

Reproducible: Always
Comment 1 Martin Klapetek 2015-03-09 11:08:51 UTC
Thanks for the report.

I take it that you don't have flash player installed?

Also, is this the 0.9/stable version?
Comment 2 Alexander Potashev 2015-03-11 07:31:29 UTC
Correct - it's 0.9.0.

I have adobe-flash installed and I can watch YouTube clips (at youtube.com, not in the embedded mode) in rekonq which is also webkit-based and does not support the HTML5 video tag.

Looked at the log output of KTp and rekonq and both of them tell me about "QObject(0x0)" even though youtube works somehow in rekonq:
rekonq(4459)/kdewebkit KWebPluginFactory::create: Asked for "application/x-shockwave-flash" plugin, got QObject(0x0)
Comment 3 Martin Klapetek 2015-03-16 11:09:59 UTC
So to make sure I understand correctly - if you open some site with _embedded_ youtube video in rekonq, it will not play the video either?
Comment 4 Alexander Potashev 2015-03-21 05:30:40 UTC
There are a few changed in the behaviour after installing KDE Plasma 5 and updating to a Git version of KTP, may be I partly bricked my system because of that:
 1. Videos do not play in rekonq anymore,
 2. In the KTP chat application the error message is now different: it shows a preview screen with the Play arrow icon in the middle, but when I click that button it says "An rrror occurred. Please try again later. [Learn More]".

I'll close this bug until I get rekonq working or there is someone else with YouTube working in rekonq but not in KTP.
Comment 5 Alexander Potashev 2015-03-21 07:16:53 UTC
I installed a Git version of rekonq (KF5-based) and YouTube works there both at youtube.com and as embedded videos. The same video does not work in KTP with the symptoms described above ("An error occurred. Please try again later. [Learn More]").
Comment 6 Martin Klapetek 2015-03-21 17:25:12 UTC
That is embedded videos in rekonq, right?

Could you add 

[Appearance]
debug=true

to $CONFIG_DIR/ktelepathyrc, restart ktp-text-ui, paste the youtube video, right click in the chat window, select "Inspect..." and check if the embedded code matches the one in rekonq? If you try to paste the very same html code from rekonq into the webkit inspector, does it work then?
Comment 7 Alexander Potashev 2015-03-21 20:50:09 UTC
Yes, embedded videos do work in rekonq.

I copied the HTML code from the Web inspector from KTP chat window, saved in a file and opened it in rekonq. The video plays in rekonq. And still does not play in the KTP chat window O_o.
Comment 8 Martin Klapetek 2015-03-23 11:49:20 UTC
Is the embedded code actually a flash object? or html5 video?

Fwiw the html5 crashes altogether on Qt 5.4.1, so I'm thinking about just disabling it altogether.

Also, for 0.9, there won't be anymore updates I'm afraid.
Comment 9 Alexander Potashev 2015-03-23 15:32:28 UTC
It's a flash object in rekonq, but is an HTML5 video in KTP chat window O_o.
Comment 10 Martin Klapetek 2015-07-31 16:12:50 UTC
Git commit fd85d325369aef18fbde83ce5a2720b6dc33b24e by Martin Klapetek.
Committed on 31/07/2015 at 16:12.
Pushed by mklapetek into branch 'Applications/15.08'.

[filters/youtube] Disable the youtube filter by default

It causes lots of troubles and crashes and generally is just not worth
it.

M  +1    -1    filters/youtube/ktptextui_message_filter_youtube.desktop.cmake

http://commits.kde.org/telepathy-text-ui/fd85d325369aef18fbde83ce5a2720b6dc33b24e