You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// configuring paths for Require.js// (you can use CommonJS (Component, Node.js) or simple script tags as well)require.config({paths: {jdataview: 'https://jdataview.github.io/dist/jdataview',jbinary: 'https://unpkg.com/jbinary@2.1.3/dist/browser/jbinary',TAR: 'https://jdataview.github.io/jBinary.Repo/typeSets/tar'// TAR archive typeset}});require(['jbinary','TAR'],function(jBinary,TAR){// loading TAR archive with given typesetjBinary.load('sample.tar',TAR).then(function(jb/* : jBinary */){// read everything using type aliased in TAR['jBinary.all']varfiles=jb.readAll();// do something with files in TAR archive (like rename them to upper case)files.forEach(function(file){file.name=file.name.toUpperCase();});jb.writeAll(files,0);// writing entire content from files arrayjb.saveAs('sample.new.tar');// saving file under given name});});
Advanced demo that shows abilities and performance of jBinary - Apple HTTP Live Streaming player which converts MPEG-TS video chunks from realtime stream to MP4 and plays them immediately one by one while converting few more chunks in background.