Media Player/Converter Plugin : Video Processing Status on Embed code

filegasm

Member
YetiShare User
Jul 1, 2015
34
2
6
On /yetishare/plugins/mediaplayer/site/_embed.php how can I check for a condition when the video file is still pending/processing so even if embedded earlier before the video is converted the viewer can be informed that the embedded video is still being encoded.
 

sukhman21

Member
YetiShare User
Jan 26, 2015
508
3
18
as far as i know your video player page does display an alert box above the video saying "The video is being converted....."
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
$queueState = $db->getValue('SELECT status FROM plugin_mediaconverter_queue WHERE file_id = '.$file->id.' LIMIT 1');
$message = '';
if($queueState == 'pending')
{
$message = t('media_converter_item_pending', 'This video is awaiting conversion, please check back again later.');
}
elseif($queueState == 'processing')
{
$message = t('media_converter_item_processing', 'This video is in the process of being converted, please check back again soon.');
}

im not sure how your going to integrate that into the embed code, maybe put it in above or below the embed code
 

filegasm

Member
YetiShare User
Jul 1, 2015
34
2
6
Note that. I'm talking about the embed code, not the video player page.

I'm thinking of displaying it as an overlay in the embed code, similar to FlashX.TV.