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!)
OnTvRecordingEnded don't send the file name
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="herman" data-source="post: 87195" data-attributes="member: 24495"><p>I found that the OnTvRecordingEnded event does not send back the <RecordingFileName> when the event occurs.</p><p></p><p>The event has the following parameters [CODE]string recordingFilename, TVRecording recording, TVProgram program[/CODE].</p><p></p><p>The reason why the recording file name is not sent on is because the TVCaptureDeviceEX.cs file has the following logical statement:</p><p></p><p> [CODE] public string RecordingFileName</p><p> {</p><p> get</p><p> {</p><p> if (!IsRecording)</p><p> return String.Empty;</p><p> if (_recordedTvObject == null)</p><p> return String.Empty;</p><p> return _recordedTvObject.FileName;</p><p> }</p><p> }[/CODE]</p><p></p><p>When the recording has stopped, IsRecording is false which result in an empty string being returned. I think the recordingFilename parameter is very useful when the recording has stopped and that it only adds more functionality to the code.</p><p></p><p>Will it be possible for someone to change this logical statement in the code? Is there a reason for this behaviour?</p></blockquote><p></p>
[QUOTE="herman, post: 87195, member: 24495"] I found that the OnTvRecordingEnded event does not send back the <RecordingFileName> when the event occurs. The event has the following parameters [CODE]string recordingFilename, TVRecording recording, TVProgram program[/CODE]. The reason why the recording file name is not sent on is because the TVCaptureDeviceEX.cs file has the following logical statement: [CODE] public string RecordingFileName { get { if (!IsRecording) return String.Empty; if (_recordedTvObject == null) return String.Empty; return _recordedTvObject.FileName; } }[/CODE] When the recording has stopped, IsRecording is false which result in an empty string being returned. I think the recordingFilename parameter is very useful when the recording has stopped and that it only adds more functionality to the code. Will it be possible for someone to change this logical statement in the code? Is there a reason for this behaviour? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
OnTvRecordingEnded don't send the file name
Contact us
RSS
Top
Bottom