
In this part 2 of the Vidispine Development Toolkit tutorial you will learn how to start using the components, make API calls to the Vidispine API and finally import a file into the repository.
Introduction In this blog post, we are going to set up and configure our project to implement the vdt-vue-components and use few of them to list all storages for our instance, list all importable files for the selected storage and import the selected files from that storage.
All the components that we are going to create should be located in [my-project]/src/components. Default welcome page that is visible when we have just set up the VDT is named VidispineVersion.vue and can be used as a learning reference.
All code can be found in the companion Github repo howto-build-vdt-applications. If you haven't set up your system yet, head over to part 1 of the tutorial.
This blog post
Clone vdt-vue-components repository
Configure our project to use vdt-vue-components
List all Vidispine Instance Storages and files from each storage
List all files from the selected Storage
Add new vdt-vue-component to our custom component to list files
Import the selected file(s) to Vidispine Instance
Vdt-vue-components focused on VdtList.
Clone vdt-vue-components repository. Navigate to our VDT project root folder:
$ cd /VDT Clone the vdt-vue-components repository, this will create a folder for you.
$ git clone git@github.com:vidispine/vdt-vue-components.git Quick Reference:
https://github.com/vidispine/vdt-vue-components
Configure our project to use vdt-vue-components. Navigate to the previously cloned repository folder:
$ cd /VDT/vdt-vue-components/ Create components link. You should see output in terminal that says -> success Registered @vidispine/vdt-vue-components . Run the following command to create a link:
$ yarn link Navigate to our project which is my-project
$ cd /VDT/my-project Link the components to our project with the registration ID we got in the previous step:
$ yarn link @vidispine/vdt-vue-components Optional cherry on top :
To get immediate page refresh when saving document, ESLint checking and other goodies.
In new terminal, change to vdt-vue-components directory, Run the following command to install all the dependencies:
$ cd /VDT/vdt-vue-components/ $ yarn install Run one of the following watch commands to build on save
Any modern app running ES6 or later:
$ yarn watch Non ES6 projects
$ yarn watch-umd Additionally you can run tests to double check if everything is running as is should
$ yarn test Building the application Create a new file in src/components' and name it Import.vue. Leave it for now and instead head into the router' folder and open the index.js file within. Import the newly created Import.vue and create a new object within routes', this will enable you to navigate to http://localhost:4000/import'. Then, head into the assets' folder and then scss' to find base.scss'. Open it and add a new import, enabling the stylesheet for the VDT components.
In index.js, add the following import:
import Import from ../components/Import.vue; and the following route:
{ path: /import, name: import, component: Import, } In base.scss :
@import @vidispine/vdt-vue-components/es/index.css; Head back into the newly created Import.vue'. The API calls used to import files from select storages are handled in functions imported to the application, in this case, three different functions and one dependency are imported and used. Initially, the storages have to be retrieved and made available to use in the application, and from these files has to be retrieved in turn. All imports are placed at the very top inside the script tags, let's go ahead and import these first to functions to enable them in the application.
These imports can then be called upon inside the application itself. to simplify things, we can create three empty arrays inside a data function, to in turn store the response received from the API calls, for example files, hits, and storages. Following that, the storage retrieval can be called upon and its response stores in the newly created storages' array. With a storage identified and selected, retrieving files from it is done in a similar manner, although the API call for retrieving files requires the ID of a storage.
Most recent headlines
21/02/2025
A new study suggests that the 50th season of Saturday Night Live is proving to be a major financial success for NBCUniversal's Peacock, generating an esti...
21/02/2025
Calrec expands its flexible production model at NAB 2025 with True Control 2.0, ...
21/02/2025
Rossetto Supermarket Ad Campaign Shot on Blackmagic PYXIS 6K
Brie Clayton February 20, 2025
0 Comments
Campaign brings dreamlike visuals to life throu...
21/02/2025
Corbel 3D and Pixel Light Effects' Leap to Simple, Fast File Transfer
Brie Clayton February 20, 2025
0 Comments
The Setting Corbel 3D, located in ...
21/02/2025
Alum TK Johnson Backs Bartees Strange for a Tiny Desk Instant Classic The drummer has been playing with Bartees since 2022, and also appeared on Jimmy Kimmel ...
20/02/2025
Ever since Spotify and FC Barcelona forged a first-of-its kind partnership three...
20/02/2025
As Spotify continues to roll out audiobooks to new listeners worldwide, we're committed to providing authors with tools that help them reach those listeners...
20/02/2025
The amount of broadcasters worldwide using artificial intelligence (AI) has more than doubled over the last 12 months, with 25% now employing the technology....
20/02/2025
BOSTON New England sports fans nationwide will now have a new FAST channel bringing them news, insight and live programming covering its major league and colleg...
20/02/2025
MELVILLE, N.Y. Chyron today launched its 2025 Designer of the Year Competition and said the winner will be announced live at the 2025 NAB Show, April 5-9, at th...
20/02/2025
LONDON Sports entertainment platform DAZN said the second season of NFL Game Pass on DAZN saw significant growth, with paid subscribers growing by 23% year-over...
20/02/2025
Stuart Barnes, Yospaces VP international business development, explains the importance of getting stuck in when part of the media tech industry
By Matthew Corr...
20/02/2025
Broadcast techs saw a 25% boost in their pay in 2024, according to annual survey
By Tom Butts
Published: February 20, 2025
Broadcast techs saw a 25% boost...
20/02/2025
WASHINGTON The 2025 NAB Show, April 5-9, at the Las Vegas Convention Center will mark the debut of the Business of Entertainment track developed with The Ankler...
20/02/2025
TYSONS, Va. Tegna Inc. has announced that news veteran Adrienne Roark has been named chief content officer reporting to CEO Mike Steib, effective March 31....
20/02/2025
BIRMINGHAM, Ala. Roku has further expanded its sports content with a new media rights deal with Bassmaster that will make Roku the streaming hub for Bassmaster ...
20/02/2025
WASHINGTON National Association of Broadcasters (NAB) President and CEO Curtis LeGeyt opened The Media Institute's 2025 Communications Forum series with a s...
20/02/2025
The Belonging Co., a Nashville-based church renowned for its dynamic worship experiences and multimedia-rich conferences, tapped DigitalGlue's creative.spac...
20/02/2025
Mediahuis Radio continues its expansion with the completion of a new production facility in Amsterdam. DHD RX2 and DX2 audio mixers connected to XD3 Cores form ...
20/02/2025
At NAB 2025, Calrec is introducing a suite of new interconnected products and updates aiming to help broadcasters meet a variety of challenges. With increased c...
20/02/2025
Keepit, the world's only independent vendor of cloud backup and recovery solutions designed to protect SaaS data, today announced a remarkable year of growt...
20/02/2025
Expanded SMPTE ST 2110 support strengthens lip-sync and latency measurement solutions
Hitomi Broadcast, the market leader in audio/video alignment and latency ...
20/02/2025
LiveU, a leader in live IP-video and remote production solutions, today announced the successful implementation of its comprehensive IP remote production soluti...
20/02/2025
MainConcept, a leading provider of video and audio codecs, has announced a partnership with cloud playout solutions provider, Veset, to integrate its JPEG XS SD...
20/02/2025
OOONA, a leading provider of professional management and production tools for the media localization industry, announces the launch of On Stage, a free-to-acces...
20/02/2025
18 02 2025 - Media release Feisty Feminist Murder Mystery He Had It Coming Announced
Stars of He Had It Coming, Lydia West, Natasha Liu Bordizzo and Liv Hewso...
20/02/2025
18 02 2025 - Media release Screen Australia and Stan Announce New Comedy-Horror Series Gnomes
Gnomes writers Tegan Higginbotham and Paul Verhoeven, and creato...
20/02/2025
Do I Know You From Somewhere? Shot with URSA Mini Pro 12K
Brie Clayton February 19, 2025
0 Comments
Canadian indie film uses Blackmagic camera to crea...
20/02/2025
Berklee Ensemble for Musicians with Disabilities Is Stronger for Our Differences Associate Professor Adrian Anantawan, who founded Berklee's Music Inclusi...
20/02/2025
Ottawa, Canada - February 20, 2025 - Ross Video, your most trusted partner in live video production solutions, is excited to announce our participation at the 2...
20/02/2025
Shure Establishes Wireless Microphone Spectrum Alliance By SVG Staff
Thursday, February 20, 2025 - 7:30 am
Print This Story | Subscribe
Story Highlights...
20/02/2025
Behind the Broadcast Booth Episode 1: Curtis Symonds of HBCUGO Shares His Journe...
20/02/2025
Twists and turns: How technology helped to tell the story of the European Luge C...
20/02/2025
SVG New Sponsor Spotlight: AudioShake's Suzanne Kirkland Shares How AI Is Ma...
20/02/2025
Planning process: Behind the broadcast scenes of the inaugural World Athletics U...
20/02/2025
NHL 4 Nations Face-Off Championship Game Has All the Makings of a Game 7 for ESP...
20/02/2025
Rohde & Schwarz successfully validates ML-enhanced channel-state information fee...
20/02/2025
Wuppertal February 20, 2025
Riedel Introduces Breakthrough Communication Capab...
20/02/2025
Back to All News
Meet the Singles From the Upcoming Season of Love is Blind: Sweden
Entertainment
20 February 2025
GlobalDenmarkNorwaySweden
Link copied to...
20/02/2025
Back to All News
Jisoo and Seo In-guk Star in Boyfriend on Demand' (WT), A...
20/02/2025
Back to All News
Ted Sarandos Keynote: Mexico's Presidency Press Conference
President Claudia Sheinbaum & Ted Sarandos
Ted Sarandos
co-CEO
Business
20...
20/02/2025
Comscore Expands YouTube CTV Viewership Measurement to International MarketsCross-Platform Content Consumption Metrics Now Available in Canada, France, Spain, a...
20/02/2025
American Sign Language is the third most prevalent language in the United States...
20/02/2025
Facebook
Twitter
LinkedIn
February 18, 2025 - Abu Dhabi, UAE: Milrem Robot...
20/02/2025
Celebrating 20 Years of the RT Choice Music Prize
RT Choice Music Prize
In association with IMRO and IRMA
Classic Irish Album
And the winning album is
W...
20/02/2025
The NVIDIA GeForce RTX 5070 Ti graphics cards - built on the NVIDIA Blackwell ar...
20/02/2025
Editor's note: This post is part of Into the Omniverse, a series focused on ...
20/02/2025
Wield magic and steel as GeForce NOW's fifth-anniversary celebration summons Obsidian Entertainment's highly anticipated Avowed to the cloud.
This firs...
19/02/2025
For more than a decade, Tyler, The Creator has blazed his own trail, exploring unique aesthetics across music, fashion, and art. Now he's bringing his signa...
19/02/2025
Spotify Singles, our longest-running original recorded music franchise, has officially surpassed 10 billion collective streams worldwide. That's a whole lot...