@bygd/gd-sdk-bridge

1.0.0 • Public • Published

//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; }; });

/@bygd/gd-sdk-bridge/

    Package Sidebar

    Install

    npm i @bygd/gd-sdk-bridge

    Weekly Downloads

    12

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    179 kB

    Total Files

    9

    Last publish

    Collaborators

    • gboyraz
    • serdar986
    • serdark