#1  
Old 16th July 2010, 11:01
bc992164 bc992164 is offline
Junior Member
 
Join Date: Jul 2010
Posts: 1
Default Flex Player API Simply not working for me

I've tried the example code to no avail.
I'm using Flash Builder 4, and I continue to get a blank screen when compiling the example.

Code:
The code in the example is:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	
	<mx:Script>
		<![CDATA[
			
			private var player:*;
			
			private function loaderReadyHandler(event:Event):void
			{			
				player = ModuleLoader(event.target).child;
				player.addEventListener("ready", playerReadyHandler);
				player.addEventListener("errorEvent", playerErrorHandler);
			}
			
			private function playerReadyHandler(event:Event):void
			{
				player.devKey = 'Iputmydevkeyhere';
				player.channel = 'livestreamapi43';
				player.play();
			}
			
			private function playerErrorHandler(event:Event):void
			{
				var e:Object = Object(event);
				trace('Player error: [' + e.code + '] ' + e.message);
			}
			
		]]>
	</mx:Script>
	
	<mx:ModuleLoader
		url="http://cdn.livestream.com/chromelessPlayer/v11/ChromelessPlayer.swf"
		width="100%"
		height="100%"
		ready="loaderReadyHandler(event)" />
	
</mx:Application>
I've tried switching the location of the url to http://cdn.livestream.com/chromeless...lessPlayer.swf from http://cdn.livestream.com/chromeless...lessPlayer.swf

But this appears to have no affect.

Any ideas?

You can see what happens by clicking my hosted issue here:
http://breezegetaways.com/test/inova...lexsample.html

Last edited by bc992164; 16th July 2010 at 11:03. Reason: Left out a few lines
Reply With Quote
  #2  
Old 3rd August 2010, 10:52
paul167 paul167 is offline
Livestream Software Engineer
 
Join Date: Sep 2008
Posts: 190
Default

Our flex module currently doesn't support flex 4. We are in the process of rolling out a new version of the API that will fix this issue though.

Thanks
Reply With Quote
  #3  
Old 4th August 2010, 17:15
paul167 paul167 is offline
Livestream Software Engineer
 
Join Date: Sep 2008
Posts: 190
Default

The new version of our module is available. Please have a look at:
http://www.livestream.com/userguide/...lex_Developers

Thanks
Reply With Quote
  #4  
Old 27th August 2010, 11:53
tomdanvers tomdanvers is offline
Junior Member
 
Join Date: Aug 2010
Posts: 1
Default

Any chance of getting all the trace actions removed from the module!?
Also the player.stop() method doesn't seem to stop everything (still loads of traces after stop() method is called). The only way i can clear it completely is with a uloadAndStopAll() call which seems pretty extreme!
Thanks!
Reply With Quote
  #5  
Old 30th August 2010, 12:30
paul167 paul167 is offline
Livestream Software Engineer
 
Join Date: Sep 2008
Posts: 190
Default

Hello,

Yes we're in the process of cleaning up the traces from the module.

The stop() function is currently use to stop playback only. We keep some background activity for instance to allow you to retrieve the current viewer count or the live status even when the channel is not playing.

Best
Reply With Quote
Reply

Tags
api, chromless, flex, player

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump