How to embed JavaScript to Camtasia 9

  • 1
  • Question
  • Updated 10 months ago

We would like to embed JavaScript to Camtasia 9.
Are there any good solutions?
Photo of s.ohno


  • 5 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Dubie


  • 1675 Posts
  • 1403 Reply Likes
You would have to code it in after production.

Render your project/video with the "Smart Player" and then add you script to the HTML file that is in the production folder created.

For example this code added right before the </body> closing tag will add a self updating copyright at the bottom of the page. You of course you would have to style it  ie; center it, text color, etc. with CSS.

<script type="text/javascript">
  document.write(new Date().getFullYear());
</script> All Rights Reserved

You could also just render your video as a .mp4 without the smart player and embed it into your own HTML5 page  with the <video> </video> tags or in a iframe. Your page should be "Responsive" for mobile use.

Here is a example html5 page using the <video> tags with the copyright script and a magic popup button script.

 Hope that helps

Photo of Jeff Gilbert

Jeff Gilbert

  • 1 Post
  • 0 Reply Likes
Hi Dubie,

If I were attempting to track the number of times that someone viewed the page, how might I go about inserting a view counter using Javascript or HTML? Is it possible?

I've created a series of videos in Camtasia that are being hosted in Confluence, and we are attempting to track the number of views...doesn't need to be unique views. Any data would be helpful.

Thank you!
Photo of Dubie


  • 1675 Posts
  • 1403 Reply Likes
I'm not familiar with Confluence and what can and can't be done or hosted.

If the views are something for your eyes only you might consider using Google Analytics for the page(s).

That will give you views and much more visitor data.

I have used (and still do) a redirect php page that adds any visits to a page and lists them in a .log file

You just name the PHP page relevant to the video or the same as the video name.

You give out a link to the PHP page that collects the hits and sends the person off to the video page.

The hits are added to the .log file that I then view off my server to see how many visits I had to my video/page.

The redirect happens quick and barely if at all noticed.

I can hook you up with that if interested.

If you want a counter on the page that shows how many people have viewed the page

I would probably go with PHP myself.

Though most people don't or even know how can disable Javascript in their browser.
Not a major deal but something to think about.

There are also free option for page counters that make it easy to implement.

Here is a resource for a PHP option.

If you want javascript there are lots of methods online
Google:  how to make a hit counter with javascript

or maybe check this on Google:  add a view counter to a html page

Lots of different options and its a matter of choice of want you need and works for your


Photo of kingkongred123


  • 1 Post
  • 0 Reply Likes
There are several programmers may not able to solve these javascript errors on the Java-based platform. To sort out these issues can take help given by Dart vs Javascript that will provide an actual solution.