Unable to retrieve instance of PPB_AudioEncoder_0_1

14 views
Skip to first unread message

Soeren Balko

unread,
Aug 25, 2016, 1:16:36 AM8/25/16
to Native-Client-Discuss
I have not been able to retrieve an instance of PPB_AudioEncoder_0_1. Doing:

(struct PPB_AudioEncoder_0_1*)(get_browser_interface(PPB_AUDIOENCODER_INTERFACE_0_1));

returns NULL (get_browser_instance is the PPB_GetInterface function that gets passed into PPP_InitializeModule). 

I understand that PNaCl's audio encoding API is in beta, but this seems odd.

Google, anyone?

Thanks heaps for any suggestions,
Soeren
 

Bill Budge

unread,
Aug 26, 2016, 4:37:38 PM8/26/16
to Native-Client-Discuss
You're right that it's a 'Dev' interface, so you normally can't get it in Chrome. However, in developer scenarios, you can expose it by launching Chrome with the a command line flag.

--enable-pepper-testing
Reply all
Reply to author
Forward
0 new messages