←  [EN] Third-Party Development

Forums

»

new developer NEED HELP

Aizecu's Photo Aizecu 29 Sep 2013

Hello everyone,
 

I posted this message here because there're very few documents for plugin developers. 

 

I'd like to develop my own plugin like nStreamPlayer

Since OpenPLi has updated things on August 2012, nStreamPlayer has become broken.


"I knew that we can put stream URL into bouquet, plugin is not needed, Anyway, I would like to develop this plugin because we can have extra feature."

 

I have tried to fix nStreamPlayer so far but it doesn't work.

 

Does anyone can help me ?

My point is to fix nStreamPlayer, make it usable with the lastest OpenPLi.

A man who made nStreamPlayer has no time to update his own work (As he answered me).

 

If not fixing it, I would like to develop new plugin, by the way, I still need someone who can help me?

Does anyone here can provide me a sample code of making list of service and switching between channels by using numeric button ?
(Switching channels by numeric button has been broken on nStreamPlayer),

Thank you,

 

Quote

littlesat's Photo littlesat 29 Sep 2013

Nstreamplayer is not required anymore... It is obsoleted since you can add streams within the normal settings. There is no need to fix it at all. You can put the streams in the settings with some setting editors.
Edited by littlesat, 29 September 2013 - 12:36.
Quote

Aizecu's Photo Aizecu 29 Sep 2013

Nstreamplayer is not required anymore... It is obsoleted since you can add streams within the normal settings. There is no need to fix it at all. You can put the streams in the settings with some setting editors.

 

I knew that, but if the stream URL is dynamic, what can I do ?

 

So, that's why I need to develop the plugin.

 

Please provide me some information how to start develop the plugin even though you think it's not required. 

 

Please..... , I really need to do it.


Edited by Aizecu, 29 September 2013 - 13:03.
Quote

athoik's Photo athoik 29 Sep 2013

I knew that, but if the stream URL is dynamic, what can I do ?

 

Just an idea, why don't you try to write a gstreamer source plugin with python?

 

If you fix that (you will be the first to do that on Enigma2...) will make bouquets excelent and able to work with dynamic urls (like youtube).

 

Start reading here.

 

Good luck!

Quote

Aizecu's Photo Aizecu 29 Sep 2013

I knew that, but if the stream URL is dynamic, what can I do ?

 

Just an idea, why don't you try to write a gstreamer source plugin with python?

 

If you fix that (you will be the first to do that on Enigma2...) will make bouquets excelent and able to work with dynamic urls (like youtube).

 

Start reading here.

 

Good luck!

 

Thanks for the reply,

 

It's good idea to implement dynamic link in bouquets but I'm a newbie, taking long way to get there. ( I don't think I can do it )

 

Do you have a full example of channel switching in plugins ?

 

I think I have to begin with a basic sample to understand classes and OpenPLi structure. 

 

Thank you.

Quote

athoik's Photo athoik 29 Sep 2013

All you need is this:

 

sref = eServiceReference(4097, 0, url)

self.session.nav.playService(sref)

 

Look this excellent guide http://openpli.org/f...ial-and-plugin/

Quote

Aizecu's Photo Aizecu 30 Sep 2013

Thank you so much for that. 

I think I understand the player quite a bit (learning from nStreamPlayer)

 

but I don't understand the how to make channel list with feedlist, grouplist, and how to switch between channel using Screens.InfoBarGenerics stuffs.

 

Any example for that ??

 

Thank you..

Quote

mfaraj57's Photo mfaraj57 30 Sep 2013

look for mediaportal plugin,it is school for managing streams also it is opensource

and include simple player to switch between streams while playing

to put dynamic link in bouquet seems impossible because you need special code for every type of dynamic stream,takes example youtube link you should connect to internet and analyze the direct link and video id to get the true streaming url and this applied to dailymotion and may be more complicated from movies streams

in absence of good documention for plugins programming,the best way to lean form the open source plugins and they are many

also look for the link mentioned by athoik  i simplified the procedure how to get dynamic streamings links form certain website


Edited by mfaraj57, 30 September 2013 - 09:39.
Quote

zakalibit's Photo zakalibit 10 Oct 2013

dynamic link in bouquet seems impossible

 

it is not quite true, take a look how it is done in iptvdream plugin https://github.com/t...v/src/server.py

Quote

Aizecu's Photo Aizecu 17 Oct 2013

Is it possible to play channels which are from satellite (DVB tuner) in my plugin ?

 

sref = eServiceReference(4097, 0, url)

self.session.nav.playService(sref)

I knew this is generally work with URL streaming,

but, how's about a regular channel from satellite ?

 

Please.., don't tell me to exit plugin and select a specific channel.
 

Thank you..

Quote

mfaraj57's Photo mfaraj57 18 Oct 2013

The first statement  sref = eServiceReference(4097, 0, url)   used to change streaming url address to enigma understandable service reference

the second statement used also to play dvb channels when you dvb channel service refrence

there are many ways to get dvb service refrences ,look in the dvb files in etc/enigma2

but you can search for plugin called thewebsiteparser and this include how to switch for event broading casting dvb channel from the plugin itself


Edited by mfaraj57, 18 October 2013 - 11:31.
Quote