Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded/breaking code, update camera example #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Assets/Scripts/MjpegProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
using System.Net;
using System.IO;
using System.Threading;
// If you see the error "The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference?"
// Then you need to copy "System.Drawing.dll" from the Mono directory into your Unity Project Directory
using System.Drawing;

public class MjpegProcessor {

public Bitmap bitmap { get; set; }
// 2 byte header for JPEG images
private readonly byte[] JpegHeader = new byte[] { 0xff, 0xd8 };
// pull down 1024 bytes at a time
Expand Down
4 changes: 1 addition & 3 deletions Assets/Scripts/MjpegTexture.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
using UnityEngine;
using System;

using UnityEngine.UI;

/// <summary>
/// A Unity3D Script to dipsplay Mjpeg streams. Apply this script to the mesh that you want to use to view the Mjpeg stream.
/// </summary>
public class MjpegTexture : MonoBehaviour
{
/// <param name="streamAddress">
/// Set this to be the network address of the mjpg stream.
/// Example: "http://extcam-16.se.axis.com/mjpg/video.mjpg"
/// Example: "http://camera19.city.tarumizu.kagoshima.jp/nphMotionJpeg?Resolution=640x480"
/// </param>
[Tooltip("Set this to be the network address of the mjpg stream. ")]
public string streamAddress;
Expand Down
Binary file removed Assets/Scripts/System.Drawing.dll
Binary file not shown.
24 changes: 0 additions & 24 deletions Assets/Scripts/System.Drawing.dll.meta

This file was deleted.