"Play on xbmc function" in Android menus

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
adytum Offline
Senior Member
Posts: 100
Joined: Oct 2010
Reputation: 0
Post: #1
I'm wondering how I can bring up this xbmc option of the menu when I select something for playback, ie mp3 link or video file.

It only appears once in a while, so I find it weird that it seems a bit inconsistent.
find quote
Tolriq Offline
Donor
Posts: 2,344
Joined: Jun 2009
Reputation: 68
Location: France
Post: #2
This must be the same problem that I had with my software.

Lot's of site does not send the correct mime types for media files and basic intents based on mime types does not work.

For freezy : Here's the filters I now use that permit a lots more Send to Xbmc on android.
Not perfect since I don't know all the extensions Xbmc really support for video and audio but should covers most of the needs.

Code:
<intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:mimeType="image/*" />
                <data android:mimeType="video/*" />
                <data android:mimeType="audio/*" />
                <data android:mimeType="*/avi" />
                <data android:mimeType="*/mkv" />
                <data android:mimeType="application/mp4" />
                <data android:mimeType="application/mp3" />
                <data android:mimeType="application/mpeg*" />
                <data android:mimeType="application/ogg" />
                <data android:mimeType="application/vnd.rn-realmedia*" />
                <data android:mimeType="application/3gpp*" />
                <data android:mimeType="application/vnd.3gp*" />
                <data android:mimeType="application/vnd.dvd*" />
                <data android:mimeType="application/vnd.dolby*" />
                <data android:mimeType="application/x-mpegURL" />
                <data android:mimeType="application/vnd.apple.mpegurl" />
                <data android:mimeType="application/x-quicktimeplayer" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:host="*" />
                <data android:pathPattern=".*\\.avi" />
                <data android:pathPattern=".*\\.asf" />
                <data android:pathPattern=".*\\.divx" />
                <data android:pathPattern=".*\\.f4v" />
                <data android:pathPattern=".*\\.flv" />
                <data android:pathPattern=".*\\.m2v" />
                <data android:pathPattern=".*\\.m2ts" />
                <data android:pathPattern=".*\\.m3u" />
                <data android:pathPattern=".*\\.m3u8" />
                <data android:pathPattern=".*\\.mkv" />
                <data android:pathPattern=".*\\.mp3" />
                <data android:pathPattern=".*\\.m4v" />
                <data android:pathPattern=".*\\.mp4" />
                <data android:pathPattern=".*\\.mpeg" />
                <data android:pathPattern=".*\\.mpg" />
                <data android:pathPattern=".*\\.mov" />
                <data android:pathPattern=".*\\.mts" />
                <data android:pathPattern=".*\\.ogg" />
                <data android:pathPattern=".*\\.rm" />
                <data android:pathPattern=".*\\.rmvb" />
                <data android:pathPattern=".*\\.ts" />
                <data android:pathPattern=".*\\.vob" />
                <data android:pathPattern=".*\\.webm" />
                <data android:pathPattern=".*\\.wmv" />
                <data android:pathPattern=".*\\.wtv" />
                <data android:pathPattern=".*avi" />
                <data android:pathPattern=".*asf" />
                <data android:pathPattern=".*divx" />
                <data android:pathPattern=".*f4v" />
                <data android:pathPattern=".*flv" />
                <data android:pathPattern=".*m2v" />
                <data android:pathPattern=".*m2ts" />
                <data android:pathPattern=".*m3u" />
                <data android:pathPattern=".*m3u8" />
                <data android:pathPattern=".*mkv" />
                <data android:pathPattern=".*mp3" />
                <data android:pathPattern=".*mp4" />
                <data android:pathPattern=".*m4v" />
                <data android:pathPattern=".*mpeg" />
                <data android:pathPattern=".*mpg" />
                <data android:pathPattern=".*mov" />
                <data android:pathPattern=".*ogg" />
                <data android:pathPattern=".*mts" />
                <data android:pathPattern=".*rm" />
                <data android:pathPattern=".*rmvb" />
                <data android:pathPattern=".*ts" />
                <data android:pathPattern=".*vob" />
                <data android:pathPattern=".*webm" />
                <data android:pathPattern=".*wmv" />
                <data android:pathPattern=".*wtv" />
                <data android:pathPattern=".*\\.AVI" />
                <data android:pathPattern=".*\\.ASF" />
                <data android:pathPattern=".*\\.DIVX" />
                <data android:pathPattern=".*\\.F4V" />
                <data android:pathPattern=".*\\.FLV" />
                <data android:pathPattern=".*\\.M2V" />
                <data android:pathPattern=".*\\.M2TS" />
                <data android:pathPattern=".*\\.M3U" />
                <data android:pathPattern=".*\\.M3U8" />
                <data android:pathPattern=".*\\.MKV" />
                <data android:pathPattern=".*\\.MP3" />
                <data android:pathPattern=".*\\.MP4" />
                <data android:pathPattern=".*\\.M4V" />
                <data android:pathPattern=".*\\.MPEG" />
                <data android:pathPattern=".*\\.MPG" />
                <data android:pathPattern=".*\\.MOV" />
                <data android:pathPattern=".*\\.MTS" />
                <data android:pathPattern=".*\\.OGG" />
                <data android:pathPattern=".*\\.RM" />
                <data android:pathPattern=".*\\.RMVB" />
                <data android:pathPattern=".*\\.TS" />
                <data android:pathPattern=".*\\.VOB" />
                <data android:pathPattern=".*\\.WEBM" />
                <data android:pathPattern=".*\\.WMV" />
                <data android:pathPattern=".*\\.WTV" />
                <data android:pathPattern=".*AVI" />
                <data android:pathPattern=".*ASF" />
                <data android:pathPattern=".*DIVX" />
                <data android:pathPattern=".*F4V" />
                <data android:pathPattern=".*FLV" />
                <data android:pathPattern=".*M2V" />
                <data android:pathPattern=".*M2TS" />
                <data android:pathPattern=".*M3U" />
                <data android:pathPattern=".*M3U8" />
                <data android:pathPattern=".*MKV" />
                <data android:pathPattern=".*MP3" />
                <data android:pathPattern=".*MP4" />
                <data android:pathPattern=".*M4V" />
                <data android:pathPattern=".*MPEG" />
                <data android:pathPattern=".*MPG" />
                <data android:pathPattern=".*MOV" />
                <data android:pathPattern=".*MTS" />
                <data android:pathPattern=".*OGG" />
                <data android:pathPattern=".*RM" />
                <data android:pathPattern=".*RMVB" />
                <data android:pathPattern=".*TS" />
                <data android:pathPattern=".*VOB" />
                <data android:pathPattern=".*WEBM" />
                <data android:pathPattern=".*WMV" />
                <data android:pathPattern=".*WTV" />
            </intent-filter>

Yatse 2 : Media Center Remote Control for Touch Screens
Yatse, the Xbmc Remote and Widgets for Android
find quote