Skip to content

Commit

Permalink
ExoPLayer Dash metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
moljac committed Aug 29, 2024
1 parent 2652823 commit b79b28c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using Android.Runtime;
using Java.Interop;

namespace AndroidX.Media3.ExoPlayer.Dash;

// Metadata.xml XPath class reference: path="/api/package[@name='androidx.media3.exoplayer.dash']/class[@name='DashMediaSource']"
// [global::Android.Runtime.Register ("androidx/media3/exoplayer/dash/DashMediaSource", DoNotGenerateAcw=true)]
public sealed partial class DashMediaSource //: global::AndroidX.Media3.ExoPlayer.Source.BaseMediaSource
{
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.media3.exoplayer.dash']/class[@name='DashMediaSource']/method[@name='canUpdateMediaItem' and count(parameter)=1 and parameter[1][@type='androidx.media3.common.MediaItem']]"
[Register ("canUpdateMediaItem", "(Landroidx/media3/common/MediaItem;)Z", "")]
public /*virtual*/ unsafe bool CanUpdateMediaItem (global::AndroidX.Media3.Common.MediaItem? mediaItem)
{
const string __id = "canUpdateMediaItem.(Landroidx/media3/common/MediaItem;)Z";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((mediaItem == null) ? IntPtr.Zero : ((global::Java.Lang.Object) mediaItem).Handle);
var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod (__id, this, __args);
return __rm;
} finally {
global::System.GC.KeepAlive (mediaItem);
}
}

// Metadata.xml XPath method reference: path="/api/package[@name='androidx.media3.exoplayer.dash']/class[@name='DashMediaSource']/method[@name='updateMediaItem' and count(parameter)=1 and parameter[1][@type='androidx.media3.common.MediaItem']]"
[Register ("updateMediaItem", "(Landroidx/media3/common/MediaItem;)V", "")]
public /*virtual*/ unsafe void UpdateMediaItem (global::AndroidX.Media3.Common.MediaItem? mediaItem)
{
const string __id = "updateMediaItem.(Landroidx/media3/common/MediaItem;)V";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue ((mediaItem == null) ? IntPtr.Zero : ((global::Java.Lang.Object) mediaItem).Handle);
_members.InstanceMethods.InvokeAbstractVoidMethod (__id, this, __args);
} finally {
global::System.GC.KeepAlive (mediaItem);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@
<remove-node
path="/api/package[@name='androidx.media3.exoplayer.dash']/interface[@name='DashChunkSource']"
/>



<remove-node
path="/api/package[@name='androidx.media3.exoplayer.dash']/class[@name='DashMediaSource']/method[@name='canUpdateMediaItem' and count(parameter)=1 and parameter[1][@type='androidx.media3.common.MediaItem']]"
/>
<remove-node
path="/api/package[@name='androidx.media3.exoplayer.dash']/class[@name='DashMediaSource']/method[@name='updateMediaItem' and count(parameter)=1 and parameter[1][@type='androidx.media3.common.MediaItem']]"
/>

</metadata>

0 comments on commit b79b28c

Please sign in to comment.