Just like in this question Embedding a Custom HTML5 Player on Facebook I have built a custom videojs player that I want to embed on facebook, which only accepts flash - .swf to be specific.
Now I am completely oblivious on how flash works, but I just found this repository https://github.com/Bilibili/flv.js, which seems to create a flash player in HTML. Does anybody know, if I can use this to embed my html player on Facebook?
Sorry if that question is a naive question.
(1)
It's not possible to embed a custom HTML5 player. You can embed an custom Flash player only. See my other Answer about embedding Flash-based custom players.
You need a swf file, that means you need a Flash application with code in there to load and play your video files. The swf must be uploaded to your https server.
(2)That Bilibili link is for handling files saved in flv video format (flv means FLash Video fomat).
It just converts (moves) the data to mp4 video format since they both can hold same content & where the mp4 is then decoded by browser (ie: with HTML5, not Flash plugin). That's their meaning of "...Playing Flash video with HTML5"
Related
Is there any javascript library out there that can find the url to the flash video file (.flv) on current page where it has an embedded flash video player? Ex. opens collegehumor.com video link, shows flash video url.
I have been looking through codes from chrome extensions which discovers flash video links for download but no dice.
Browser extensions can look into Flash internals and monitor your HTTP activity to see where data is being pulled from, however Javascript running in the document does not have permission to read either of those.
Some Flash apps expose some of their internals to Javascript, but they need to specifically write in that functionality, and for third parties this would be documented, presumably as an API. As far as I can tell, collegehumor doesn't provide any of that.
I am going to develop a chat based application for mobile which allows video chat. I am using HTML5, javascript and PhoneGap. Using phoneGap, I am able to access mobile camera, capture a video, save the video and upload it in server. I have done it for android. But I need live broadcasting of the video. Is there any solution of that?
Note: It is not any android native app.
You didn't specify what facility you're currently using for the video capture. AFAIK, current WebView doesn't yet support WebRTC which is the w3 standard that will soon enable you to access the video frames in your HTML5 code. So I'm assuming you're using PhoneGap's navigator.device.capture.captureVideo facility.
On Android, captureVideo creates 3gp files. The problem with 3gp is that they cannot be streamed or played while capturing: the MOOV atom of the file is required for parsing the video frames in it, and it is written only after all frames in the file have been encoded. So you must stop the recording before you can make any use of the file.
Your best shot in HTML5 is to implement a loop that captures a short clip (3-5 seconds?) of video, then sends it to a server while the next chunk is being captured. The server will need to concatenate the clips to a single file that can be broadcast with a streaming server. This will add several seconds to the latency of the broadcast, and you are quite likely to suffer from lost frames at the point in the gap between two separate chunk captures. That might be sufficient for some use cases (security cameras, for example).
If your application is such that you cannot afford to lose frames, I see no other option but to implement the video capture and streaming in Java, as a PhoneGap Plugin.
See Spydroid http://code.google.com/p/spydroid-ipcamera/
It uses the solution with the special FileDescriptor you found. Basically they let the video encoder write a .mp4 with H.264 to the special file descriptor that calls your code on write. Then they strip off the MP4 header and turn the H.264 NALUs into RTP packets.
So I'm building a web application, and in part of the application the user should choose an XviD (.avi) video file from his machine, to be played in the browser (without uploading it). I decided to use Flash for this.
Now I have two questions about this:
Which Flash video player is free to use and capable of doing this?
How should I let the user choose a video file, and how can I link the Flash video player to the file?
I think you can't. The Flash plugin don't have enough privileges to access the user's local file system.
I am trying to embed this link into a web player so I can customize it page.
http://asx.abacast.com/996_amman-radio-32.asx
is there anyway to embed it into radio streaming web player?
The link you have posted is to an asx metadata file. These cannot be used as the source for any web player; they are for the Window Media Player to consume.
You could look inside the file. The streaming mount points noted in the file can be used as the source for an embedded Windows Media player, but this solution sucks because it will leave a blank space for platforms the don't support WMP (which is a lot).
If you are not the publisher/owner of this stream, it is generally considered to be bad form to embed it elsewhere.
Is there any way to restrict what types of files the yahoo mediaplayer plays? We don't want it to play flv files but we do want it to play MP3s.
Background
Yahoo provides a really nice browser based mp3 player in the form of a simple javascript include. It will find any link to media file on your web page and adds a nice little player for each file. http://mediaplayer.yahoo.com/
We're using this for MP3 files on our site and it's working great but we also have a flv video file on there that we don't want it to handle as we're using the shadowbox.js to play it. But, the yahoo mediaplayer is also playing the audio from the flv so we're getting the audio doubled. So, we want to somehow set the player to ignore FLVs or only find MP3s.
From the FAQ in the wiki:
"How do I link to some of the audio files in a page but not all?"
Put class="htrack" into the audio files that you want.
Once any audio link has this, any audio link that doesn't have it will be skipped."