Foros del Web » Creando para Internet » HTML »

Descargar un video dentro de un swf dentro de un <object>???

Estas en el tema de Descargar un video dentro de un swf dentro de un <object>??? en el foro de HTML en Foros del Web. Bueno, me he liado un poco con el titulo... xD Quiero descargarme el video que se puede ver en esta pagina: http://link.brightcove.com/services/...=1779237206001 He estado intentandolo ...
  #1 (permalink)  
Antiguo 31/08/2012, 07:27
 
Fecha de Ingreso: mayo-2011
Mensajes: 214
Antigüedad: 12 años, 11 meses
Puntos: 16
Pregunta Descargar un video dentro de un swf dentro de un <object>???

Bueno, me he liado un poco con el titulo... xD
Quiero descargarme el video que se puede ver en esta pagina:
http://link.brightcove.com/services/...=1779237206001

He estado intentandolo yo solito, pero como no puedo aqui estoy...

He llegado hasta un archivo swf, BrightcoveBootloader.swf. Este flash contiene tansolo un fotograma con este codigo en actionscript:
(Pongo el codigo de comentario que no me cabe aqui)

Ademas, para los que sepan mas que yo puede que este enlace les sea de ayuda:
http://www.carballude.es/blog/2011/1...-forma-manual/



Miren que lento soy que ni con todo eso he podido hacerlo yo solito...

Les agradezco mucho su ayuda!
  #2 (permalink)  
Antiguo 31/08/2012, 07:28
 
Fecha de Ingreso: mayo-2011
Mensajes: 214
Antigüedad: 12 años, 11 meses
Puntos: 16
Respuesta: Descargar un video dentro de un swf dentro de un <object>???

