This project has moved and is read-only. For the latest updates, please go here.

Windows Phone 8.1 in VB

Jan 12, 2016 at 7:32 PM
Hello please what am I doing wrong when getting message ... Reference required to assembly 'System.Windows, Version=2.0.6.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' containing the type 'BitmapImage'. Add one to your project.

problem appears at ... e.BitmapImage in new frame event.
Imports MjpegProcessor

Public NotInheritable Class MainPage

    Inherits Page
    Dim liveview As New MJPEGDecoder

    Protected Overrides Sub OnNavigatedTo(e As Navigation.NavigationEventArgs)

    End Sub

    Public Sub liveview_NewFrame(sender As Object, e As MjpegProcessor.FrameReadyEventArgs)
        IMG1.Source = e.BitmapImage
    End Sub

    Private Sub MainPage_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
        AddHandler liveview.FrameReady, AddressOf liveview_NewFrame
    End Sub

    Private Sub button_Click(sender As Object, e As RoutedEventArgs) Handles button.Click
        liveview.ParseStream(New Uri("http://192.168.0.1/v1/liveview"))
    End Sub

    Private Sub button1_Click(sender As Object, e As RoutedEventArgs) Handles button1.Click
        liveview.StopStream()
    End Sub
End Class
Thank You
Best Regards
Jeza