FLV Player with Dynamic Playlist
So this is the first time I've experimented with a Dynamic
Playlist in an FLV Player and I'm learning a lot. I found a
tutorial on the Adobe site similar to what I'm looking to create.
[URL="
http://www.adobe.com/devnet/flash/articles/prog_download.html"
one is for Progressive Download, which I want.[/URL]
The same person also wrote one for [URL="
http://www.adobe.com/devnet/flash/articles/video_player.html"
I only mention that, because in the Streaming version, the videos
have the standard Adobe video controls in them, and the Progressive
tutorial does not. Usually I just create my own controls and link
it to the video component that I'm using, but this tutorial is
different than I normally roll.
In the library there is an object type "Video", which I can't
recall ever seeing before. If I delete it from the stage my videos
won't play, so it's definitely important. It doesn't give
parameters like the FLVPlayback does so I can't choose controls on
it. I don't know if there is a way.
Or maybe I need to build my own controls and find a way to
tie them into what we have here, but that would be stretching the
bounds of my knowledge, and I was hoping to have this up soon to
send to a potential employer.
What I'm looking for is some help to get pointed in the right
direction to just add the controls to the player in that tutorial.
If there is an "easy button" somewhere that I can push that'd be
great. If I need to get dirty I'm willing to, but I'm a bit lost
right now.
Thanks in advance for any help!
Search for JW player on Google and look at that.
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
"This has been one of the most impressive and thoroughly
pleasant
experiences of customer support I have ever come across -
astounding!"
Director - hedgeapple
Similar Messages
-
Help with dynamic playlist for mpd
Hi guys,
I use mpd with sonata for playing my music, and after trying exaile there is one thing id really like for mpd, and that is the dynamic playlist function.
When you're playing a song in exaile with dynamic playlist enabled, it queries audioscrobbler and automatically adds similar artists/songs to your playlist (if you have them on your pc).
I dont want to use exaile as it just feels too big and slow and bloated (not KISS ), i know a little bit of python so i thought i'll try and make my own little script/program as Sonata has audioscrobbler support, but i dont think there is anyway to query similar artists.
I think im going to try and make this as a daemon type program that will run in the background adding songs to the playlist.
Ive found the code from the exaile source (audioscrobbler.py) which queries lastfm e.g.
>>> lips = AudioScrobblerQuery(artist='The Flaming Lips')
>>> for artist in lips.similar():
... print artist.name, artist.mbid
This will print a list of similar artists to the flaming lips.
I've not done much with python so i thought this would be a good way to try and improve.
Does anyone have any suggestions as to what the best way to go about searching and comparing the results to my mpd database, would the best way just to be to search the mpd.db?
And if anyone else has any ideas/comments id like to hear them.
Edit:
I just found this too, so i may only need to change some things to integrate it with mpd rather than amarok
http://www.kde-apps.org/content/show.php?content=31920
Thanks
Last edited by Kane (2008-06-05 13:24:33)well i just modified the patch into a little script, it does what i need
its here if anyone wants it
import audioscrobbler
import mpd
import random
import time
lastsong = {}
def timer_control():
get_similar()
time.sleep(10)
timer_control()
def get_similar():
audioscrobbler
client = mpd.MPDClient()
client.connect("localhost", 6600)
mpdstatus = client.status()
prevsonginfo = client.currentsong()
global lastsong
if mpdstatus['state'] == "stop": return
if prevsonginfo == lastsong: return
lastsong = prevsonginfo
similarartists = ""
song = prevsonginfo
#if not song: break #No song, do nothing
prevartist = song['artist']
# Is the info already cached?
similar_cache = {}
if similar_cache.has_key(prevartist):
similarartists = similar_cache[prevartist]
else:
#Not cached so fetch from Audioscrobbler
try:
similarartists = [artist.name for artist in audioscrobbler.AudioScrobblerQuery(artist=prevartist).similar()]
# Cache search results and save some time next search
similar_cache[prevartist] = similarartists
except audioscrobbler.AudioScrobblerError:
similar_cache[prevartist] = None # Empty cache
return # Do nothing!
if not similarartists: return # Empty list
# Split list in half and sort upper half
# this means good matches will have priority
# but makes sure artist A does not always result in artist B
half_idx = len(similarartists)/2
upperhalf = similarartists[:half_idx]
lowerhalf = similarartists[half_idx:]
random.shuffle(upperhalf)
artistlist = upperhalf
artistlist.extend(lowerhalf)
# Try each artist in order
for artist in artistlist:
try:
print "Trying:",artist
songs = client.search("artist", artist)
if not songs: continue
selected_song = random.sample(songs, 1)[0]
client.add(selected_song['file'])
print "Added", selected_song['title'],"by",selected_song['artist']
# Delete old song from playlist?
break
except mpd.MPDError, e:
print "MPDError", e.message
continue
except ValueError, e:
print "ValueError:",e.message
continue
timer_control()
Last edited by Kane (2008-06-06 16:22:49) -
FLV & SWF player with XML Playlist
What I want is to create a player that can handle SWFs and
FLVs or just FLVs, that load from a XML playlist.
Now I have seen the tutorial (Creating a Dynamic Playlist for
Progressive Flash Video) url:
http://www.adobe.com/devnet/flash/articles/prog_download.html
But this populates a list that you have to click to play the
next movie, but I want it to play swf1 or flv1 then 2 then 3 and so
on, then loop. But I can't find a tutorial for this anywhere?
Any ideas, I need a detailed tutorial or a working example?I recently made something like that, but then my project
consultor, made me change to use only flv files.
The project is going to be an internal tv channel for a
university, here in Portugal. First I thought of mixing SWF and
FLV's together, but then it required that someone that used the
system, knew how to program SWF's, because you need to change a
flag (variable) at the end of the playback of the SWF. This change
of flag status indicates that this SWF is over and pass to the next
entry of the playlist. Without this, I think that you would never
know when to go to next entry. so, the code resembled a little like
this:
if ((_root.percen_tx.text == "100%") || (_global.over == 1
&& _global.tipo[_global.num]=="1")) {
_global.over = 0;
_root.percen_tx.text = "";
if (_global.num == (_global.filmes.length-1)) {
_global.num = 0;
switch (_global.tipo[_global.num]) {
case "1" :
loadMovie(_global.filmes[_global.num], _root.swf_cont);
_root.descr_tx.text = "";
_root.percen_tx.text = "";
break;
case "0" :
_root.contentor.my_FLVPlybk.contentPath =
_global.filmes[_global.num];
_root.descr_tx.text = _global.descr[_global.num];
break;
} else {
_global.num += 1;
_root.percen_tx.text = "";
switch (_global.tipo[_global.num]) {
case "1" :
_global.over=0;
loadMovie(_global.filmes[_global.num], _root.swf_cont);
_root.descr_tx.text = "";
_root.percen_tx.text = "";
break;
case "0" :
_root.contentor.my_FLVPlybk.contentPath =
_global.filmes[_global.num];
_root.descr_tx.text = _global.descr[_global.num];
break;
A brief explanantion:
_global.over -> 0 (not over); 1 (is over)
_global.tipo -> value that comes from an xml, and
indicates if this playlist entry is a SWF or a FLV (they go to
different MC's);
_root.percen_tx -> Indicates the percentage of the FLV
file that was already read. "100%" is over
This is not the most efficient way to do it, because you can
use listeners and so on, but at the time I abbandoned this, at this
stage. Now it's only FLV, and only a few lines of code.
You can see the project at www.ipvctv.com
Hope it helped a bit. -
Dynamic flv player with auto resize based on content
Hi,
I would like to build a .flv player which can accommodate 7
different video sizes.
This will probably be made using php and xml to dynamically
control content.
What I would like to know is if and how it is possible to
have a holder.swf (just looks for variables to display the flv)
that can automatically resize based on the flv dimensions. I dont
want any kind of browserscreen resolution resizing of content, just
an swf that will change its size from say 320x240 to 450x253
depending on the dynamically loaded flv.The same thing has been reported for the T410. You can see how to fix it here:
http://forums.lenovo.com/t5/T400-T500-and-newer-T-series/T410-unstable-screen-brightness/m-p/212492#...
It appears to occur anytime you are on battery and the intel graphics power plan is set to anything other than 'maximum performance.' It's pretty subtle, but really annoying when it happens. -
Looking for FLV player with playlist for my Flash site
I've been looking for an FLV player that I can embed "inside" my flash site--most likely loaded as an external swf via loadClip inside my main swf file. I also need it to be AS2 compatible for my current project. If anyone has some ideas please share, thanks.
-DavidI have a sample here http://www.smithmediafusion.com/blog/?p=337 that uses an rss feed as the playlist.
Regards,
Dan
http://www.dsmith.tv
http://www.smithmediafusion.com/blog -
FLV Players with multiple playlists.
Both the LA Times
http://www.latimes.com and the
Chicago Tribune
http://www.chicagotribune.com
as well as other newspapers have a nifty multi-playlist FLV player
on their front page. The Player comes with a playlist that shows
thumbnails for a list of videos. But you can also click on a
drop-down menu and select a different playlist. The drop-down menu
for the playlist selector at the Tribune site even has a scroll bar
within itself. I see that ESA sells a similar player, but they told
me they don't/won't/can't add the drop-down playlist, only buttons.
Are the players on the front of those news sites being built
entirely within Flash? If so, can someone point to a tutorial
please? And if so, can these players be built entriely in Flash 8,
or do they require add-ons, or is this new to CS3?
Thanks,
TWYes, the latimes movie player is a full flash application,
that uses asp to get its play list. -
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 -
XML driven FLV player with playlist, can someone please help me?
OK so ive been working for a client recently building him a new site for his racing team and he wants a video jukebox on the "videos section" of the site.
Now i am the one with the job of updating this jukebox with new videos which he makes (this happens often) so i want updating to be as easy as possible.
Im new to the use of XML with flash and followed a tutorial to create a dynamic Image Gallery which is really easy to update, all i have to do is drop the files into the right directories in my FTP client and edit the XML file, perfect.
I want the jukebox to do the same thing.
I want to have a jukebox with a "video screen" with basic controlls (play/pause, volume, rewind, seek) on the left and a small vertically scrolling menu on the right that contains thumbnails and descriptions of the videos that when clicked changes the content of the video component to play the chosen video.
I found a tutorial on the adobe site that shows how to achive this through the use of the "video component" and the "list component" in flash 8 HOWEVER, this isnt very pretty and almost impossible to customise due to the list component and i would like to be able to mimic the style of the image gallery i already produced to keep things all nice and uniform.
i want to use XML to point flash to the source of the FLV files, the source of the thumbnail jpgs and give the text for the description so that its easy to update and use flash's drawing interface to make it pretty.
Basically i want to reproduce something like this.
Ive been searching for weeks now and i cant find anything to help me with this, if anyone knows of any tutorials, books, videos or has any idea how to help me it would be MUCH appreciated.
Thankyou.Try this link:
http://www.taiwantrade.com.tw/MAIN/en_front/searchserv.do?method=listProductComp anyDetail&company_id=163054&locale=2
There is an email address and telephone numbers.
Also look on the box and instructions.
Ciao. -
Hello Everyone,
I am scripting a video player and one of its functionalities
is to be able to have a playlist that can be arranged by the user
in any order user like. For Example, if there are lets say 5 videos
within the playlist:
SONG 1
SONG 2
SONG 3
SONG 4
SONG 5
User can then change the order of the videos by clicking on
any video and dragging it up or down just like windows mediaplayer
and the player should play the videos in such order.
So far, I have been able to use the list component but am not
sure if it will allow the dragging.
I would highly appreciate it if you guys can suggest what
should I do to handle this functionality.
Thanks.Hm, you could define ‘slots’ with rectangles and
each slot would map to a specific slot in some
‘playlist’. Then create your own ‘list
renderer’ that attaches draggable clips based on the playlist
array. During drag and drop, you’d detect which
‘slot’ the movieclip was dropped into, which would
define where in the playlist array it should be inserted.
Then shift the elements around, insert the item in the array,
and rerender the list.
(I’m sure there are probably better/neater ways to do
this as well, this is just quickly off the top of my head). -
RTMP Player With Live Stream As Primary Stage With Dynamic Playlist Of Previous Recordings
(97.76.8.74:8134/index_temp.html).
You can see our boring-for-now stream there but you can see the look I would like to achieve from the OSM just by pointing to the homepage
(97.76.8.74:8134) which is presently being fed by a generic, static playlist.xml file on the top half and the bottom being livestream
I have a 1TB raid5 storage setup for the media (E:\media\Flash Media Server 4.5\applications\VideoPlaylist) and what i would like to do is have the main window of the homepage display the livestream onload and populate the thumbs on the right with the previously recorded content in the videoplaylist folder.
Message was edited by: apelectricservices
ps. is there something wrong with this post? Several days/ views but no response.Hi,
I'm also looking a kind of a self Youtube application, and found it is not easy to impliment (kaltura) or very expensive. Kaltura offers an open source version but almost no help.
http://www.polycom.com/products-services/realpresence-platform/video-content-management/re alpresence-media-manager.html
http://www.cisco.com/en/US/products/ps6681/index.html
http://www.vbrick.com
http://www.kaltura.org
Alon -
Flash mp3 player with multiple playlist
Seeja everybody,
i have a big problem. i would like to create a multiple
playlist to my player. the buttons for the playlist's are in the
same flash as the player. please help me. how can i connect this 5
buttons (see the picture) to my player? maybe some scripts?
http://img235.imageshack.us/my.php?image=playerla8.jpg
HTML CODE
quote:
<html>
<head>
<meta http-equiv="Content-Language" content="hu">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1250">
<title>gangsta rap</title>
<style>
a:link {color: "#666666"; font-family:Arial; font-size:10px;
font-weight:bold; text-decoration: none}
a:visited {color: "#333333"; font-family:Arial;
font-size:10px; font-weight:bold; text-decoration: none}
a:hover { color: "#3333CC"; font-size:10px;
font-family:Arial; font-weight:bold; text-decoration: none}
a:active {color: "#CCCCCC"; font-family:Arial;
font-size:10px; font-weight:bold; text-decoration: none}
</style>
<base target="hlavní">
</head>
<body bgcolor="#1B1B1B" topmargin="2" leftmargin="0"
rightmargin="1" bottommargin="2">
<table border="0" width="100%" id="table1" cellspacing="0"
cellpadding="0">
<tr>
<td>
<p align="center">
<OBJECT
codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0 ,0,0
height=100 width=1000
classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 align="center"
hspace="1"><PARAM NAME="movie"
VALUE="mp3player.swf?playlist=rapfrance.xml">
<PARAM NAME="quality" VALUE="High"><PARAM
NAME="wmode" VALUE="transparent">
<param name="salign" value="R">
<embed src="mp3player.swf?playlist=rapfrance.xml"
quality="High"
width="1000" height="100" wmode="transparent"
type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
salign="R" /></OBJECT>
</td>
</tr>
</table>
</body>
</html>
thank you for your help very much in anticipation.http://www.clickpopmedia.com/2008/04/15/making-an-mp3-player-in-as3/
-
Flv player works locally but not when uploaded
Another day, another issue...
I have a flash movie that includes an flv player with previews and buttons. It reads the content from an xml file.
It works without problem when I test it locally. Trouble is when I upload it, everything displays correctly but the flv movie file doesn't play. Here's the test link:
http://www.swsoftware.com/ncjhs/assets/video/flvplayer.html
XML file is http://www.swsoftware.com/NCJHS/Assets/Video/video.xml
Flash file is http://www.swsoftware.com/ncjhs/assets/video/flvplayer.fla
Anyone have any suggestions? I'm new to flash and this forum has been a tremendous help in resolving my (somewhat numerous) problems.
SamWhen I tried to view the posted url I got the following
errors in the order I have listed them.
CSInit is undefined Line 23
Line 75 Object Expected
Line 66 Object Expected
My Platform.
IE 7
Windows XP Pro -
Building FLV Player for FMS Video and Audio
Hi All,
Am new to flash development. I would need all of your
knowledge to build an application for FLV Streaming.
I need to write a FLV player which dynamically picks the file
from FMS Server by taking the arguments password to the
movie/player.
Please let me know how do i go about it.
Thanks in Advance
Madyarunbe,
I read the live docs information about NetStream.onMetaData,
and this tells me that it is possible that I might get some
information about an audio codec, but it doesn't really help all
that much in learning if there is a way to tell if there is an
audio track present at all. Does such a possibility exist?
C -
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? -
Problem with tutorial:Creating a dynamic playlist for streaming flash video
hi, anyone tried the tutorial: creating a dynamic playlist
for streaming flash video?
i follow the instruction exactly as stated in the tutorial
and test the fla file, it worked perfectly well when i open the swf
using the macromedia flash 8. Everything look fine. Nothing is
changed except the url is changed to "rtmp://localhost/videosource"
in the xml file.
after i publish the file using the setting: access network
only, i try to open the swf and html file from the folder, the
thumbnail did not appear and there is no way i can click on any
videos. What i see is only the list, and there is no response from
the flash media server 2. All the files is in the same folder.
Anyone please help with this problem???? thanks....i debug the movie step by step
and realised that the xml file is being read by the code...
Your original problem stated it worked but not when playing
outside the
Flash authoring environment by simply loading the swf from
the hard drive.
The Flash authoring environment is a trusted environment and
so you really
need to test in the actual deployment mode which loading an
swf from the
hard drive is not a valid deployment unless an installed
Flash player is
available outside the web browser which you would have as you
have the
authoring tool and your users will not.
Use a browser with
http://yourdomain.com/yourmovie.html
to do final
debugging.
In this regard you may need to debug the movie while running
in real time
mode in a web browser with
http:// A technique to trace I suggested is to
create a temporary TextField perhaps named out_txt and send
trace message to
it such as out_txt.text += "My Trace Expression".
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"free23" <[email protected]> wrote in
message
news:[email protected]...
sorry but i don't understand what you mean....i debug the
movie step by step
and realised that the xml file is being read by the code...
this is a sample of my log files:
#Fields: date time x-pid x-status x-ctx x-comment
2006-05-15 20:08:58 3072 (i)2651170 Unloaded application
instance
videosource/_definst_ -
2006-05-15 20:48:19 3848 (s)2641173 FCApplication loaded
successfully.
2006-05-15 20:48:19 3848 (s)2641173 Communication Framework
loaded
successfully.
2006-05-15 20:48:19 3848 (s)2641173 SimpleConnect loaded
successfully. -
2006-05-15 20:48:19 3848 (s)2641173 VideoConference loaded
successfully. -
2006-05-15 20:48:19 3848 (s)2641173 Video Playback loaded
successfully. -
2006-05-15 20:48:19 3848 (s)2641173 Communication Components
loaded
successfully.
2006-05-15 20:48:19 3848 (s)2641173 Sending this message:
Hello! You are
connected as: undefined -
2006-05-15 20:48:19 3848 (e)2641190 Error : command msg sent
before client
connection has been accepted. -
2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
Hello! You are
connected as: undefined -
2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
before client
connection has been accepted. -
2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
Hello! You are
connected as: undefined -
2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
before client
connection has been accepted. -
2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
Hello! You are
connected as: undefined -
2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
before client
connection has been accepted. -
2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
Hello! You are
connected as: undefined -
2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
before client
connection has been accepted. -
2006-05-15 20:49:42 3848 (s)2641173 Sending this message:
Hello! You are
connected as: false -
hope this help...
Maybe you are looking for
-
Repair permissions in Disk Utility won't stop
OK, I've never done permissions repair on our MacBook Pro 15" (2 GB 1067 MHz DDR3, 2.4 GHz Intel Core 2 Duo). (My apologies to the fastidious cleaners among this group.) I've done multiple upgrades over the past 4 or so years that we've owned it, i
-
Hi I plan to do Oracle ADF 11g certification. So, please any one suggest me, good tutorial for preparation. I have Oracle Fusion Developer Guide Book. Is it enough for prepartion. Thanks in Advance
-
Heard you can buy Pages, Numbers or Keynotes for $9.99 ea thru App Store, but only price I saw there was $19.99 ea; does anyone know if the $9.99 price is real? If so, where do you order from? Thanks
-
Where can i find refurbished laptop in malaysia?
Where can I find refurbished laptop in Malaysia?
-
hi gur where we see the business area in the sales order,delivery and billind documen. plz reply.