Developer Center > Third Party Device Driver Software Development

MediaPlayerDriver Template

(1/2) > >>

Frunple:
The template seems to be missing 6 required interface members. I fixed 3 of them but I can't figure out the last 3.
Can anyone help with these?


--- Code: ---c:\Windows\Temp\DynamicCompiledElveDrivers\zp3w0--s.0.cs(34,10) : error CS0535: 'BuiltInDrivers.SonosZP' does not implement interface member 'CodecoreTechnologies.Elve.DriverFramework.DriverInterfaces.IMediaPlayerDriver.SetZonePlaylistPosition(CodecoreTechnologies.Elve.DriverFramework.Scripting.ScriptNumber, CodecoreTechnologies.Elve.DriverFramework.Scripting.ScriptNumber)'
c:\Windows\Temp\DynamicCompiledElveDrivers\zp3w0--s.0.cs(34,10) : error CS0535: 'BuiltInDrivers.SonosZP' does not implement interface member 'CodecoreTechnologies.Elve.DriverFramework.DriverInterfaces.IMediaPlayerDriver.GetZonePlaylist(int, int, int)'
c:\Windows\Temp\DynamicCompiledElveDrivers\zp3w0--s.0.cs(34,10) : error CS0535: 'BuiltInDrivers.SonosZP' does not implement interface member 'CodecoreTechnologies.Elve.DriverFramework.DriverInterfaces.IMediaPlayerDriver.SupportsPlaylistIDFromCompanionMediaLibrary'

--- End code ---

iostream212:
When I was messing around with implementing that driver interface, visual studio would error out until all the required member elements were included. What I did was added all the members, but threw a not implemented exception for the ones I didn't need.

--- Code: ---        Public Sub SetZonePlaylistPosition(zoneID As Scripting.ScriptNumber, index As Scripting.ScriptNumber) _
            Implements IMediaPlayerDriver.SetZonePlaylistPosition
            Throw New NotImplementedException
        End Sub

--- End code ---


--- Code: ---Public ReadOnly Property SupportsPlaylistIDFromCompanionMediaLibrary As Boolean _
        Implements IMediaPlayerDriver.SupportsPlaylistIDFromCompanionMediaLibrary
            Get
                Return False
            End Get
        End Property

--- End code ---

I don't see a member 'GetZonePlaylist'. Maybe we are using different elve dlls.

Frunple:
Got rid of one.

--- Code: ---    public bool SupportsPlaylistIDFromCompanionMediaLibrary
       {
           get
   {
return false;
   }
        }
--- End code ---

This does nothing

--- Code: ---       public void SetZonePlaylistPosition(ScriptNumber zoneID, ScriptTimeSpan position)
       {
throw new NotImplementedException();
       }
--- End code ---

And the 'GetZonePlaylist'... there's a GetZonePLaylistText

--- Code: ---    public MediaPlayerPlaylistItem[] GetZonePlaylistText(int zoneID)
       {
       }
--- End code ---

But the "GetZonePlaylist' wants a 3rd int. I have no idea what it would be?

iostream212:
For the SetZonePlaylistPosition change the second variable from ScriptTimeSpan to a ScriptNumber. The position is referring to position in playlist and not position in a song.
Try something like this for the other method:

--- Code: --- Public Function GetZonePlaylist(zoneNumber As Integer, pageIndex As Integer, pageSize As Integer) As MediaPlayerPlaylistItem() _
            Implements IMediaPlayerDriver.GetZonePlaylist
            Dim a() As MediaPlayerPlaylistItem = Nothing
            Return a
        End Function

--- End code ---

Frunple:
Not having any luck with the 'GetZonePlaylist'.
Can you convert your suggestion to C#?

Navigation

[0] Message Index

[#] Next page

Go to full version