Hello again,
and thanks for the quick reply.

Hi,

It's an interesting application that you're having in mind. Let me
make sure I understand, you want to add an english jingle before the
german adverstisement. Or, in the final version, you intend to have
one english prepending and one german one, the Advertisement tag being
put on normal tracks?
No it's not like that. ATM there is one playlist with german advertisement between the regular music tracks. If this advertisement is loaded the script should trigger a function and replace it on the other language mountpoints, so that on each channel the advertisment will be played in the correct language. I figured out that prepend will most likely do the job, even if it's not a real replacement, but to given conventions (advertisements must have the same length) it'll work, because the german playlist will trigger a track switch at the end of its advertisement, which effects all other channels as well. It's possible that we will also implement two other triggers later on, the first of which will fire on a predefined keyword in the metadata and "append" the different advertisements to the language mountpoints, so that the insertion is done on all mounts and not only being a replacement, the second might be a web based trigger mechanism to be more independant in choosing the time of the insertion.

First, the crash that you're seeing is obviously a bug. It seems to me
that it's been fixed -- actually it looks like several bugs we've
worked on, one of them quite recently. Can you check with the latest
SVN version?

I'm now using rev(6874) and experiencing a similar error with my script:

   2009/10/28 10:15:13 [src_5595:3] Candidate to prepending not ready.
   Abort!
   2009/10/28 10:15:13 [src_5595:2] #get_frame didn't add exactly one
   break!
   2009/10/28 10:15:13 [threads:1] Thread "root" aborts with exception
   File "source.ml", line 212, characters 10-16: Assertion failed!
   2009/10/28 10:15:13 [main:3] Shutdown started!
   Thread 4 killed on uncaught exception Assert_failure("source.ml",
   212, 10)

Just change it to the following, so the single(..) operator is created
once and for all, and will have time to get ready once and for all:
jingleSIN = single("...")
def switchto(m)
 ...
         request.queue(interactive=false, queue=[jingleSIN])
 ...
end

You should be able to change jingleSIN = single(..) to a playlist(...)
but you may have to tweak the various parameters that affect the
preparation of tracks in advance (queue_length, conservative,
default_duration). Ask here if you don't find out.

Hope that helps!
--
David
As for your soltution I tried it of course, but it seems that the "queue" parameter requires a "request" and predefining jingleSIN as a "source" genereates a wrong type error. Is there a possibility for typecasts or another workaround.

For now I have settled with a "server.execute(queue.push ...)" construct, which is working fine, but is very ugly to say the least. So if there is a solution to get the prepend working with sources, so that I will be able to use single or playlist it would be great.

Thanks in advance
Marc
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to