vzaar - The professional video platform blog Min vzaar site
vzaar is an online video hosting service with fantastic features that are designed for business. Deliver to mobile or the web straight from your site.
 

Archive for Feature

Take control of your vzaar video player with the JS API

JavaScript code

Here at vzaar, we’ve got a lot of great features, and we’re introducing new ones all the time. Consequently, as head of Customer Support I’m frequently asked “Can I do <insert video feature> on vzaar?”

My favorite answer, of course, is “Yes.”  But second to that is “Not right now, but I’m sure it would be possible  utilizing the JavaScript API.”

Now, that might seem like the second-favorite answer of someone who should get out more, but  in my defense: I love solving problems. So, armed with a  basic command of JavaScript and a cup of strong black coffee, I set myself a few challenges based on real customer feature requests, just to offer a glimpse of what is possible.

 

A Caveat

The JavaScript API is only accessible through the HTML embed code on the vzaar video platform. You will need to set apiOn=true in the player’s flashvar parameters to allow any of this juju magic to happen. Now, on to The Challenges!

 

Challenge 1 – Chapters

We get asked about chapters a lot, and it’s really easy to implement. First off, create some links to represent your chapter names. Then we just have to harness the power of seekTo(timeInSecs) to sniff out those links from their id. Bingo, chapters. Check out the demo!

By the way, if –  like me – you suck at the 60 times table, and you’re longing for the day when time is decimalized, you can always Google “1 hour, 47 minutes and 32 seconds in seconds” to do the math for you.


Challenge 2 – Checking Progress

Maybe you want to display a call to action when the video finishes, or check on how far through the video people are making it. This can be great feedback: if your viewers are never getting past 30% of a video, you’ll probably want to start thinking of ways to keep them more engaged. I would suggest a flamboyant hat, but I’m not in marketing so don’t blame me when it all goes wrong.

In this example I’ve written a function that listens for progress (which is updated every 10%), giving motivational messages at points throughout the video, and a special prize at the end! And don’t worry, it’s only 30 seconds long.
Did I mention the prize?

 

Challenge 3 – Pre-Roll

This example checks when playState() changes to mediaEnded, then I’ve written a JavaScript function to replace the contents of the #video-container div with a new embed code. You could conceivably add on a post-roll using the same method, or even chain many videos together. Here’s a demo of pre-roll in action.

 

Wrapping Up

What I’ve done here only scratches the surface of what’s possible. Here are some ideas, just off the top of my head:

  • A button that lets people skip the next 5 seconds of a video.
  • Use AJAX to keep track in your database of what videos people have watched to the end.
  • A playlist that responds to keyboard shortcuts.
  • A gigantic panic button to mute the sound or load a new video.
  • And who knows what else? The internet is your oyster!

I’ll add that there’s always more than one way to skin a cat (we’re led to believe, anyway. I sincerely hope that no-one has tried). I’m no JavaScript ninja, so there’s undoubtedly a more elegant solution to these problems if you were to use them in production.

And finally, don’t forget to let us know if you come up with a cool use for the JavaScript API. It’ll really come in handy next time I have to say “Not right now, but…”

 

 

Categories Feature, Video Advice
Comments (0)

You may have noticed our new Settings Interface has been redesigned so let me explain how this works. We have introduced more categories within the interface to help you find the exact setting you require faster.

Global settings allows you to make changes to all videos within your vzaar account and all future uploads. Here you can brand your player, change your encoding settings, manage which domains your videos are playable on and much much more! Any changes you decide to make on a per video level will override the global settings for that specific video. Pictured below, is the global settings interface with the Security tab active.

Global Settings

Per Video Settings

Along with the new design and categorization to the global settings interface, you will also see that the Settings tab within your video interface now houses the same interface with selected settings which are available to you on a per video basis – giving you more freedom to customize individual videos.

