I found, eventually its best to introduce a Thread to handle the Pause and enable VideoBuffer to stay intact.
Its much more reliable and tested working here. Apologies again for not completing a PR and Merging that way.
The new thread code is below, within TvHome.cs:
static void...
The 5 second Sleep() is deliberate to give the user an audible 'snapshot' of the Channel Change in case the user is grabbing a coffee. :)
But, now I note the buffer gets reset. I'm losing hair at a rate here. o_O
I'm very sorry I have not done a GIT Merge etc. I'm posting the code that now works here, for my reference too.
Code Vector: TvHome.cs:1835.
case GUIMessage.MessageType.GUI_MSG_NOTIFY_TV_PROGRAM:
{
bool isPaused = g_Player.Paused...
Good news. The buffer is now preserved on Channel Change.
Now I just need to maintain pause in case a Programme is Paused on change.
Progress is ours :)
Stop the presses !
I made a mistake. I need to rebuild the plugin at v 1.38.1 and not 1.38.3 as I have done.
I'll get to it and report back.
Thank you !!!!
Here is the code from TvHome.cs.
Unfortunately it neither preserves Pause(), or keeps the buffer in-tact.
Can someone please explain why at all ?
if (tvNotifyDlg.IsConfirmed)
{
try
{
//MediaPortal.Player.g_Player.Stop()...
Hi Folks, just confirming I may dust off the old .NET IDE and submit a patch for this to leave the buffer in-tact and to also preserve 'Pause' as programs switch. It was intended to be that way in the beginning.
Hello Folks,
Is it possible to enable MP to resume in an External Player, where it left off ?
I guess the question also is, can and does MP supply flags to a specific time in the External Player options ?
The use-case:
I have VLC in kiosk mode to play more of the files I have and it works...
Hello MediaPortalans...
When I first developed this I left the TV Buffer in tact, so people could go back in time to previous switched-from channels.
However, I notice the merged version resets the buffer.. boohoo.
Is it possible to effect a small change to trust the buffer and leave it...
There is a solution to this problem, highlighted on Stack Exchange for a different product.
https://stackoverflow.com/questions/6098646/object-cannot-be-cast-from-dbnull-to-other-types
Its to detect the null field / data and cast to a concrete type, as shown in the solution above.
I'll refrain...