Adding subtitle functionality to my custom flv player
Hey all,
I have a custom flv player and i'm slowly adding more functionality to it as I go along but i've hit a wall.
I want to add a subtitle button that toggles between show/hide. I've seen on the internet that the best way is to use an XML file (holding the script, times etc.), which I have no problem writing.
I'm having problems trying to replicate the 'FLVPlaybackCaptioning' component (in Flash CS3) in to my custom flv player. I.E. Adding the right actionscript to my toggle button.
Can anybody help me as I just can't find anything on the internet.
Any advice is welcome!
Thanks
egr103
Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
Ideally I would like to use an XML file to do the subtitles. Any ideas?
Similar Messages
-
Best approach to dynamic custom flv player
I am currently working on a custom flash player. After
working on several working versions where I simply used
actionscript to delegate the actions of my custom player.
I am now working on a more dynamic ready flashplayer that
will need to be embeddable. Should I make a .swf specificaly for
the player using the flash player SkinFLA examples as an outline?
The idea is to have a player that embeds like youtube, any
suggestions or tutorials to look over? Also, this player needs to
have playlist functionality, but it needs to be able to scope to
anyone. I could have users register and then create an XML that
references their playlist, but it seems like there may be better
options. Just looking for some discussion and debate over player
best-practices....Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
Ideally I would like to use an XML file to do the subtitles. Any ideas? -
Dear all
I have created a custom FLV player and i would like to embed
it into our web site. The problem I have is I want it to be
dynamic. So I can link lots of videos to it rather than export just
one movie with the player from flash and embed that each time into
the website. I want the player as a permanent entity and then link
to it via a database with a list of FLV videos. I know about
Flashvars and creating those variables in the javascript file but I
want to know do I need to or can I type a query into the source
field in the parameters of the .fla file to link to a database full
of the videos. Rather than place in that source field the name of
one .flv movie. Thats where I am stuck. I am pretty new to flash. I
am using progressive download by the way.
Our website is coded with classic ASP/CSS and we use access
for databases.
Many thanks
RobThanks so much for your help, I am probably going to sound
thick but how would I get flash to read the xml, I guess I would do
it with actionscript but do you have any pointers or tutorials you
know of where it involves asp and a database etc.
Cheers -
Custom FLV Player is Killing me. . .
Hi All
Right, where do i start - i have just spent the last 3
months learning HTML and CSS for a website that i run. We are a
video production company, and we need to have a bank of videos that
will be updated on an almost weekly basis.
I want to use some sort of flash video set up, where the main
video plays and there is a slideshow of other videos below -
wrapped up in a XML file.
BUT - I can't find any up to date tutorials on making your
own FLV player that is compatible with XML style lists. When i say
make my own FLV player, i mean i have made a skin in PS and
imported it to Flash. I can import a video that is Actionscript
controlled - but from there, all the tutorials i come across seem
to use old code that CS3 doesn't understand.
This is a big question - but any ideas?
Thanks
JPthewakeplace.com wrote:
> Hi All
>
> Right, where do i start - i have just spent the last 3
months learning HTML
> and CSS for a website that i run. We are a video
production company, and we
> need to have a bank of videos that will be updated on an
almost weekly basis.
> I want to use some sort of flash video set up, where the
main video plays and
> there is a slideshow of other videos below - wrapped up
in a XML file.
>
> BUT - I can't find any up to date tutorials on making
your own FLV player that
> is compatible with XML style lists. When i say make my
own FLV player, i mean i
> have made a skin in PS and imported it to Flash. I can
import a video that is
> Actionscript controlled - but from there, all the
tutorials i come across seem
> to use old code that CS3 doesn't understand.
>
Just set the export to Flash 8 AS 2.0 version and you will be
set. All the flv players
will work for you.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Adding Inventory functionality to a custom Order Management Menu
We have custom menus set up to limit access for users. We currently have a user that needs the 'Move Order' functionality from the Inventory module. This user does not have access to any inventory functionality. I would like to add the 'Move Order' submenu to a custom order management menu she does have access to. Would this work as anticiipated or would this introduce issues in one or both modules? Thanks.
Hi,
There should be no issue if you add the proper submenu. You may also need to add some functions which could be relevant to this submenu for accessing it properly from the custom responsibility.
I would suggest you try this on test instance first, then move it to your production environment.
Regards,
Hussein -
Custom flv player works great except for Scrubber (F*)
Everything works great except when I click the loadbar,
instead of operating my scrubber script it just stops. Can anyone
see a problem with this code? Must be a typo somewhere but I can't
find it! Scrubber code at bottom.
//-------NETCONNTCTION SETUP--------------
var nc:NetConnection = new NetConnection();
nc.connect(null);
//-------NETSTREAM SETUP--------------
var ns:NetStream = new NetStream(nc);
ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Start") {
progressBar.onEnterFrame = videoUpdate;
if(info.code == "NetStream.Play.Stop") {
delete progressBar.onEnterFrame;
ns.onMetaData = function(info) {
ns.duration = info.duration;
//-------ATTACHING NETSTREAM--------------
video.attachVideo(ns);
//-------PLAYING EXTERNAL FLV--------------
ns.play("curse.flv");
//-------REWIND BUTTON--------------
rewind.onRelease = function() {
ns.seek(0);
//-------PLAY PAUSE TOGGLE--------------
playPause.onRollOver = function() {
if(this._currentframe == 1) {
this.gotoAndStop("pauseOver");
else {
this.gotoAndStop("playOver");
playPause.onRollOut = function() {
if(this._currentframe == 10) {
this.gotoAndStop("pause");
else {
this.gotoAndStop("play");
playPause.onRelease = function() {
if(this._currentframe == 10) {
this.gotoAndStop("playOver");
ns.pause(true);
else {
this.gotoAndStop("pauseOver");
ns.pause(false);
//-------LOADBAR--------------
loadbar.onEnterFrame = function() {
this._xscale = (ns.bytesLoaded/ns.bytesTotal)*100;
if(this._xscale == 100) {
delete this.onEnterFrame;
//-------VIDEO UPDATE--------------
function videoUpdate() {
progressBar._xscale = (ns.time/ns.duration)*100;
//-------VIDEO SCRUBBER--------------
loadbar.onPress = function() {
progressBar.onEnterFrame = videoScrub;
loadbar.onRelease = loadbar.onReleaseOutside = function() {
progressBar.onEnterFrame = videoUpdate;
function videoScrub() {
var dist:Number = (_root._xmouse-loadbar._x)/loadbar._width;
ns.seek(Math.floor(ns.duration*dist));
progressBar._xscale = (ns.time/ns.duration)*100;
}Check the enclosed .AppleDouble folder and files. If that doesn't help, stop netatalk, delete the volumes CNID databases and restart.
Cheers! -
Update customer adding partner functions (KNVP)
Hi,
I need to insert new partner functions in a customer. I have been looking for a BAPI but it does not exist. Here in the forum I have seen some threads saying you can use SD_CUSTOMER_MAINTAIN_ALL but there are other threads saying you have to do a BDC because SD_CUSTOMER_MAINTAIN_ALL have not to be used for that at all.
Do you know the good way to do that?
Regards,
ManelHi,
We did that via batch input. No BAPI was found.
We used VD02 transaction so save a recording via SM35 transaction and use the code returned
Regards,
Manel -
Playing SWF files in FLV Player
Hi,
I would like to know whether swf files can play in an FLV Player or not. If not possible, is there any option for developing an independent swf player. If so, please tell me the technique that can be used to develop swf player.
Regards,
Sreelash.Thank for your reply friend. I understood what u said. Actually the requirement for the client is to stream swf file as streaming flv file. So I think, in the server side we have to use converter. I meant, if the client put the swf files in the server, the server side program calls the converter before streaming to the client side.
The functionality what I meant is following:
1) The client request for an swf file.
2) In the server side, it is placed as swf files.
3) Then, programmatically the server side code invokes the converter and convert the swf file to flv file before streaming.
4) This is what I meant the use of converter.
I hope you understood what I meant. Can I have your mail id please. Because in forum not everyone reply for the doubts. Also I am the only action script programmer in my company and I have only 5 months experience. My mail id is [email protected]
Thanks and Regards,
Sreelash.S. -
Has anyone actually been able to build a FLV player with Flex 2?
I have been playing around with a FLV player in Flex 2, but I
keep on running into one big problem: I never get a picture. Sound
is not a problem, and all code seems to do exactly what it should.
Except for the video showing up... I have tried loads of examples,
read all of the docs I could get my hands on, but it all ends the
same: no picture.
The best solution (imho) I found is listed below, but still
it does not do what it is supposed to do. Still, I only get audio.
If there's anyone who's got a player working with the Video
object using Flex 2 (SDK), I would *love* to hear your solution.
Michiel.
The source:
package Assets {
import flash.display.Sprite;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.media.Video;
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.events.NetStatusEvent;
import flash.utils.Timer;
public class simpleFlv extends Sprite{
private var _video:Video;
private var _stream:NetStream;
private var _playbackTime:TextField;
private var _duration:uint;
private var _timer:Timer;
public function simpleFlv(){
_duration = 0;
_playbackTime = new TextField();
_playbackTime.autoSize = TextFieldAutoSize.LEFT;
_playbackTime.y = 20;
_playbackTime.x = 20;
_playbackTime.text = "Buffering …";
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, onTimer);
_timer.start();
public function playMyFlv(flvUrl:String): void {
_video = new Video();
var connection:NetConnection = new NetConnection();
connection.connect(null);
_stream = new NetStream(connection);
_stream.play(flvUrl);
var Client:Object = new Object();
Client.onMetaData = onMetaData;
_stream.client = Client;
_video.attachNetStream(_stream);
_stream.addEventListener(NetStatusEvent.NET_STATUS,
onNetStatus);
addChild(_video);
addChild(_playbackTime);
private function onMetaData(data:Object): void {
_duration = data.duration;
private function onNetStatus(e:NetStatusEvent): void {
_video.width = _video.videoWidth;
_video.height = _video.videoHeight;
private function onTimer(t:TimerEvent): void {
if( _duration > 0 && _stream.time > 0 ){
_playbackTime.text = Math.round(_stream.time) + " / " +
Math.round(_duration);
}Hi Chielosos,
In your code, after
import flash.utils.Timer;
You may need to add
NetConnection.defaultObjectEncoding =
flash.net.ObjectEncoding.AMF0;
SharedObject.defaultObjectEncoding =
flash.net.ObjectEncoding.AMF0;
Hope it works,
Jeffrey -
I am a newbie. I am trying to configure SD on my IDES.
I am at the point of adding partner function (Z9) to the partner procedure (ZAG)
but I am getting an error message:
"Partner function Z9 cannot be used for partner procedures"
I cannot find the answer in google. please help.
[click for image|http://i1181.photobucket.com/albums/x421/darkmatter1/196235/pfunction.jpg]Hi Anwar,
Please check the parner function-account group and partner determination procedure-account groups are assigned properly or not from
SD >> basic functions >> partner determination >> set up partner determination >> Set Up Partner Determination for Customer Master,sales doc. header etc. which type partner determination you want to maintain if you want to maintain them for customer.
In that screen, you need to maintain (Z9) to the partner procedure (ZAG) after doing Partner Determination Procedure Assignment and Account Groups - Function Assignment.
I hope these will solve your problem.
Regards, -
I use Sorenson to create the FLV files... and it allows you
to create SWF templates to play and stop the files... But the
tutorial I got didnt work and most of the var names where wrong...
I don’t care if I make it that way or not...
What I really want is to be able to create a custom looking
flv player... one that streams the flv files... can anyone help..
Does anyone have one I could look through and figure out?...
Thanks for your help!Read this
http://www.flashjester.com/?section=faq&cPath=14_53#385
and also look here
http://www.flashloaded.com/flashcomponents/flvplayerpro/
Regards
FlashJester Support Team
e. - [email protected]
w. -
http://www.flashjester.com
There is a very fine line between "hobby" and
"mental illness." -
FLV player component. Open Source/commercial options?
I'm returning to a project I've had on hold for a bit. We're
now receiving
.flv files from our video team and we need to displaying them
on our site.
Can anyone recommend some Flash FLV player components? Open
source
preferred, but commercial or freeware would be OK too if
highly recommended.
I've looked at OSFLV but that appears to require PHP back end
scripts. Our
site is ASP.net so likely wouldn't work.
Ideally, it'd be a player that we could passe the FLV info to
via the HTML
(so that we could incorporate the embed markup automatically
via our CMS
back end).
-DarrelOn Wed, 20 Feb 2008 08:23:33 -0600, "darrel"
<[email protected]>
wrote:
>I don't have flash. Hence me not having the built-in
player.
>
>I could get flash, but we don't really do any flash
production here. All FLV
>files come to use from outside, they're then hosted on an
outside server,
>and we just need to add a player to our web site to show
them.
I beleave first of all you must decide how will you show your
videos.
Do you have FMS? Or is webserver the only you have for your
site? If
you don't have FMS and don't like to buy its license, then
the only
possible way is to use HTTP Streaming or simple progressive
download.
And you must seek for a player depending on your choice of
the video
delivery method. HTTP Streaming is a great choice if you
haven't FMS.
Though you need some scripting language/database engine at
your web
server and some custom SWF (Flash FLV Player). Standard UI
components
like FLVPlayback will not work with HTTP Streaming. Though it
is not
so dificult to create such player using any Flash MX version
>= 7.
You can find some brief description of HTTP Streaming if
you'll try to
search in Google:
http://www.google.com/search?complete=1&hl=en&q=HTTP+streaming+technology+for+video%2Faudi o+delivery
HTH! -
FLV player not working on website
Well recently I've been making a website, I'm recently new to Dreamweaver, and previously I had input two FLV's in two different AP div boxes. They both worked fine, but after creating a few more pages, I can only come back to see it broken. Instead of a play button with the bar, it's just a picture with the play, pause buttons all over it (attached). I'm really confused why, I don't think I edited it at all. I'm really stressing out because my projet is due tomorrow and this last problem just arises!
Thank
P.s I currently use Dreamweaver Cs6 on Mountain Lion Mac.Hello,
we had some similar questions in this forum already. So my first suggestion is that you use the forum search function with the keywords from above. See e.g.:
http://forums.adobe.com/community/dreamweaver/search.jspa?peopleEnabled=true&userID=&spotl ight=false&containerType=14&container=2240&rankBy=date&q=flv+player+not+working+on+website
To analyze better you should send us a link to your website in question, no matter how it looks like.
Hans-Günter -
Hi
Id like to find some free custom skins usable with
Dreamweaver for flv
player
those 9 available are not good for my boss
Please help me outOn Tue, 5 Dec 2006 16:36:44 +0200, "katerina katz"
<[email protected]> wrote:
>Hi
>Id like to find some free custom skins usable with
Dreamweaver for flv
>player
>those 9 available are not good for my boss
>Please help me out
>
http://www.adobe.com/devnet/flash/articles/flv_tutorial_pt2_02.html
Steve
steve at flyingtigerwebdesign dot com -
FLV player, displaying duration and time
Hello,
I am in need of some help!
I have a FLV player that uses the netstream method to call in
external flv files. I'd like the flv player to identify how long
the specified flv file is, in minutes, and display it in a text
field. I would also like the time elapsed to be dispayed, when the
video is actually being played.
How would i go about getting this functionality to work?
I will post my code up if you guys want to see it but for the
time being i'd just like some advice.
I hope someone can help!
Regards
EGR103Hi Guys! Yes, I'm sure you can do it in Flash ...
You can display a
clock displaying
timeof day. There is all kinds of information about this at
Edmund Mullen's site, located at:
http://ed.mullen.home.comcast.net/fclock.html
If you want a SWF you can insert into a Captivate movie that
displays elapsed time, I have a diferent suggestion. First,
understand that elapsed time (ET) can be a tricky bugger, becuase
it is probably not "straight-ahead" elapsed time. If your Captivate
movies have any interactivity, you may or may not want those
"pauses" counted in elapsed time metering. You need something
special, and as Rick said, that animal don't live here ...
Contact Paul Dehurst (fellow community expert) and ask if
Paul will build you something like this. He may be too busy, or
just not interested in extra work right now, but if he does it for
you, he'll do a good job. Expect to pay him a negotiated fee - it
will be reasonable. Paul can be reached right here, or at his
web-site at:
http://www.raisingaimee.co.uk/
Click the link to: "
Contact Paul:"
Second idea, if Paul can't be convinced to help you out ...
call RentaCoder. You can reach them at:
http://www.rentacoder.com/RentACoder/default.asp
Seriously, these folks might be the most underappreciated
people on the net. In just a few minutes at their site, you can
find a programmer in almost any software language - often close to
your physical location. No, I haven't personally used them, but a
company I contracted with recently had a need for a special Flash
tool, and contacted a Flash coder through "rentacoder" - and were
very pleased. Good luck!
Maybe you are looking for
-
Why can't print to Xerox Splash or HP from Safari or Apple Mail?
I copy pasted this from the Printing and Faxing forum since it seems no one can answer my questions there. Maybe someone here has an answer. From yesterday: I just updated my computer from a G4 running 10.3.9 to a G5 running 10.4.5. I used the migrat
-
Using target disc mode to access a broken laptop
I'm using a 1.33 15" PB with 10.3.9 and broken early 12" still on 10.2.8 During an attempted repair of the 12" DC in jack, also replacing the broken CD/DVD Drive with a SD using a replacement lower case and screen that still had the screen control? a
-
Is there any way to automate the creation of PDF forms using XML files and/or some kind of API? Thanks.
-
[tyler@myhost ~]$ ./*run Creating directory fglrx-install Verifying archive integrity... All good. Uncompressing ATI Proprietary Linux Driver-8.28.8......................................................................................................
-
Difficulties Importing Music into ITunes
Hi, I just bought a new 30G iPod about two weeks ago, and I've only been experiencing trouble with iTunes. Most of the cds I import into my library take forever to download, and once the songs finally download, the sound is all staticy and you cannot