1.0.0 • Published 3 years ago
@bygd/gd-sdk-bridge v1.0.0
//SAMPLE USAGE ON THE PUBLISHER SITE AFTER SCRIPT REFERENCE FOR THIS SCRIPT SET
const bridge = window.GdSDKBridge.bridge;
bridge.onEvent((data)=>{ const {name,source,payload} = data; console.log('publisher listen',{name,source,payload}); switch(name){ case 'tag.atom.request.video': // do something about event with this name // payload: is the data sent by event // name: is the event name // source: is the frame location that sent this event break; }; });
1.0.0
3 years ago