home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Using g_player
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jburnette" data-source="post: 176717" data-attributes="member: 24356"><p>I'm trying to use g_player to play music files. This is working fine until I need to stop the file from playing. This works fine when done by clicking a control. The problem, however, comes from when I try to stop it via a timer. From what I can tell, that occurs on a different thread than the user stopping it himself. Is that right and if so, is there some other way for me to go about it? This is the error I'm getting:</p><p></p><p>2007-08-31 14:32:26.781000 [ERROR][12]: Exception <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" />ystem.NullReferenceException: Object reference not set to an instance of an object.</p><p> at MediaPortal.Player.g_Player.CachePlayer()</p><p> at MediaPortal.Player.g_Player.doStop(Boolean keepTimeShifting)</p><p> at MediaPortal.Playlists.PlayListPlayer.FakePlayer.Stop()</p><p></p><p>2007-08-31 14:32:26.781000 [ERROR][12]: Exception :Object reference not set to an instance of an object.</p><p>2007-08-31 14:32:26.782000 [ERROR][12]: site :Void CachePlayer()</p><p>2007-08-31 14:32:26.783000 [ERROR][12]: source :Core</p><p>2007-08-31 14:32:26.783000 [ERROR][12]: stacktrace: at MediaPortal.Player.g_Player.CachePlayer()</p><p></p><p>It all seems to relate to "cacheplayer". I've tried via a playlistplayer and by directly casting and accessing g_player. Any help would be greatly appreciated.</p><p></p><p>Edit: Sorry, a little bit of forum searching goes a long way. I was using a system timer and not a form timer. Found the answer here: <a href="https://forum.team-mediaportal.com/calling_g_player_play_timer_elapsed_event-t504.html" target="_blank">https://forum.team-mediaportal.com/calling_g_player_play_timer_elapsed_event-t504.html</a></p></blockquote><p></p>
[QUOTE="jburnette, post: 176717, member: 24356"] I'm trying to use g_player to play music files. This is working fine until I need to stop the file from playing. This works fine when done by clicking a control. The problem, however, comes from when I try to stop it via a timer. From what I can tell, that occurs on a different thread than the user stopping it himself. Is that right and if so, is there some other way for me to go about it? This is the error I'm getting: 2007-08-31 14:32:26.781000 [ERROR][12]: Exception :System.NullReferenceException: Object reference not set to an instance of an object. at MediaPortal.Player.g_Player.CachePlayer() at MediaPortal.Player.g_Player.doStop(Boolean keepTimeShifting) at MediaPortal.Playlists.PlayListPlayer.FakePlayer.Stop() 2007-08-31 14:32:26.781000 [ERROR][12]: Exception :Object reference not set to an instance of an object. 2007-08-31 14:32:26.782000 [ERROR][12]: site :Void CachePlayer() 2007-08-31 14:32:26.783000 [ERROR][12]: source :Core 2007-08-31 14:32:26.783000 [ERROR][12]: stacktrace: at MediaPortal.Player.g_Player.CachePlayer() It all seems to relate to "cacheplayer". I've tried via a playlistplayer and by directly casting and accessing g_player. Any help would be greatly appreciated. Edit: Sorry, a little bit of forum searching goes a long way. I was using a system timer and not a form timer. Found the answer here: [url]https://forum.team-mediaportal.com/calling_g_player_play_timer_elapsed_event-t504.html[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Using g_player
Contact us
RSS
Top
Bottom