2014-09-14, 23:53
Hey Guys
Looking for a little bit of assistance with a plugin I'm writing please.
In a nut shell:
I have a plugin which resolves a URL and then begins playback of the resolved link.
When the video file is there, this works fine, and everything is good in the world.
However, on occasions when the resolver is unsuccessful (video no longer available etc), I want to be able to run another script/plugin.
I've tried initiating this through an exception, but the problem I have is that even when the file does not exist, the resolver provides the player with a false, unplayable link, which it tries to unsuccessfully play.
Because the player attempts playback, the plugin believes the function to be successful and the exception is missed entirely.
Is there anyone out there more skilled, experienced and intelligent than me that could offer some advice?
Cheers
Looking for a little bit of assistance with a plugin I'm writing please.
In a nut shell:
I have a plugin which resolves a URL and then begins playback of the resolved link.
When the video file is there, this works fine, and everything is good in the world.
However, on occasions when the resolver is unsuccessful (video no longer available etc), I want to be able to run another script/plugin.
I've tried initiating this through an exception, but the problem I have is that even when the file does not exist, the resolver provides the player with a false, unplayable link, which it tries to unsuccessfully play.
Because the player attempts playback, the plugin believes the function to be successful and the exception is missed entirely.
Is there anyone out there more skilled, experienced and intelligent than me that could offer some advice?
Cheers