Player - Hide the "open in new tab" button

  • 1
  • Idea
  • Updated 1 year ago

The videos I make are private, I don’t want the url to be public. I run the player in a frame so there is no url displayed, I block the right mouse click button, I obfuscate the code so F12 will not show any url or file name, I put a lot of efforts in this and then a small button is ruining my work. A simple click on this button allows opening the video in a new tab so I can see the video URL. It’s annoying; I need a way to hide or replace this “open in a new tab” button.

Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
  • annoyed

Posted 1 year ago

  • 1
Photo of Rick Stone

Rick Stone

  • 4500 Posts
  • 2009 Reply Likes
Hi there

Where exactly are you seeing this button? In Camtasia while editing? Or in the browser after you produce the video?

Share a screen shot perhaps?

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
In the browser while playing the video
Photo of Rick Stone

Rick Stone

  • 4500 Posts
  • 2009 Reply Likes
Hmmm, I suppose it might depend on the browser. Hard to say without seeing what you are seeing, which is why I asked for a screen capture. I'm using Google Chrome and I tested by putting a hotspot in my video. But I'm not seeing any kind of a button as you are describing. 

At this point I can only guess that it's a "browser thang" and if so, you may not be able to overcome it.

I'm aware of software that allows you to upload your video to YouTube, then prevent access from any unauthorized users. Maybe that helps? Unfortunately I can't recall the link to the software. If I find it, I'll post back.

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
I am seeing the button in IE, Chrome and Firefox.  See print screen



Photo of Rick Stone

Rick Stone

  • 4500 Posts
  • 2009 Reply Likes
Ahhh, that would appear to be some special programming? I note that the button appears on a bar labeled "Portail". So I'm thinking you may need to contact whomever is in charge of this. Perhaps corporate IT staff?

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
yes the url of the video is run inside an asp.net application.  Within a Iframe.  The player seems to notice this and replace the "full page" button by "open in new tab" button
(Edited)
Photo of Rick Stone

Rick Stone

  • 4483 Posts
  • 1999 Reply Likes
I'm not sure from your comment whether "the player" you are referring to is you thinking it is somehow related to the Camtasia player. If that's what you are thinking, I'd be shocked to hear that Camtasia player would have any knowledge of your surrounding Iframe. 

Apologies if I'm misunderstanding that. 

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
yes I am talking about the Camtasia player.  When I run the video in the browser  I see the "Full page" button.  When I run the video (same URL) within a iFrame I see the "Open in new tab" button.
Photo of Rick Stone

Rick Stone

  • 4483 Posts
  • 1999 Reply Likes
As it turns out, I'm presently in the midst of compiling all manner of Camtasia videos into  Iframes. And if the Camtasia player were adding funny icons, I would think I would have noticed it long before now.

Check with the folks that manage that portal page. I'd be willing to bet a dollar against a donut that you will find they have the answer.

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
I do manage the portal page!!!
Photo of Rick Stone

Rick Stone

  • 4500 Posts
  • 2009 Reply Likes
Ahhh, okay, I'm not sure why I failed to notice this earlier. I was seeing this:



But for some reason, I just noticed that you are actually referring to THIS:



And if that's the case, I'm so very sorry to have misunderstood!

I have an idea about that. I'll be back after some testing.

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
yes that's right, I am referring to  the button at the bottom right of the camtasia player
Photo of Rick Stone

Rick Stone

  • 4500 Posts
  • 2009 Reply Likes
Okay, when I produce an output I get a similar icon in nearly the same place. But mine simply looks like this:



And I can make it disappear by looking at the underlying files. But I'm not seeing the same icon you are.

Are you by chance hosting this on TechSmith's ScreenCast.com?

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
You are seeing the icon to go full screen.  I can see this icon if I play the video in a browser (by pasting the url of the video in the browser address bar)  But when i play the video (same url) within my asp.net app the full screen button is replaced by a "open in a new tab button"
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
I don't know what is TechSmith's ScreenCast.com,  my videos are hosted on one of our server
(Edited)
Photo of Rick Stone

Rick Stone

  • 4483 Posts
  • 1999 Reply Likes
Okay, so see if this works for you.

Among your output, there should be a folder named skins. And inside that folder should be a folder named remix. Inside the remix folder should be a file named techsmith-smart-player.min.css. Open this file using Windows Notepad.

Perform a search of the file for "expand-button-glyph". 

Following this text you should see a width and a height setting. If memory serves, these were 44px and 22px. Configure the width and height to 0px.

Close and save the file and refresh the page with the Iframe. If it works for you like it is working for me, the icon should now be absent!

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
Rick you are a genious!!!
Photo of Rick Stone

Rick Stone

  • 4483 Posts
  • 1999 Reply Likes
LOL, I wish. But I'm very pleased to have been of some help. It was quite a fun little exercise!

And again, sincere apologies for misunderstanding initially.

Cheers... Rick :)
Photo of mdube

mdube

  • 11 Posts
  • 0 Reply Likes
Well Thanks a lot, your help was greatly appreciated.