Jump to content

MyTV (Beta) - PseudoTV alternative


Recommended Posts

VicMoore
Posted

@NinkoWhile reviewing the log, I noticed that you defined 3 channels, namely, "Comedy","TEMP-954", and "TEMP-2318".  Of these channels only "Comedy" had content. The other two channels had no data.  Is this correct?  I didn't realize that this would disrupt the Emby TV Platform.  I will fix this problem tomorrow.

Vic

Posted

@VicMooreYeah that was a mistake, I wasn't sure what I was doing at the time, still learning the layout of your plugin. 

I'm pretty sure I since deleted the 2 temp channels and tried again and had the same problem (look near the end of the log).

Thanks

VicMoore
Posted (edited)

@NinkoDo you experience this problem with PseudoTV ?    PseudoTV and myTV use the same TV platform.  If it works on pseudoTV it would help me isolate the problem.

When I look at the end of the log, after where you restarted with just 1 channel, the video "2 Point 4 Children" seems to be playing normally. Is this correct? I greatly appreciate your help fixing this problem.

Vic

Edited by VicMoore
VicMoore
Posted (edited)

@Ninkoplease try the plugin below.

VIc

 

Edited by VicMoore
VicMoore
Posted

@JatorI am working on your problem. It just requires a lot of code to do it right. It's something I should have done from the beginning. Thanks for pointing the problem out.

Vic

Posted
2 minutes ago, VicMoore said:

@JatorI am working on your problem. It just requires a lot of code to do it right. It's something I should have done from the beginning. Thanks for pointing the problem out.

Vic

Vic, even a blind squirrel like me occasionally finds a nut.  ;)  

VicMoore
Posted

Funny...🙂

Vic

 

Posted

@VicMooreI've not tried PseudoTV to be honest so I'm not sure. 

No, the app crashed shortly after starting the channel, I noticed it showed in the Emby dashboard that the channel was playing even though it wasn't. Hopefully that makes sense. 

I'll try that new code as soon as I can, thanks.

Would you like me to test PseudoTV when I can too?

VicMoore
Posted

@Ninko Try testing channels that have different content from the videos you have been testing with.  Yes, I see in the log that the Emby Client is playing the video OK, even though it actually crashed. This is strange behavior.  

No don't use pseudoTV.  I want to discover why myTV is crashing first.  I greatly appreciate your help.

Vic

Posted

@VicMooreWill do, as soon as I get chance to test it I'll get back to you. 

Thanks!

VicMoore
Posted (edited)

@Jator When you bring up "myTV" (the dll attached below) you should see in the browsers console the text below.  If the "Local Server" is "true" then the logo menu will display and work properly, otherwise ("Local Server" is "false") the logo menu will not display.  Because of the browsers security model (CORS), you can only add or change Channel Logos while using SSL or when the Emby server is local to the browser. This is why the "Get Image" button did not work for you. I decided not to mitigate this restriction, because Emby offers an easy way to add or change channel logo images. This restriction does not apply to Emby because Emby changes these images via server code, rather than browser code.

Vic

 

image.png.cb1159c03186f527ee8fcd9a2a3e9e5c.png

 

 

Edited by VicMoore
VicMoore
Posted (edited)

The latest code is below.  I corrected a few bugs and changed the "add Logo Images" to display only if the browser supports it.

Vic

 

Edited by VicMoore
Posted

Here's the version I just tested:

image.png.c4c1081bfb04fd4094eb3ebf9c4831f5.png

Here's the console log when I ty and add a logo:

configurationpage?name=mytvappsjs&v=4.8.8.0:1027 === Fetch error =  TypeError: window.showOpenFilePicker is not a function
    at openImageFile (configurationpage?name=mytvappsjs&v=4.8.8.0:1016:50)
    at Object.processTvChannelData (configurationpage?name=mytvappsjs&v=4.8.8.0:970:17)
    at eventCallback (configurationpage?name=mytvconfigjs&v=4.8.8.0:525:30)
    at Object.itemEventCatcher (configurationpage?name=mytvappsjs&v=4.8.8.0:925:52)
    at HTMLDivElement.catchClickEvent (configurationpage?name=mytvconfigjs&v=4.8.8.0:227:18)

 

I'm trying to manage from my laptop on the same network (NAS is 192.168.0.2 and laptop is 192.168.0.250.

Jay

VicMoore
Posted

@JatorThe problem is that your Emby server is not local to your browser.  You can mitigate this problem by getting an SSL certificate for your server or by using a browser from the same server that's hosting Emby. I can fix this problem by adding code to the server (via the plugin) but chose not to because Emby already offers a server-based option for adding channel logos.  I didn't want to replicate their work.

Like you I also use Synology. But instead of hosting Emby within the Synology NAS, I chose to run Emby on a small server that attaches to the Synology Nas. My browser runs from that server.  The CORS security model is very strict. This is a good thing. I hope this helps.

Vic

