The Ultrashock Ultra Bundle
  • Home
  • Community
  • Forum
  • Flash
  • ActionScript
  • Thread
  •  
  • Previous topic
  • Next topic
Sign up to post

Flash
 ActionScript

  • DeepSun Author 
    • 782 
    • 0 
    • 1 
    Problems with streaming in Safari
    DeepSun

    Last reply Apr 02 2008, 10:09 AM

    by DeepSun

    Posted: Apr 01 2008, 09:51 AM

    by DeepSun

     

Hello

I have a big problem with my custom media player. Everything works fine on PC (ff, ie, even on Safari for PC), but on Safari (Mac) I hear a sound with 30-60 seconds delay. For streaming I’m using qbrick (www.qbrick.com), and this is the code for media player:

_root.soundControl.setVolume(30);
myReceiver = new LocalConnection();
myReceiver.connect(“myConnections”);
myReceiver.myAction = function(id) {
_root.LoadMe(id);
};
myReceiver.stopplay = function(id) {
_root.ns_mp3.pause();
_root.ispause=true;
_root.pause.offOn.gotoAndPlay(“to off”);
};

_root.setStartVolume=true;

_root.LoadMe(“default”);
function LoadMe(id){
_root.externalXML = new XML ();
_root.externalXML.onLoad = onComplete;
var action:String = “get.php?id=”+id+”&action=songxml”;
//_root.externalXML.load (“designer.xml”);
_root.externalXML.load (action);
XML.prototype.ignoreWhite = true;
_root.id=id;

function onComplete(){
  var itemName:String = _root.externalXML.firstChild.attributes.name;
  var itemLength:Number = _root.externalXML.firstChild.childNodes.length;
  _root.songList=new Array();
  for (var i:Number = 0; i < itemLength; i++) {
  _root.songList = new Array();
  _root.songList[0]=_root.externalXML.firstChild.childNodes.attributes[‘path’];
  _root.songList[1]=itemName; 
  _root.songList[2]=_root.externalXML.firstChild.childNodes.attributes[‘artist’];
  _root.songList[3]=_root.externalXML.firstChild.childNodes.attributes[‘name’];
  }
playSongs();
if(_root.setStartVolume){
  _root.soundControl.setVolume(30);
  _root.setStartVolume=false;
}
}

function playSongs(){
_root.mycount=0;
_root.nc = new NetConnection();
_root.nc.onStatus = function(info) {trace(info.code);}
_root.nc.connect(“rtmp://qstream-fl0.qbrick.com/05966”);
_root.ns_mp3 = new NetStream(_root.nc);
_root.ns_mp3.onStatus = function(info) {trace(info.code);}
 
_root.ns_mp3.onPlayStatus = function(info) {
_root.mycount++;
count=_root.mycount;
_root.ns_mp3.play(“mp3:”+songList[count][0]);
_root.track.dataDisplay.displayMC.song.text=songList[count][3];
_root.track.dataDisplay.displayMC.artist.text=songList[count][2];
_root.track.dataDisplay.displayMC.kanal.text=_root.songList[count][1];
}
_root.ns_mp3.play(“mp3:”+songList[0][0]);
_root.track.dataDisplay.displayMC.song.text=songList[0][3];
_root.track.dataDisplay.displayMC.artist.text=songList[0][2];
_root.track.dataDisplay.displayMC.kanal.text=_root.songList[0][1];

_root.mc.attachAudio(_root.ns_mp3);
_root.soundControl = new Sound(_root.mc);

}
}
stop();

If anyone can help, that would be great smilie.

Thanks

// Faruk Hadzic

  1 REPLY
 
DeepSun Author 
1  
DeepSun

It looks like this is the bug in version 9.0.145 of flash player for Mac.
LINK

Maybe it could help someone with the same problem ...

Ciao

// Faruk

  • 02 April 2008 10:09 AM
  •  
  •   Log in or join for free to make a comment.
 
Topic actions
  •  Share on Facebook
  •  Share on Twitter
Topic Categories
  •  Show All Topics
  •  Development
    •  Server Side
    •  Client Side
  •  Creative Software
    •  Web
    •  Video
    •  3D
    •  Illustrator
    •  Photoshop Battles
    •  Photoshop
  •  Design
    •  Typography
    •  Resources & Insight
    •  Checkpoint
  •  Career
    •  Copyright Matters
    •  Advice & issues
    •  Job Seekers
    •  Job Offers
  •  Flash
    •  UltraMath
    •  OOP
    •  Third Party Tools
    •  Open Source alternatives
    •  Data Communication
    •  Components
    •  Flex
    •  AIR
    •  Flash Lite
    •  Flash Professional
    •  Flash Newbie
    •  ActionScript
    •  XML
  •  Lounge
    •  Polls
    •  Random Chat
    •  Showcase And Critique
    •  BombShock Award Nominations
  •  Community Essentials
    •  BombShock Award Winners
    •  Tutorials
    •  Interviews
    •  News
    •  Bitmap tutorials
Popular Topics
  • Sort by: 
  • Activity
  • Views
  • Comments
  • Likes
Advertise with us
  • Your advertisement here!
  • loading
Ultrashock
  • Creative Assets
  • Community
  • Blog
  1. Home
  2. Forum
+/-
Creative Assets
  • Categories
  • Contributors
  • How to buy
Make Money
  • Commission Rates
  • Referral Program
  • Contributor Program
Community
  • Activity Feed
  • Forum
  • Profiles
About
  • Quick Tour
  • Our History
  • Banners & Logos
Support
  • Contact Ultrashock
  • Advertise with us
  • Legal Information
  •  Keep up to date
  • Flash 775  Flash
  • Audio 6,481  Audio
  • Vector 2,130  Vectors
  • Image 12,338  Images
  • Creative Assets 21,724  Assets
  • Profiles 282,659  Members
  • Topics 93,762  Topics
  • Blog 4  Blog
  • Facebook 1,680  Facebook
  • Twitter 1,165  Twitter
  • Join our FREE monthly newsletter!
  • Archive
  • Invalid email address. Please try again.
Subscribe
  • ©2012 Ultrashock LLC - All rights reserved
  • Terms of Use
  • Privacy Policy
  • Switch to dark theme
  • RSS Feeds
  • Top

©2012 Ultrashock LLC - All rights reserved

Printed on Sat, February 04, 2012 - 20:20:00