One of our newest features is our Color Picker. Along with the preset color schemes which have been with vzaar for a long time, you can now create a player based on your own color scheme. The color picker lets your select from a variety of colors, the option to make that color lighter or darker, and, if you’re an advanced user, you can enter your own hexadecimal colour values into the input fields provided.

This is available on both your global settings and individual videos. We are really excited by this new addition and we hope your are too!

Per video settings


We hope you find using our new interface more intuitive, beneficial and easy to use. As we continue to add functionality to our player we will continue to provide you with an easy way to implement this.

We’d love to know your thoughts!

Aaron

Categories Feature, News
Comments (0)

vzaar introduces subtitles

Aaron
article by:

We are proud to announce a helpful new feature this afternoon: subtitles!

Subtitles are a must-have for businesses looking to reach audiences across the globe.  vzaar’s new subtitle feature supports multiple files in various languages, giving your viewers the ability to select their preferred language from the options you provide.

This blog post will guide you through the process of uploading subtitle files to your videos, provide a quick intro on formatting subtitle files, and finishes off with a demo. Without further ado…

Selecting your default language

You may now select a default language for all future uploads under the Settings tab in your account. If all your subtitles will be in Polish, for example, selecting “Polish” from this menu will ensure that language is automatically selected each time you upload a new file.

Uploading subtitle files to your video

As the copy for each video will differ, you won’t upload your subtitle file from your account’s global settings.  Instead, you will upload the file from the management area for the corresponding video.  When in the management view of any given video, you will see an icon labelled ‘Subtitles’. Click on the icon to browse and upload subtitle files directly from your computer.  Note that Polish has been automatically selected as my language, as we set it as my default language in the previous step.

 

Adding more files to your videos

If you’d like to offer a second language option, just follow the same process as before.   The only difference being that you will be required to select a different language, as you may not upload more than one file in the same language. In the screenshot below, note that I now have 2 files uploaded – my default of Polish, and a second, English file.

 

Viewing your subtitles

Once your subtitles have been uploaded, you will see a subtitles icon appear inside your player. If you’ve uploaded more than one file, you will also see a drop down list with language options the user can select. Note: By default, subtitles are turned off. If you intend to use this feature, make sure the label reads ‘Subtitles On’. This only needs to be turned on once, all future videos with subtitles will work straight away.

 

Subtitle file formats

At present, we only support files with the extension .srt (SubRip). You can read more about this here. Below is an example block of code which illustrates how to format your subtitle files.  If uploaded along with a video, the following file would display the words ‘Welcome to my video’ between the seconds of 1 and 4, and ‘on how to make money by using online video’ between the seconds of 5 and 9.

1
00:00:01,000 --> 00:00:04,000
Welcome to my video
2 00:00:05,000 --> 00:00:09,000 on how to make money by using online video

Example of our Subtitles

Lastly, have a look at one of our screencast tutorials with English subtitles turned on:

There we have it! If you have any questions about using subtitles on vzaar, please get in touch!

 

Categories Feature
Comments (0)

Following the release of our video table list earlier this month, we have now added a new video thumbnail panel to the video page. This allows you to access your video list within the video page itself as well as page through them. The result is improved workflow allowing you to customise and publish multiple videos from one panel.

From this panel you can customise your players colour, size and borders and add brand text with links. We also have a list of advanced player controls that you can apply to the player for even greater customisation. See full list of vzaar features.

This is part of our ongoing efforts to improve the vzaar user interface for our users, making it simpler and easier to manage, customise and publish your videos online.

Enjoy and let us know what you think.

Mauricio

video_thumbnails_panel

Categories Feature
Comments (0)

We are pleased to announce a fourth way to view your videos on vzaar – the video list table. This new view will make it easier for customers with large video libraries to manage their assets. See the full list of our video platform features.

  • Up to 100 rows displayed per page
  • More video information such as Frame Size, Duration, Size, etc..
  • Ability to sort table by clicking the headers individually
  • Video preview built in

We hope you’ll like it, we certainly do!

Mauricio

video_list_tabe_view

Categories Feature
Comments (0)