Dax89 / WebPirate

A Tabbed, WebKit based Browser Web for SailfishOS
GNU General Public License v3.0
15 stars 7 forks source link

I can't watch any video in Youtube with 1.5-1 version #50

Closed carmenfdezb closed 9 years ago

carmenfdezb commented 9 years ago

I can't watch any video in Youtube, it shows: Protocol "rtsp" is unknown.

Dax89 commented 9 years ago

You are clicking the "original" play button, which is not supported by the WebView :) YouTube's grabber is triggered after ~1 second to ensure that the page is loaded.

Unfortunately, sometimes happens that the page is not "hacked" by the grabber in time, in this case, try to reload the page, the grabber's "play" button looks different.

While browsing YouTube, the web page is not really reloaded, that's why you have this issue.

Edit: I can handle the rtsp protocol and instead to try to open the url it will trigger the grabber :)

carmenfdezb commented 9 years ago

Ok. If I open the video in new tab, I see new play button, and I can watch the video.

Dax89 commented 9 years ago

A refresh/reload is enough, WebView needs to receive the "pageLoaded" event in order to trigger the grabber

YouTube does not send that event because it modifies only the page structure and I use "urlChanged" event, which is not perfect :(

carmenfdezb commented 9 years ago

I closed WebPirate and opened it again, and now it's working fine. Thank you for your attention, and for updating the app.

Dax89 commented 9 years ago

:+1: