• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Upload Failed

Started by leiitoh8998,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Found this error also

line 182 of providers                   
$real_link        = site_url() . 'stream.php?type=1&file=' . base64_encode(base64_encode($path));
type is needed for HTML5 to load player... Now it works perfect in HTML5 but not on iOS devices for local uploads... still playing with it...
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Hi Mario,

The URL you provided has the same issue... ??? Error Loading Media: File Could not be played on iOS. In HTML5 player it opens in new window and loads the stream.php with the video but none of the jw config options are visible...

The remote files in HTML5 do the same thing... I scoured the providers file from top to bottom and I know the issue is there but I am just not seeing it... too much code processing for one day lol...

The html5 files add "undefined" to the logo spot of the files same occurs on your demo version... I see that the remote file and the local files use the same setup script http://video.myurl.com/lib/players/jwplayer/jwplayer.js but they aren't loading the same options...

<div class="jwdownloadlogo" style="position: absolute; width: 100%; height: 100%; background: url(&quot;undefinedhttp://www.videoinedit.com/uploads/site-logo-png&quot;) no-repeat scroll right top transparent;"></div></div>


the word UNDEFINED in the html5 logo files...

Quick note. I downloaded a flash disabling plug-in for Firefox which made most of this debugging possible... https://addons.mozilla.org/En-us/firefox/addon/flashdisable/ it will disable the flash player and force Firefox to load the html5 player and from there it is easy (for me at least) to inspect and try and debug issues...
  •  

Marius P.

But jwplayer only works in firefox in flash mode, firefox has severe issues with html5, I've read this on the jwplayer site, that you should use primary flash for firefox to work.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

Let's get on the same page:

 
public function _jwplayer6 ($file,$thumb, $logo = null, $type=null) {
     $embed = '<script type="text/javascript" src="' . site_url() . 'lib/players/jwplayer/jwplayer.js"></script>';
      if (get_option('jwkey')) { $embed .= '<script type="text/javascript">jwplayer.key="' . get_option('jwkey') . '";</script>';}
              $embed .= '<div id="video-setup" class="full">' . _lang("Loading the player...") . '<>';
              $embed .= ' <script>     jwplayer("video-setup").setup({   modes: [
        { type: "html5" },
        { type: "flash", src: "' . site_url() . 'lib/players/jwplayer/player.swf" }
    ], primary : "flash",      file: "' . $file . '",         image: "' . $thumb . '",       height: ' . $this->height . ',   repeat: "always",      aspectratio: "16:9",       width: "100%",       autostart: "true"';
if($type) {   $embed .= ', type: "' . strtolower($type) . '" '; }
if($logo && !nullval($logo)) {     $embed .= ',   logo: {         file: "'.$logo.'",  position: "top-left",  link: "'.site_url().'"    }'; }
              $embed .= '  }); </script>';
           return $embed;
     }



public function _jwplayer($file,$thumb, $logo = null, $type=null) {
     /** Switch jwplayer versions **/
     if(get_option('jwp_version') == 5 ) {
     return $this->_jwplayer5($file,$thumb, $logo, $type);
     } else {
     return $this->_jwplayer6($file,$thumb, $logo, $type);
     }     
     }

public function remotevideo($url)
      {
          global $video;
          $embedCode = '';
          if ($url) {
        $embedCode = $this->_jwplayer ($url,$video->thumb,$this->height, $video->title), thumb_fix(get_option('site-logo')));
           }
          return $embedCode;
      }
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

Seems IOS doesn't allow autostart, I've removed it, can you please test again the link?
And sorry for asking so many times, I don't have any ios device, just android.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Ok.. I made our files look the same.. I had a different JWplayer 6 file than you but it made no difference to the player... In your video iOS says error loading media... I understand about the Fire Fox.. It may not work correctly with HTML5 but it does allow us to see the code that is being generated which helps better than not being able to see at all...
  •  

Marius P.

Weird stuff, so for IOs the only solution right now is to redirect to the actual .mp4 file with a header...
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)