If possible this need to be done using the WMP interfaces. If it is not possible to get the play time using WMP, then we need to depend on the previous statics. A nightly scheduled process can be used for this. This will update playtime factor in provider properties.
Playtime = (linecount/10)*60
PlayTimeFactor = FileSize/PlayTime
When a new file is added if play time field is zero then a trigger is will
automatically update it to predicted play time and approx line count.
PlayTime = FileSize/PlayTimeFactor
LineCount = (Playtime/60)*10
While File Adding section in stored procedure
collect PlCayTimeFactor from provider list
- Check Play time field is zero If Yes
- Use the above formula to calculate the Line count and PlayTime
- If PlayTime is valid
- Update it
- Calculate line count