my sister asked me to do smth for her that let me scratch my head: she wants to make a signature text in a forum and wants to add sound to this signature so when her post is shown the sound will play in background together with her text signature.
I'm not sure this could be done in flash? is there a way to have some jpeg image with sound effect? or should it be a video? maybe forums restrict adding a flash doc as a signature?
any ideas to help make my little sister happy ;)
If you have the flash up and running, and you can't upload this swf to the forum as the signature, the only way to manage this is the forum let's you to use some embed code as the signature. Even then you have to find out where to put the swf content.
On the other hand you have to understand, that if a user would be able to attach any "active content" to his/her signature, the user could easily attach some code too, what could be a problem.
Imagine, you are watching a profile and while listening to the music 1000 popups would show up. So no flishy-flashy, no js and no nothing, that would be a security issue.
You can do this in flash, or you can use html5 audio tags.
But forums usually filter out flash embed tags, and probably would do the same with the audio tag, and if the forum your sister posts on doesn't do it, this would certainly cause them to start. Depending on the forum, she could also end up banned, since embedding sound in a page is usually consider very annoying.
For the happiness of your sister, don't do this.
Related
I will admit I'm very unfamiliar with html - I've only really worked with object-oriented programming and not markup languages.
I'm working on audio controls for a website for someone else, I feel like I understand how the control tag itself works, but I cannot make the urls I link or function in audio players. I think it's the because of how I'm uploading the files, but I don't know if a website directly uploads the files. (I've tried using dropbox/google drive, but I don't think I can get the link I would need for that.)
Because of requests from the employer I'm working through go-daddy's iframe and not creating from scratch if that is relevant.
The upper line is my attempt at writing audio controls, the second controls are just an example I've been trying to mimic.
Code in question
I am working a website, and I'm trying to prevent the video file to be downloadable.
I've already prevented the right click function, and I've used a webiste called http://htmlobfuscator.com/ that allows the source code to be very difficult to decipher. The only issue I now have remaining is the inspect element feature on browsers. Does anyone know of any way to prevent this? I know that someone is always going to find a way to download or capture a video, but I'm just trying to limit the spread of my videos.
Thanks for your help,
Stephen
There is no actually way of completely stopping someone, you could however as some have mentioned use something like Vimeo or YouTube to minimize the downloading of your videos, or another way you could do it and have found from personal experience is either creating a login/register on your site to make someone signup to get your video thus minimizing how many can download it or you can encrypt the video with a password, i believe Vimeo has this option which requires someone to enter a password in before even viewing the video.
Yet these are just two ways to Minimize not completely stop.
There is no way to stop a browser's document inspector from finding your file's location. However, I am a recording musician, and I know of a few things you can do to make thieving more difficult.
Put your JS video location in an external file. Not a lot of protection here, but worthwhile enough to add.
Break up the video location into a few different JS variables. Your thief would at least need some basic JavaScript knowledge to get to the video location.
Use an obfuscater, like you did. (I LOVE HTMLObfuscator!)
You could use flash video. This is difficult to download, but slower viewing, and also a bit more difficult to create and host on your website.
The best thing to use is streaming video, but not everyone is able to do that either.
Good luck!
I have a website where people upload swf files. What kinds of harm can be done from allowing this? Is it possible for a swf to redirect to another website? (It looks like someone may have done this already.) What can be done to prevent this aside from "processing" every entry manually?
Off the top of my head things you need to think about when letting anyone upload a swf to your site:
If the SWF can execute JS on your website, all kinds of crazy things could happen. Be sure that you set the allowScriptAccess param to never where you are embedding the SWF.
You may also want to disable the SWF from going into full screen to prevent phishing type scams
You can even disable networking all together from the SWF. However, this would cripple a fair amount of legitimate content.
Watch out for CSRF-like attacks and make sure your site takes the appropriate security measures.
You can review Adobe's article on FP security for a look at some more issues as well.
I am working on a site for a client, and he specifically requested that we tie audio clips of this character speaking to images of said character so that when you click the image of the character, it plays one of his trademark phrases.
In addition to that, some of the images also need to contain a hyperlink, so when you click the image, it plays audio AND links you to another page.
I have been successful in linking the audio to the image, and adding a hyperlink to an image is nothing new, but I cannot for the life of me get them both to work at the same time!
Can anyone help me with this?
Someone else asked this question and was directed to http://jplayer.org/ which is an opensource player with various guides on how to implement it, including various integrated Javascript functions that, I imagine, can be used within an 'onclick' function..
-- The question: Play mp3 file with javascript onClick
Is it possible to make an mp3, that is embedded in a webpage, keep playing from where it left off if the page is reloaded? Perhaps into a cookie or with any other method.
<embed src="track1.mp3"></embed>
For example:
track1.mp3 is embedded in a webpage; it is 3 minutes long. A visitor loads the webpage and listens to the first 1 minute and 25 seconds of the track; then closes the webpage. Can I make track1.mp3 start playing from 1 minute and 25 seconds the next time that person visits the webpage?
I have seen one Flash-based MP3 player providing an approach to do this, with only a minimal disruption when switching between pages, but can't for the life of me find the project with any search term that comes to mind. (The big word was "seamless playback"). Anyway, it was a discontinued project, the last update being sometime in 2006 so it wouldn't probably be much use on the long term.
But nowadays, with every man and their dog having a JavaScript-enabled browser, maybe changing your page's architecture to making it fetch new pages using Ajax is the better approach. It can be made degrade gracefully for non-JS browsers, and would allow for seamless playing without any tricks for JavaScript users (because the page is never reloaded).
See discussion about the pros and cons of the approach here: Why not just using ajax for Page Requests to load the page content?
And some pointers how to get started: JQuery/AJAX: Loading external DIVs using dynamic content
how is it embedded? With just html?...probably not. If you are using Flash, then yes, you could keep track of the bytes, and write to a session or cookie.
You might need to expound on your question a little, ie, what is the process that you are using.
I don't know of anyway to do this other than with Actionscript. I can't think of any Javascript methods that would allow you to access an embedded object like that. My recommendations for this would be to do it with Flash. If you don't have access to it, you can do it with Flex, which the SDK is free to download from Adobe.
HTML5 specifications have some promising new features for handling video and audio. I have not paid that much attention to that portion of it yet. I really don't think you are going to find a quick answer to this one.