Hello, I would love to provide support, but your description is not clear to understand when and what kind of problem you are experiencing. Please provide more information.
I am not sure what you are saying exactly. ‘parse_attributes’ is a function called within callback function ‘hana_flv_callback’ in hana-flv-player.php.
If [hana-flv-player] short code does not work properly , please provide your short code here, so I can take a look.
Bye.
parse_attributes function is not returning anything and thus getting error message video attribute not specified,
my short-code looks like this:
[hana-flv-player video=”http://localhost/wp-content/uploads/2012/07/xscr-mega.flv” width=”605″ height=”340″ description=”” player=”5″ autoload=”false” autoplay=”false” loop=”false” autorewind=”true” /]
I also noticed that wysiwyg add
s and <p> tags when we use hana-button there, though I also tried by removed those tags manually.
I tried with commenting call of parse_attribures function and i.e. using attribute without parsing and it’s working, however I am afraid it might break.
any suggestion, please?
and hope it’s clear this time.
thanks
Are you getting the below error message?
“video” attribute is missing for the video file’s URL
I tried your short code myself, but everything is working OK.
It maybe has to do something with your PHP version of your localhost.
Try again with only video attribute.
[hana-flv-player video="http://localhost/wp-content/uploads/2012/07/xscr-mega.flv" /]
And if you are testing with hana-flv-player.php file directly, uncomment below line 1505 ~ 1507 and try to see if $attr values are parsed correctly.
//print "<pre>";
//print_r($attr);
//print "</pre>";
If it does not print out any attributes, I can only assume that ‘preg_match_all’ PHP system function behaves differently.