Código swf:
Ver original
  1. package
  2. {
  3.     import flash.display.*;
  4.     import flash.events.*;
  5.     import flash.external.*;
  6.     import flash.net.*;
  7.     import flash.system.*;
  8.     import flash.utils.*;
  9.  
  10.     public class BrightcoveBootloader extends Sprite
  11.     {
  12.         private var _player:Object;
  13.         private var _playerLoader:Loader;
  14.         private var _flashVars:Object;
  15.         private var _downloadStartTime:int;
  16.         private var _dataDelta:int;
  17.         private const _cookieName:String = "BC_BANDWIDTH";
  18.         private var _cookieContents:Array;
  19.  
  20.         public function BrightcoveBootloader()
  21.         {
  22.             this._flashVars = root.loaderInfo.parameters;
  23.             Security.allowDomain("*");
  24.             this._flashVars.startTime = getTimer();
  25.             var _loc_1:String;
  26.             if (this._flashVars.secureConnections == "true")
  27.             {
  28.                 _loc_1 = "https://sadmin.brightcove.com/viewer/us20120824.1350/";
  29.             }// end if
  30.             if (this._flashVars.isSlim != null)
  31.             {
  32.                 _loc_1 = _loc_1 + "federatedSlim";
  33.             }
  34.             else if (this._flashVars.isVid != null)
  35.             {
  36.                 if (this._flashVars.isUI != null)
  37.                 {
  38.                     _loc_1 = _loc_1 + "federatedVideoUI";
  39.                 }
  40.                 else
  41.                 {
  42.                     _loc_1 = _loc_1 + "federatedVideo";
  43.                 }// end else if
  44.             }
  45.             else if (this._flashVars.isAudio != null)
  46.             {
  47.                 if (this._flashVars.isUI != null)
  48.                 {
  49.                     _loc_1 = _loc_1 + "federatedAudioUI";
  50.                 }
  51.                 else
  52.                 {
  53.                     _loc_1 = _loc_1 + "federatedAudio";
  54.                 }// end else if
  55.             }
  56.             else if (this._flashVars.isUI != null)
  57.             {
  58.                 _loc_1 = _loc_1 + "federatedUI";
  59.             }
  60.             else
  61.             {
  62.                 _loc_1 = _loc_1 + "federated";
  63.             }// end else if
  64.             this._flashVars.cookieComments = [];
  65.             this.initializeUniqueSWFIdentifier();
  66.             this._playerLoader = new Loader();
  67.             this._playerLoader.contentLoaderInfo.addEventListener(Event.INIT, this.onPlayerLoadInit);
  68.             this._playerLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, this.progressHandler);
  69.             this._playerLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.completeHandler);
  70.             this._playerLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
  71.             this._playerLoader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
  72.             var _loc_2:* = new LoaderContext();
  73.             _loc_2.applicationDomain = ApplicationDomain.currentDomain;
  74.             _loc_2.securityDomain = SecurityDomain.currentDomain;
  75.             var _loc_3:* = this._flashVars.useClientSideBandwidthDetection != "false";
  76.             if (_loc_3)
  77.             {
  78.                 this._playerLoader.load(new URLRequest(_loc_1 + "/BrightcovePlayer.swf?uid=" + this._flashVars.uniqueSWFIdentifier), _loc_2);
  79.             }
  80.             else
  81.             {
  82.                 this._playerLoader.load(new URLRequest(_loc_1 + "/BrightcovePlayer.swf"), _loc_2);
  83.             }// end else if
  84.             return;
  85.         }// end function
  86.  
  87.         private function errorHandler(param1:Event) : void
  88.         {
  89.             this.removeListeners();
  90.             return;
  91.         }// end function
  92.  
  93.         private function progressHandler(param1:ProgressEvent) : void
  94.         {
  95.             if (param1.bytesLoaded > 0)
  96.             {
  97.                 this._dataDelta = param1.bytesTotal - param1.bytesLoaded;
  98.                 this._downloadStartTime = new Date().getTime();
  99.                 param1.target.removeEventListener(ProgressEvent.PROGRESS, this.progressHandler);
  100.             }// end if
  101.             return;
  102.         }// end function
  103.  
  104.         private function completeHandler(param1:Event) : void
  105.         {
  106.             var _loc_2:int;
  107.             this.removeListeners();
  108.             var _loc_3:int;
  109.             if (!this._cookieContents)
  110.             {
  111.                 _loc_2 = new Date().getTime() - this._downloadStartTime;
  112.                 _loc_3 = this._dataDelta / _loc_2 * (8000 / 1024);
  113.                 this._flashVars.bandwidth = _loc_3;
  114.                 this._flashVars.cookieComments.push("Bandwidth calculated from SWF download: " + _loc_3 + " Kbps " + "(time= " + _loc_2 + " ms, size= " + this._dataDelta + " bytes)");
  115.             }// end if
  116.             this._player.initialize(this._flashVars);
  117.             return;
  118.         }// end function
  #3 (permalink)  
Antiguo 31/08/2012, 07:28
 
Fecha de Ingreso: mayo-2011
Mensajes: 214
Antigüedad: 12 años, 11 meses
Puntos: 16
Respuesta: Descargar un video dentro de un swf dentro de un <object>???

