facebook

Open Video with another program

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #340155 Reply

    Platform Android.

    Is it possible to open a video link with another program rather than the mobione video player the reason is the video i am trying to use is in a format that is not supported by the standard player it is support with mxplayer

    would be ideal if user clicks on the link it opens with another app such as the mxplayer.

    is there a javascript code that i can put in custom and it will tell the app to open all links with mxplayer player

    if there is any other suggestion than please share it thanks

    #340162 Reply

    found this code on the net

    Uri videoUri = Uri.parse( "rtsp://v5.cache1.c.youtube.com/CjYLENy73wIaLQnhycnrJQ8qmRMYESARFEIJbXYtZ29vZ2xlSARSBXdhdGNoYPj_hYjnq6uUTQw=/0/0/0/video.3gp" );
    Intent i = new Intent(Intent.ACTION_VIEW);
    i.putExtra( EXTRA_DECODE_MODE, (byte)2 );
    i.setPackage( "com.mxtech.videoplayer.ad" );
    i.setClassName(  "com.mxtech.videoplayer.ad" , "com.mxtech.videoplayer.ad.ActivityScreen" );
    

    can this be used?

    #340165 Reply

    Hi virtualmaster,

    I am not familiar with a specific url schema that can be used to open the videoplayer. I will discuss it with the dev team for suggestions.

    #340195 Reply

    any luck?

    #340207 Reply

    Hi virtualmaster,

    the code you’re asking about is Java code targeted for android SDK. MobiOne apps are HTML5 apps that work inside Apache Cordova environment. So, you have two options

    a) try

    phoneui.showURL(url, "_blank")  / window.open(url, "_blank");
    

    b) use our Viewer plugin to open an Intent registered for particular MIME type:

                    
    window.plugins.viewer.showFile(url, "MIME/type", 
      function(result) { /* ... */ }, 
      function(error) { /* ... */ });
    

    Please consult media player’s documentation which mime type you should use in order to hit it’s Intent.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Open Video with another program

You must be logged in to post in the forum log in