Jump to content

Pseudo TV for Emby


VicMoore

Recommended Posts

VicMoore

The Pseudo TV plugin is composed of two parts. The first part is a TV Tuner Platform created entirely by @Luke. He called the plugin "VirtualTvExample." The second part is a Javascript addition to Luke's work, that provides a simple GUI for creating and adding channels to the TV Tuner. The code for both parts is attached below. The tuner code is mature and stable. I created the javascript code and several C# additions to the tuner. @TZTZorocomposed the CSS code. As with all of my plugins, the PseudoTV code is free to everyone to use as they like. 

 

 

To begin using PseudoTV, copy the PseudoTV plugin dll to the EMBY plugin directory and RESTART EMBY.

image.png.996d3644d3bcedd047e75c1527704338.png

 

image.png.282a88fe8abc60757c4b438b5364b356.png

The Channel Management screen below will come up. Use this menu to Add new and view existing channels.  Click Add Channel to add a new channel.

image.png.09c9157e2f4bfb2e096b83a999d62004.png

The Add Channel button brings up the menu below where you provide the channel name and number. Vacant channel names are replaced by random numbers, and 999 replaces vacant channel numbers.

image.png.ded58ebad07660a2d4479a3f21ed0dbd.png

 

 

image.png.4b9108037d9a28d2c76474c361601949.png

 

 image.png.2cd246ebbdbdac48441d9b00e88a5c9d.png

 

image.png.68d93c990fe81523e76fcec281bea519.png

 

image.png.1a0dbe72d4e56495be62a018233bfa13.png

 

image.png.b0bae1c7d9f75afbdf5a154705c1a85b.png

 

 

image.png.55a0a363c94daa2e765cec133ed377af.png

 

 

image.png.ca32dc1267b398941c39405a5afe8aea.png

 

image.png.2a0bcc3daed9af5c52d05306b731c5b3.png

 

image.png.480dfe78207b4f43fde2ae24868a5f50.png

 

image.png.9f521c4ade452dc79626acc7499d354e.png

 

image.png.0efb9cc899940e56679ff6ac16e95709.png

 

 

The latest code is attached below:

 

 

 

 

 

 

 

 

 

PseudoTV.zip PseudoTV.dll

Edited by VicMoore
Topic Title modified
  • Like 8
  • Thanks 1
Link to comment
Share on other sites

Dibbes

From the screenshots, this looks very useful! Let us know when we can start testing this!

Link to comment
Share on other sites

VicMoore

Happy new year Dibbes...  I just posted the code.  Give it a try.  It's not a polished product.  I am still debugging it.

Vic

Link to comment
Share on other sites

VicMoore
Posted (edited)

in a few days I will post another GUI. One based on rules and query strings.  This change greatly simplifies the code. 

Vic

Edited by VicMoore
Link to comment
Share on other sites

VicMoore
Posted (edited)

Two weeks ago, @Lukegave me the correct GUI architecture and it was so simple that it went right over my head. He said all I have to do was to add the filters I need to the query string in the tuner.  He was right and that just what I am doing in the new GUI. A simple example is below. I will mature the design over the next few days.

Vic

image.png.93425fceefe517ea8ca4a9c7673a0c14.png

Edited by VicMoore
  • Thanks 1
Link to comment
Share on other sites

@VicMoore- Thanks a lot for creating this plugin!

I wonder whether you could perhaps try to find a more distinct name for your plugin. "Emby TV" is a bit too generic and rather used for built-in TV functionality and "Virtual TV" is a different plugin already.

Without a distinct name, we might often need to check back in the future, asking what they are really talking about and that would unnecessarily cause confusion.

Thanks,
sw

Link to comment
Share on other sites

Is that the name of the plugin? I don't think we'd put it in the catalog if it's as broad as that. Maybe Pseudo TV.

Link to comment
Share on other sites

16 minutes ago, Luke said:

Is that the name of the plugin?

It's "Virtual TV Example" - so I would say he just hasn't determined a real name yet.

