<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 8, 2014 at 12:38 AM, Nitul Datt <span dir="ltr"><<a href="mailto:nitul1991@gmail.com" target="_blank">nitul1991@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Vedant,<br>
<br>
I have fixed all the build errors and updated my diff. I imported some<br>
code from the CueFileSupport class into the CueSheet class in the<br>
collectionscanner. Now I don't have to include any class from /src<br>
into /shared, thereby allowing the collectionscanner to be a unique<br>
identity.<br>
<br>
I tried out the collectionscanner on a cuesheet file and it says that<br>
that the FileTypeResolver does not recognise it as a valid amarok<br>
supported filetype.<br>
The exact output may be found at:<br>
<br>
<a href="http://goo.gl/TyCegT" target="_blank">http://goo.gl/TyCegT</a></blockquote><div><br></div><div>couldn't really understand much of this. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
My implementation idea, as per our previous discussions, is that for<br>
any file with an associated cue sheet, the collectionscanner will<br>
create a CueSheet object with information for each track. This will<br>
then be written out as an xml stream.<br>
The xml stream will then be parsed and invidual tracks with bounded<br>
playback capability will be generated when the file is played.<br>
<br>
The collectionscanner on encountering a file uses the FileTypeResolver<br>
class to check if the given file is supported by the player. It uses<br>
taglib for this. The thing is, taglib, to my knowledge, does not<br>
define a filetype for cue sheet files. What would be the best way<br>
around this?<br></blockquote><div><br></div><div>First check if any updated library has support for CUE sheets. I think there was some other music player's code that you were pirating to implement the feature. See how it does this.</div><div><br></div><div>You probably want to change FileTypeResolver and check whether the file is a CueSheet. If taglib provides the feature, use it (and bump up the dependency version), otherwise skip taglib and use a custom class.</div><div>If you do use a custom class, do not try to code it yourself, as this would be non trivial. Try and find code and copy it.</div><div><br></div><div>Regards,</div><div>Vedant.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Regards,<br>
Nitul Datt<br>
</blockquote></div><br></div></div>