Joer, que no cabe en una parte....
Código Swf:
Ver original
  1. private function removeListeners() : void
  2.         {
  3.             this._playerLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, this.progressHandler);
  4.             this._playerLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, this.completeHandler);
  5.             this._playerLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, this.errorHandler);
  6.             this._playerLoader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, this.errorHandler);
  7.             return;
  8.         }// end function
  9.  
  10.         private function onPlayerLoadInit(param1:Event) : void
  11.         {
  12.             var _loc_2:* = getDefinitionByName("com.brightcove.player.Main") as Class;
  13.             this._player = new _loc_2;
  14.             addChild(this._player as Sprite);
  15.             this._flashVars.playerDirectory = Object(this._playerLoader.content).playerDirectory;
  16.             return;
  17.         }// end function
  18.  
  19.         private function initializeUniqueSWFIdentifier() : void
  20.         {
  21.             this._cookieContents = this.getBandwidthCookie();
  22.             if (!this._cookieContents)
  23.             {
  24.                 this._flashVars.uniqueSWFIdentifier = new Date().getTime() + Math.ceil(Math.random() * 10000);
  25.             }
  26.             else if (this._cookieContents)
  27.             {
  28.                 this._flashVars.uniqueSWFIdentifier = this._cookieContents[0];
  29.                 this._flashVars.bandwidth = this._cookieContents[1];
  30.                 this._flashVars.cookieComments.push("Bandwidth loaded from cookie: " + this._flashVars.bandwidth + " Kbps");
  31.             }// end else if
  32.             return;
  33.         }// end function
  34.  
  35.         public function getModule(param1:String) : Object
  36.         {
  37.             return this._player.getModule(param1);
  38.         }// end function
  39.  
  40.         public function getModules() : Array
  41.         {
  42.             return this._player.getModules();
  43.         }// end function
  44.  
  45.         public function getBandwidthCookie() : Array
  46.         {
  47.             var cookieJar:Array;
  48.             var bcCookieComponents:Array;
  49.             var cookieDocument:String;
  50.             var cookie:String;
  51.             var cookieGrab:String;
  52.             try
  53.             {
  54.                 if (ExternalInterface.available)
  55.                 {
  56.                     cookieDocument = ExternalInterface.call(cookieGrab);
  57.                     if (cookieDocument)
  58.                     {
  59.                         cookieJar = cookieDocument.split(";");
  60.                         var _loc_2:int;
  61.                         var _loc_3:* = cookieJar;
  62.                         while (_loc_3 in _loc_2)
  63.                         {
  64.                             // label
  65.                             cookie = _loc_3[_loc_2];
  66.                             if (cookie.indexOf(this._cookieName + "=") != -1)
  67.                             {
  68.                                 if (cookie.indexOf("X") != -1)
  69.                                 {
  70.                                     bcCookieComponents = cookie.split("X");
  71.                                 }
  72.                                 else
  73.                                 {
  74.                                     bcCookieComponents = cookie.split(",");
  75.                                 }// end else if
  76.                                 bcCookieComponents[0] = bcCookieComponents[0].substring(this._cookieName.length + 2);
  77.                                 if (bcCookieComponents[0] == "" || bcCookieComponents[1] == "")
  78.                                 {
  79.                                     this._flashVars.cookieComments.push("Error loading bandwidth cookie: corrupt cookie string.");
  80.                                     return null;
  81.                                 }// end if
  82.                                 if (int(bcCookieComponents[1]) == 0)
  83.                                 {
  84.                                     this._flashVars.cookieComments.push("Error using bandwidth cookie: bandwidth value is 0 in cookie.");
  85.                                     return null;
  86.                                 }// end if
  87.                                 break;
  88.                             }// end if
  89.                         }// end while
  90.                         if (bcCookieComponents == null)
  91.                         {
  92.                             this._flashVars.cookieComments.push("Bandwidth cookie was not found.");
  93.                         }// end if
  94.                     }
  95.                     else
  96.                     {
  97.                         this._flashVars.cookieComments.push("Bandwidth cookie could not be found: unable to access the cookie document.");
  98.                     }// end else if
  99.                 }
  100.                 else
  101.                 {
  102.                     this._flashVars.cookieComments.push("Bandwidth cookie could not be found: ExternalInterface is disabled.");
  103.                 }// end else if
  104.             }// end try
  105.             catch (e:Error)
  106.             {
  107.                 _flashVars.cookieComments.push("Bandwidth cookie could not be found: " + e.getStackTrace());
  108.             }// end catch
  109.             return bcCookieComponents;
  110.         }// end function
  111.  
  112.     }
  113. }
  #4 (permalink)  
Antiguo 31/08/2012, 13:41
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Descargar un video dentro de un swf dentro de un <object>???

creo que te liaste no solo con el título sino con el foro, esto de html no tiene nada, y no veo el porque la insistencia en bajar un video de una página que no ofrece links de descarga
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.
  #5 (permalink)  
Antiguo 31/08/2012, 14:15
 
Fecha de Ingreso: mayo-2011
Mensajes: 214
Antigüedad: 12 años, 11 meses
Puntos: 16
Respuesta: Descargar un video dentro de un swf dentro de un <object>???

En mi portatil van lentos los flash, asi que no puedo ver el video, la unica forma es descargarmelo...

Etiquetas: link, swf, video
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:54.