How can I embed a audio player into a wix website? - html5-audio

I am trying to add an audio player to my Wix website. I want the audio player to play different files that can change dynamically by changing the url of the audio file.
There are a number of audio players that I could potentially use: https://freefrontend.com/css-music-players/
I am just not sure how to include them.
Which code needs to be included in the HTML iframe in Wix?
Which code needs to be added in the developer console or as a function?
Which files needs to be stored and can I store them on github?
An example of how to do it will really be appreciated.

Related

Source of YouTube video can't be find on HTML

I just wondering how youtube displays the Video on their web app without the tag?
I also want to implement that kind of technique from my other future web apps.
TL;DR
It's because the video is streamed asynchronously, and not loaded at once. In HTML you will only find a player-container, which is a placeholder for the frames to be fed into it.
A bit more
When you click on a video, the metadata of the video loads first (title, description, etc.), then the stream flows through a socket, depending on the settings you have.
If there were a a fixed source in the HTML for which the video is loaded, changing the settings (playback speed, resolution, etc.) would have resulted in a page refresh!
In addition, YouTube prevents un-permissioned video downloads for a while now, another reason why not to provide a direct source to the video blob.

How to stream RTMPT in a webpage

How can I play the link below within an html file?
rtmpt://s4bfl.castup.net/993860018-123.flv?ct=IL&rg=KZ&aid=386&tkn=20130417204452&ts=0&cu=C78D7065-B213-4905-A7E9-73E7994A4443
I know I need an SWF player, but I can't find one that works with this link.
For example, this site lets me stream it in the demo
http://www.ideaweb.it/eng/player.cfm.
but I can't find a way to include it in my website.
You can do it by make an embed of this player http://www.longtailvideo.com/jw-player/ you just need to download the player and upload it to your website and thats it.

Playing audio file in jsp

1) Is there a way in java to stream an audio file from ftp on my jsp page?
2) How can I play an audio file in jsp without audio file being download on client browser (like live stream) - temporary internet files
please help with some code example
Streaming audio from a file does not have anything to do with the JSP itself.
You want to embed your audio file into the page using HTML tags. You can do this directly like:
<embed src="audiofile.mp3">
Or build something a bit more fancy using a Flash movie as an audio player, or find a JavaScript library. Here is a page on how to do it with various methods.
The JSP can provide the audio file name and perhaps other options, but that's all it has to do -- the rest is handled by plain old HTML tags.
You can find more information by searching the Web for the terms "embed" and "audio".
If you're already on HTML5, just use <audio> element, See also the HTML Dog tutorial.
<audio src="file.wav" controls="true" />
If you're not on HTML5 yet, audio in a webbpage is usually to be included by the HTML <embed> element (which uses the platform default player) or the HTML <object> element (wherein you can specify a more specific player for which the webbrowser can eventually automagically download the necessary plugin software).
<object data="file.wav" />
Either way, it should point to an URL which returns the audio stream. This can be just a static file in the public webcontent, next to the JSP file. E.g. http://example.com/context/file.wav. But when the audio file is stored outside the public webcontent or in a database, then you'd like to stream it via a Servlet. Basically just get an InputStream of it (using e.g. FileInputStream) and then write it to the OutputStream of the response along a correct set of response headers.
Noted should be that JSP is irrelevant in this particular question. It's just a view technology providing a template to write HTML in and send it to the webbrowser.
That said, websites which plays audio are generally considered annoying and generally scare off visitors. Keep this in mind if you consider User Experience important.

I would like to know to create a youtube like flash player

I basically want to embed a swf object and then feed different videos to it. Right now, I made a xml driven video player, however, I would have to create a new swf and xml list for each video I want to embed on my site. This is a real drag and pain. What is the procedure to make a universal player like youtube.
FYI: I can't use flow player because it uses java script and I would like the pages I make on my site to be able to share on facebook.
Take a look at an article for the Adobe Open Source Media Framework. Home site here.
How is the player xml based if you have to create a new swf for each video?
You have to simply send the absolute path of the flv at embed time through flashvars.

how to upload videos in html from folder & from youtube and how they will be shown like pictures are shown after doing thumnails

I have one video file inmy system I want it to attach it on my html page.I want same thing with youtube videos also.I want that when i open my html form this video appear as like same as pictures are seen at thumnails.means i dont want only links..I tried stackoverflow links but no one is telling from starting .I am telling u frankly i dont know even making a link of my sytem video file in html form,..I can make links for image,files etc but for video si dont know.So plz guide ..
1.HOw to make a simple link of video file which is in my system drive.
2.HOw this video will be displayed like pictures are displayed at thumbnails
3.How to upload youtube videos(not want only link)...
If you have a video file then you need an image to represent your thumbnail. To create a link that will allow someone to download the video is as simple as:
<a href="url of your video file">
<img src="url of the thumbnail image"/>
</a>
Then the user will see the thumbnail image and when they click on it they will get the video. If you wish to embed the video in a player you can select the player of choice such as FlowPlayer or any of a million others.
You question about you-tube I assume you mean to embed you-tube videos on yout site. If that is the case visit the video on you-tube and there is an embed text box on the page with the code that you must copy and paste into your site.
EDIT:
The FlowPlayer that I linked to (not an endorsement) has a page that describes in great detail how to do what you are asking for here. If you follow each step then you will get exactly what you envision.
Another Edit:
To play a particular file format you need to use an appropriate player. I do not know all the players but you want to make sure that the format you use is popular enough so that users do not have to download special plugins just to see your video.
If you visit the DivX website you will find their embeddable player that can play mkv files on your website. They have a Code Generator that produces the code that you will use to embed the player on your site.
As for various options like starting in pause mode etc you will have to read the documentation of the player that you use to see what options they allow.
you an download ny video from youtube and these videos are in .flv format so why u are taking tension.Just use them frequently.And for youtube videos u do not need to use flowplay just add youtube video url and add object that will be given in that page just above the related video..
But me too do not how to allign it on right side or in middle of the page..Can anybody tell..