mnlipp / CoCy4Enigma2

A UPnP Renderer for Enigma2
3 stars 1 forks source link

Duration problem #11

Closed midozalouk closed 4 years ago

midozalouk commented 4 years ago

Hello sir

Thanks for the great plugin but i have a problem with the duration .If i jumped to certain duration ,it jumps in video the right amount but i the casting app it jumps double the amount of time. For ex:- If i jumped 3 minutes i the casting app , it successfully jump in the video as 3 minutes but it shows as jumping 6 minutes i the casting app

are there ay code i ca edit i the rederer.py

thaks sir

i am usig pure2 6.5 cocy 4.1 streamig app we video caster

M.O

mnlipp commented 4 years ago

I have found that there are a lot of buggy control point implementation around. Give it a try with the Fritz!App Media. If this works, then it's most likely a problem with "we video caster" (whatever that is).

Another thing that I've found out is that it is futile to attempt to help people who use some different Enigma2 system. When I started this, I thought that with respect to the E2 API used by CoCy all E2 systems are the same, but this didn't prove to be true.

So, sorry, but unless you can bring this down to some fault that shows in the logs, I won't be able to help you.

midozalouk commented 4 years ago

Thanks sir But can you help me breakdown the renderer.py code

I think i might need to edit this one or i am wrong

def _duration(self): def _get(): print "[CoCy] Getting duration..." seek = self._seekable() if seek is None: return None length = seek.getLength() if length[0]: return 0 print "[CoCy] Duration raw " + str(length[1]) print "[CoCy] Duration is " + str(float(length[1]) / 90000) return float(length[1]) / 90000 return blockingCallOnMainThread(_get)

mnlipp commented 4 years ago

Yes, just try it. But as it works for the control point(s) that I use, it will probably be a workaround for a bug in your control point.