I also meet the problem, 2 years past, is any JavaScript API opened for Real player now?