Springen naar inhoud


Foto

is it possible to play or change channel using code


  • Please log in to reply
Er zijn 3 reacties in dit onderwerp

#1 patelnaitik30

  • Senior Member
  • 43 berichten

0
Neutral

Geplaatst op 7 september 2013 - 12:02

Hi

I am developing on plugins for the dreambox using enigma2.

I want to play channel from code or i want to manage channel change using the code is it possible.

please help me for that thing.

 



Re: is it possible to play or change channel using code #2 betacentauri

  • PLi® Core member
  • 7185 berichten

+323
Excellent

Geplaatst op 7 september 2013 - 12:06

Do you mean: Control box via a program instead of remote?

 

Yes, that's possible: http://openpli.org/f...a2-via-console/


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: is it possible to play or change channel using code #3 patelnaitik30

  • Senior Member
  • 43 berichten

0
Neutral

Geplaatst op 7 september 2013 - 12:15

thanks for Reply

but in my channel list there are two channel "MTV" and "sky sport" something like that.

I want to play any one of the channel using code is it possible.

I don't want to use virtual remote.after change channel some method(function) called in back end which change the channel when we us the remote.Any one know how to call that method or something.using that I can do.



Re: is it possible to play or change channel using code #4 mfaraj57

  • Senior Member
  • 1605 berichten

+286
Excellent

Geplaatst op 7 september 2013 - 14:09

from enigma import  eServiceReference, iServiceInformation, iPlayableService


### to know the current service
self.lastservice = self.session.nav.getCurrentlyPlayingServiceReference()

currPlay = self.session.nav.getCurrentService()

###to stop playing service
self.session.nav.stopService()

## to play service with known refrence
self.session.nav.playService(sref)

javascript:void(0)

if you want to use that from inside plugin the above function will help you

 




1 gebruiker(s) lezen dit onderwerp

0 leden, 1 bezoekers, 0 anonieme gebruikers