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?
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?