Posted
6 hours ago, VicMoore said:

@JatorThe problem is that your Emby server is not local to your browser.  You can mitigate this problem by getting an SSL certificate for your server or by using a browser from the same server that's hosting Emby. I can fix this problem by adding code to the server (via the plugin) but chose not to because Emby already offers a server-based option for adding channel logos.  I didn't want to replicate their work.

Like you I also use Synology. But instead of hosting Emby within the Synology NAS, I chose to run Emby on a small server that attaches to the Synology Nas. My browser runs from that server.  The CORS security model is very strict. This is a good thing. I hope this helps.

Vic

Thanks Vic.  I've never explored what it takes to get a SSL certificate up and running.  Seems like this may not be a best case scenario for me unfortunately.  Although buggy, I can get logos to work using VirtualTV Plugin using my laptop to manage my Emby Server on my NAS.  But as I mentioned before, it's not a simple user environment, so there's a tradeoff.

In the end, I'd like to have the best of both worlds (Channels DVR and Emby).  Channels excels at making things user friendly for the end user, such as using a Synology NAS as a self-contained server with all the functionality available, but I really like the flexibility that Emby provides in terms of customization.  I get it, my expectations are too high, but I do appreciate you working with me on your plugin.  I'll revisit it from time to time to see if it's capability and my ability get more closely aligned.  In the meantime, GO GATORS!!!

VicMoore
Posted

Hello @JatorI think with virtualTV you enter in the path of the logo image. He then loads the image from the server.  I did this once with a plugin called channels. I didn't want to do this because Emby lets you add logo images so easily. Give this built in Emby feature a try.

I hope you visit often @Jatorand if you come to gainesville lets have a face to face meeting.

Vic

  • Thanks 1
VicMoore
Posted (edited)

Attached is the latest code.  I made viewing the build process more informative and interesting.

Vic

 

 

Edited by VicMoore
Posted

@VicMooreTested version: 1.0.1.785

Tried 2 different channels this time, the Emby app still crashes after starting the program BUT if I then sign back into Emby on Roku it starts playing straight away without me having to go to it, don't know if that helps at all?

embyserver.txt

Thanks

VicMoore
Posted

@NinkoThat is very interesting.  I will study the log carefully.  I appreciate your help.

Vic

VicMoore
Posted

Below is the latest code.  I fixed a bug in the build epg process when using home-videos.  I also improved the presentation monitoring process.

Vic

myTV.zip myTV.dll

Posted

If I can be of any further help just let me know what you want me to do @VicMoore

Thanks

Posted (edited)

  

4 hours ago, Ninko said:

Tried 2 different channels this time, the Emby app still crashes after starting the program BUT if I then sign back into Emby on Roku it starts playing straight away without me having to go to it, don't know if that helps at all?

The Roku app is crashing? Then when you sign back into the Roku app it just starts to work?

If this is involving the Roku app crashing then we can officially help him resolve those crashes and work with him on this.

@VicMooreI can work with you on fixing this crash on the Roku. Going to install the plugin and set this up. Then try to see if I can get some crashes on the Roku client and see where this occurs. The Roku app should never crash. Even with bad data it should error rather than crash. Will post back once I have this setup and can test. ;)

Edited by speechles
  • Like 2
  • Thanks 2
VicMoore
Posted

@speechlesI would love to work with you on this problem. It's very kind of you to offer.

Vic

VicMoore
Posted

@speechles Emby clients play media from the beginning and may or may not play the next media. When using live TV, media to play is chosen from an EPG schedule, and when you play an item, you must start at the point in time identified by the EPG schedule. To mitigate the problem where Emby clients want to play from the beginning of media. This plugin sends a playlist to the Emby client, and the client starts playing the first program on the playlist. The plugin then listens for the client to send the first "Playing" message to the Emby server. Once this message is received, the plugin sends a "skip ahead" message to the client to cause it to play the currently playing media at the correct current time, according to the EPG.

I am explaining how the plugin works to simplify your understanding about what is happening. If you want further details, I can provide them.

vic

Posted
On 3/11/2025 at 10:38 PM, VicMoore said:

Hello @JatorI think with virtualTV you enter in the path of the logo image. He then loads the image from the server.  I did this once with a plugin called channels. I didn't want to do this because Emby lets you add logo images so easily. Give this built in Emby feature a try.

I hope you visit often @Jatorand if you come to gainesville lets have a face to face meeting.

Vic

@VicMoore, I totally missed that I could manage the logo from the standard channel setup page.  I've been updating several channel logos (I like the retro look, see examples below) and didn't even think to use that feature to include a logo for the myTV channels created.  Full disclosure, Channels DVR doesn't have an easy way to change logos except within the "myTV equivalent" (channel collection in their app), so I was tuned in to "duplicating" how it works over there.  That completely solves my issue and so I'm back.

image.png.bbb6314a1ab19568bfadfb944ed05d7b.png

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...