2008-10-09, 09:50 PM
One user of the DVB-T Radio plugin is having trouble getting it to work - the original problem (there have been others since ) is that PlayAudioFile() throws an exception when trying to play the buffer mp3 file. From the user's DvbtrServiceMessenger.log...
The relevant code...The playback graph is built and runs correctly and the gbnetradio-X.mp3 file is created and can be played using an external media player.
Drive I: is a local NTFS drive and the folder is the user's normal GB-PVR recordings folder. The OS is Vista but I know of at least two Vista users who don't have problems. What could be the reason for an 'Object reference not set...' exception with PlayAudioFile()?
Cheers,
Brian
Code:
06/10/2008 23:32:09.050 Invoking PlayAudioFile() for I:\Videos\Recordings\gbnetradio-0.mp3
06/10/2008 23:32:09.191 Play2() threw exception: Object reference not set to an instance of an object. at DirectShowPlayerBase.playMusicFile(DirectShowPlayerBase* , Char* filename, HWND__* ownerHwnd)
at NativeUtilities.MediaHelper.playMusicFile(String filename, Form form)
at GBPVRX2.Players.x6a72974b4271f25b.x40e14381fcc044ba(String x2083fea7eed1486c)
at GBPVRX2.Players.xa5ae5b3a73744aae.x826e5d374a1e5ab9(String x8b1d9e3189e6e73d)
at GBPVRX2.xdd215986d9a64c86.PlayAudioFile(String filename)
at BGowland.DvbtrLib.DvbtrClient.Play2(String LCN, Boolean UseLivePlayback) in C:\Documents and Settings\gbpvr\My Documents\Visual Studio 2005\Projects\DVB-T Radio\DvbtrLib\DvbtrClient.cs:line 206
The relevant code...
Code:
if (!UseLivePlayback)
{
Log.WriteLine("Invoking PlayAudioFile() for " + gbRecordingsDir + BufferFile);
PluginHelperFactory.getPluginHelper().PlayAudioFile(gbRecordingsDir + BufferFile);
Log.WriteLine("PlayAudioFile() invoked.");
}
Drive I: is a local NTFS drive and the folder is the user's normal GB-PVR recordings folder. The OS is Vista but I know of at least two Vista users who don't have problems. What could be the reason for an 'Object reference not set...' exception with PlayAudioFile()?
Cheers,
Brian