2011-05-15, 13:09
hmm ok, well i think you are right about if possible avoiding a callback.
afaik i don't think that an onSeek would be that hard to implement, but yes it is best to avoid it.
i was also thinking (a little selfishly, because i want Megavideo seeking to work), that there should be a way to get non-query strings into the url. ie. some way to specify something like this:
original url
megavideo.com/asfah4893gefj/stream.flv
url with seek
megavideo.com/asfah4893gefj/23528009/stream.flv
where 23528009 is the skip. i think this would have to be defined through a regex.
so to sum up, in python you would then do something like this:
where seekType would be 'querystring' or 'regex'. if it is querystring then SeekKeywordOrRegex would just be the keyword (ie. 'fs' or 'start'), which is then auto inserted as a query string using the C++ equivalent of urllib.
if it is 'regex' then you would pass a regular expression string that when passed the url and seek value, inserted the seek into the url....
what do you think?
afaik i don't think that an onSeek would be that hard to implement, but yes it is best to avoid it.
i was also thinking (a little selfishly, because i want Megavideo seeking to work), that there should be a way to get non-query strings into the url. ie. some way to specify something like this:
original url
megavideo.com/asfah4893gefj/stream.flv
url with seek
megavideo.com/asfah4893gefj/23528009/stream.flv
where 23528009 is the skip. i think this would have to be defined through a regex.
so to sum up, in python you would then do something like this:
Code:
xbmc.player(URL, seekType, SeekKeywordOrRegex)
if it is 'regex' then you would pass a regular expression string that when passed the url and seek value, inserted the seek into the url....
what do you think?