Apple used to limit our ideas on its platform.
My concern here is how we could addEventListener which trigger on "click" event within QuickTime player using JavaScript.
Suppose we open the video from HTML5 video tag.
For video file you better use embed tag in html5
<embed width="260" height="282" src="'+file location+'" showstatusbar="true" showgotobar="true" showdisplay="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" name="rTuner" AUTOSTART="false"/>
For audio
<embed height="50" width="180" name="plugin" src="'+file location+'" type="audio/x-wav" controls AUTOSTART="false"/>
I have list of video files
$('ul#totalFileList').on('click','.playRecorded',function(){
var lessonName = $(this).attr('id') if(lessonName.contains(".mov") || lessonName.contains(".mp4") || lessonName.contains(".avi") || lessonName.contains(".wmv") || lessonName.contains(".wma"))
{
$('ul#viewOtherFiles').children('li').children('embed').each(function( index ){
$('ul#viewOtherFiles').children('li').children('embed').remove();
});
$(this).after('<embed width="260" height="282" src="'+uploadUrl+lessonName+'" showstatusbar="true" showgotobar="true" showdisplay="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" name="rTuner" AUTOSTART="false"/>');
}
});