Once he has found a name, it should be consistent, i.e. dll name, naming in the UI and eventually we should also rename this topic accordingly (as it's in the Plugins forum where the primary topics are named like the plugin).

Link to comment
Share on other sites

VicMoore
Posted (edited)

I am OK with any name.  Give me a name and I will use it.  @LukeI am OK with "Pseudo TV" if @softworkzagrees.

Vic

Edited by VicMoore
Link to comment
Share on other sites

VicMoore

@softworkzI need help changing the name of the plugin.  I have tried several times and have failed.  I am sure I am missing something simple.  I am still learning about plugins.  Could you point me to someone that can help me?

Vic

 

Link to comment
Share on other sites

GrimReaper
12 minutes ago, VicMoore said:

@GrimReapercan you help me change the title of this forum?

Sure, Vic, what would you like it changed to? 

Link to comment
Share on other sites

VicMoore

Lets go with @Luke suggestion,  Pseudo TV.  I appreciate your help.

Vic

Link to comment
Share on other sites

GrimReaper
2 minutes ago, VicMoore said:

Lets go with @Luke suggestion,  Pseudo TV.

*Done*

Link to comment
Share on other sites

VicMoore

WOW, you are good.  Thanks so much.  Now I will change the references inside the forum.

Vic

Link to comment
Share on other sites

GrimReaper

Since you're in "Top Contributor" member group, you don't have time limit on editing your posts (Regulars have 3 hrs, Rookies have 15 minutes), just edit first post in any topic you've started and you can append/modify Topic Title as well, as it's considered a part of it. 🍻

Link to comment
Share on other sites

VicMoore

@GrimReaper It's good to learn. Thanks for teaching me. I didn't know this about editing.  Everyday I get a bit better with the forums. Now, I just need to learn how to change the name of a plugin.  I have tried several times and failed. I know it's something that I am leaving out. I am sure when I figure it out, I will feel so stupid.

Vic

Link to comment
Share on other sites

1 hour ago, VicMoore said:

I am OK with any name.  Give me a name and I will use it.  @LukeI am OK with "Pseudo TV" if @softworkzagrees.

The name is all up to you (besides disambiguation issues like mentioned above)...

Personally, I wouldn't use the term "pseudo", but this is probably biased by the common perception of "Pseudo" in German language, where it has a strong negative sub-note in a way like "wannabee", "not the real thing",  and sometimes even used to diss like "he's a pseudo" - whereas in science, it's a clean and neutral term.
I don't really know how this is generally perceived in other countries, so my only advice is: Choose a name that you like, can identify with and makes you happy as a decoration for all the effort you are putting into this. 
And when that is "Pseudo TV", it's totally fine of course :D 

Edited by softworkz
Link to comment
Share on other sites

1 hour ago, VicMoore said:

@softworkzI need help changing the name of the plugin.  I have tried several times and have failed.  I am sure I am missing something simple.  I am still learning about plugins.  Could you point me to someone that can help me?

There's weird mechanism in place which overwrites an existing plugin by its original name when it detects a newer version of a plugin - regardless of the name of the newer plugin dll.

You can work around this by first removing the plugin dll. Then restarting the server, then shutting down again and only then add the new plugin dll. In other words: let the server start once without any version of the plugin.

It's a bit unfortunate to explain this to users, but in your case, the count is pretty small so far, so no big deal I suppose.

The other way is a bit more involved: You would need to:

  • publish an update to the existing plugin (same dll name, same plugin id)
  • this update has code to download and install your new version - which has a different dll name AND a different plugin id
  • after the new one has been installed, a reboot will happen (sooner or later)
  • then, the new plugin will be loaded and the preious one, but the new plugin has code which detects and removes the old version on startup

That's the way how you can cleanly do a "cross-upgrade". Probably not needed in your case, though..

Link to comment
Share on other sites

VicMoore
Posted (edited)

Thanks @softworkzI will give it a try today.  I am changing the code right now to make it much better.  This is all a learning exercise for me, and I am greatly enjoying it.

I lived in Germany for several years working in the IBM research lab near Stuttgart.  I enjoyed my time there. I studied German in school. When I did my Ph.D. work, a second language was a requirement, so I chose German. When I went to Germany many years later it was a complete restart on the language. Unfortunately, I have great difficulty with languages because I have very poor hearing. But I had a fun time trying and the Germans around me were very tolerant. I enjoyed my stay and made many friends. You live in a great country.

Vic

Edited by VicMoore
  • Like 1
Link to comment
Share on other sites

VicMoore
Posted (edited)

Well, I tried again and failed to change the plugin's name from virtualTvExample to PseudoTV.   Attached below is the plugin's code.  I would greatly appreciate anyone with the skill to change the name and then tell me what you did. 

Vic

PseudoTV.zip

Edited by VicMoore
Link to comment
Share on other sites

35 minutes ago, VicMoore said:

failed to change the plugin's name from virtualTvExample to PseudoTV

What exactly did you try and what was the outcome?

Link to comment
Share on other sites

VicMoore

I changed

1) the names of the JS and HTML files in the web directory

2) the solution name

3) the paths, the static name  and the GUID in the plugin.cs file

4) the virtualTvExample items in the paths in the CSPRO file

 

Vic

Link to comment
Share on other sites

Ok, sounds good. But what was the outcome you had expected but didn't happen?

Link to comment
Share on other sites

VicMoore

The plugin appeared in the plugin directory, but when I went to LiveTV and tried to add the PseudoTV tuner it was' not in the pull down list 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...