NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 25 26 27 28 29 … 193 Next »
Request: Possibility to switch Audio Renderer on the fly

 
  • 0 Vote(s) - 0 Average
Request: Possibility to switch Audio Renderer on the fly
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#21
2011-07-08, 03:46 PM
BigMoose Wrote:Since this is a wishlist, I'm going to sound like an ungrateful arse and ask the following...Big Grin Would it be possible to have it stop the playback, apply the new renderer and restart playback without having to go back and restart from the menu? I only ask as the WAF value of pressing a single button to get sound out of the telly would be very high...!

I did think about that, but I'm not entirely sure it's possible. I'll see what I can do though...

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#22
2011-07-09, 02:33 PM
Hmm, semi success so far.

Sub - are you reading? - if so, what's the proper way to stop a playing video?

I've tried PluginHelperFactory.GetPluginHelper().GetPlaybackProxy().Stop() but that doesn't seem to exit things properly, and any attempt to restart the video immediately after calling that doesn't give me the correct resume point (because I don't think it's been stored properly because it's not really been exited).

Weirdly, I could get it to work by doing the following:
1) restart the video while it was still playing
2) read its resume point (which got stored from the exit event generated by 1))
3) restart again, and pass it the resume point

But that seems messy. I think 1) needs to be a proper STOP (and return to menu).

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#23
2011-07-09, 04:23 PM
That is a correct API to call. Its what I use. It will remember the resume point.

Video playback isnt automatically going to resume at the previous position though. Remember in the recordings or video library screens, if the file had previously been played, then it gives the user the option to resume (prior to starting video playback). It then starts playback of the file. If they had asked to resume, then it tells playback to skip to the resume point it had previously read.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#24
2011-07-09, 04:36 PM
Hmm, I must be doing something wrong then.

- I call proxy.Stop().
- The video stops, but the timeline bar remains on a black screen.

If, at this point, I resume the video, it doesn't get the correct playback position for it.

For reference, here's my resuming code, but you've OKed this before in the past.

Code:
Int32 duration = new Int32();
int position = PlaybackPositionHelper.GetPlaybackPosition(path, out duration);
PluginHelperFactory.GetPluginHelper().PlayVideoFile(path);
PluginHelperFactory.GetPluginHelper().GetPlaybackProxy().SetPosition(position);

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#25
2011-07-09, 04:39 PM
Same thing with Live TV. If I call stop(), I just end up with the following:
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#26
2011-07-09, 04:39 PM
I'm not really sure on that one. That is all I'm calling.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#27
2011-07-09, 04:48 PM
Here's a log snippet:

Code:
2011-07-09 17:44:07.665    [DEBUG][1]    OnKeyDown() called: F4
2011-07-09 17:44:07.665    [DEBUG][1]    AudioAdjust: EVENT: PLAYBACK_KEYDOWN - System.Windows.Forms.KeyEventArgs
2011-07-09 17:44:07.665    [DEBUG][1]    AudioAdjust: Calling Proxy.Stop()
2011-07-09 17:44:07.669    [DEBUG][1]    Stopping graph@1
2011-07-09 17:44:07.672    [DEBUG][1]    Stopping graph@2
2011-07-09 17:44:07.699    [DEBUG][1]    Stopping graph@3
2011-07-09 17:44:07.724    [DEBUG][1]    Removing filter  ReClock Audio Renderer
2011-07-09 17:44:07.765    [DEBUG][1]    Removing filter  EVR Renderer
2011-07-09 17:44:07.792    [DEBUG][1]    Removing filter  WMAudio Decoder DMO
2011-07-09 17:44:07.792    [DEBUG][1]    Removing filter  WMVideo Decoder DMO
2011-07-09 17:44:07.792    [DEBUG][1]    Removing filter  C:\Users\Public\Videos\Sample Videos\Wildlife.wmv
2011-07-09 17:44:07.822    [DEBUG][1]    OnKeyDown() done. Took 157.009002685547 ms
2011-07-09 17:44:12.174    [DEBUG][1]    OnKeyDown() called: Escape
2011-07-09 17:44:12.174    [DEBUG][1]    AudioAdjust: EVENT: PLAYBACK_KEYDOWN - System.Windows.Forms.KeyEventArgs
2011-07-09 17:44:12.194    [DEBUG][1]    About to store playback position information
2011-07-09 17:44:12.206    [DEBUG][1]    PlaybackPositionHelper.StorePlaybackPosition(C:\Users\Public\Videos\Sample Videos\Wildlife.wmv, 0, 1)
2011-07-09 17:44:12.367    [DEBUG][1]    AudioAdjust: EVENT: PLAYBACK_STOPPED -
2011-07-09 17:44:12.457    [DEBUG][1]    OnKeyDown() done. Took 283.013397216797 ms

You can see that the PLAYBACK_STOPPED event doesn't happen until I manually intervene by pressing Escape.

I'll try to give it a shot on a different PC and see what happens there.

Iain
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#28
2011-07-09, 06:02 PM
imilne Wrote:I'll try to give it a shot on a different PC and see what happens there.

Exactly the same result. Me be stumped :confused:

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#29
2011-07-09, 06:06 PM
I think I know what is happening, but I dont have an easy fix right now. I'm going to have to think about it. It might need a small interface change, which will mean it'd have to happen with the next release.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#30
2011-07-09, 06:42 PM
sub Wrote:I think I know what is happening, but I dont have an easy fix right now. I'm going to have to think about it. It might need a small interface change, which will mean it'd have to happen with the next release.

Ok, no worries. There's plenty more I can be getting on with in the meantime.

As an aside; is the process for resuming a DVD different? I haven't actually tried it yet, but I've seen references to bookmarks in the log files, and what with menus and so on, I could imagine it being different.

Iain
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Request for XMLTV EPG Export Link or/and File t2t4 3 1,575 2022-11-24, 01:15 PM
Last Post: mvallevand
  Request for a new error message TGinAZ 2 923 2022-11-02, 12:46 AM
Last Post: TGinAZ
  Feature Request: EIT Support, plus Stop and Save Recording. Chris4877 8 1,850 2022-09-12, 12:58 AM
Last Post: mvallevand
  Client Request kirschey 7 1,942 2021-10-05, 11:31 PM
Last Post: sub
  Feature request (recordings calendar view) ThymeJ 1 2,412 2021-09-19, 04:44 AM
Last Post: sub
  v5 missing featuresr request eastavin 3 1,585 2021-01-15, 08:03 PM
Last Post: mvallevand
  Request a Programme Reminder Feature IanC 2 1,488 2020-04-25, 03:06 PM
Last Post: IanC
  Web API Request jcole998 2 1,490 2020-03-24, 05:28 PM
Last Post: jcole998
  minor request. time and date format martint123 3 2,115 2020-03-07, 10:56 PM
Last Post: sub
  Closed Captioning request Rich A 4 2,774 2018-02-22, 07:40 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode