home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Broken function in Youtube.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Juppe" data-source="post: 1170896" data-attributes="member: 26931"><p>Hi all.</p><p></p><p>I have a problem playing some videos in Youtube.</p><p>For example search for "amaranthe nexus" and select the first video that comes up. It should have a watermark "Vevo".</p><p>Try to play that one. There are more files from that search that I cant play.</p><p></p><p>All I get when I try is an error that says something like "Error start playing. Connection is lost, cannot reopen.</p><p></p><p>I think I've found why this happens, the url that onlineVideos try to play is invalid because that the url has not been "decrypted".</p><p></p><p>I've tried to fix this, but my knowledge of javascript is not that good.</p><p>I think that the function that is broken is "string DecryptSignature(string javascriptUrl, string s)" in Youtube.cs.</p><p>What I can see in that function, there are at least two errors.</p><p>The first is that the Regexp that tries to make the string fixedJs shorter so that it ends after the function that onlinevideos shall call, returns nothing.</p><p>The second is that the call to the javascript in function engine.CallGlobalFunction returns with the error that the function onlinevideos tries to call is not a function.</p><p>I think that the second error is because that the javascript has change, before this change I think that every function did have a name and looked something like "function gr(a) {somecode}"</p><p>but now it lookes like this "gr=function(a){somecode)" and all functions seems to be anonymous and are part of a bigger function that contains "all" the function in that javascript.</p><p></p><p>Is there anyone that know javascript and and have the time to look into this?</p></blockquote><p></p>
[QUOTE="Juppe, post: 1170896, member: 26931"] Hi all. I have a problem playing some videos in Youtube. For example search for "amaranthe nexus" and select the first video that comes up. It should have a watermark "Vevo". Try to play that one. There are more files from that search that I cant play. All I get when I try is an error that says something like "Error start playing. Connection is lost, cannot reopen. I think I've found why this happens, the url that onlineVideos try to play is invalid because that the url has not been "decrypted". I've tried to fix this, but my knowledge of javascript is not that good. I think that the function that is broken is "string DecryptSignature(string javascriptUrl, string s)" in Youtube.cs. What I can see in that function, there are at least two errors. The first is that the Regexp that tries to make the string fixedJs shorter so that it ends after the function that onlinevideos shall call, returns nothing. The second is that the call to the javascript in function engine.CallGlobalFunction returns with the error that the function onlinevideos tries to call is not a function. I think that the second error is because that the javascript has change, before this change I think that every function did have a name and looked something like "function gr(a) {somecode}" but now it lookes like this "gr=function(a){somecode)" and all functions seems to be anonymous and are part of a bigger function that contains "all" the function in that javascript. Is there anyone that know javascript and and have the time to look into this? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Broken function in Youtube.
Contact us
RSS
Top
Bottom