Jump to content


Photo

is it possible to play or change channel using code


  • Please log in to reply
3 replies to this topic

#1 patelnaitik30

  • Senior Member
  • 43 posts

0
Neutral

Posted 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
  • 7,185 posts

+323
Excellent

Posted 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 posts

0
Neutral

Posted 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
  • 1,605 posts

+286
Excellent

Posted 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

 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users