Codecore Logo
Quick Search
»
Advanced Search »

Popcorn Hour Driver

RSS
Interfaces with the Popcorn Hour A-100, A-110 and B-110 Media Players. You must have telnet installed and running on your Popcorn Hour to use this driver. See http://www.lundman.net/wiki/index.php/NMT:telnetd. Please read the cautions concerning installing Telnet, there is a chance you could brick your Popcorn Hour, so do not install unless you are comfortable with the process.

Manufacturer: Popcorn Hour

Primary Communications Port: Network


Configuration Settings

  • Host Name : The host name or ip address of the Popcorn Hour Media Player.

Events

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:

  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Instance Properties

Connected

Gets a value indicating if a connection is established with the Popcorn Hour Media Player.

Accessibility : Read Only

Type: Boolean

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

SendRawCommand ( String )

Sends a command that may otherwise not be supported by the driver.

Syntax

void SendRawCommand( String command )

Parameters

command : The command string to send. The driver will append the command with a carriage-return .

SendKeyCommand ( Number )

Sends a defined key press.

Syntax

void SendKeyCommand( Number key )

Parameters

key : The key to send.

0 = PLAY
1 = PAUSE
2 = STOP
3 = OK
4 = UP
5 = DOWN
6 = LEFT
7 = RIGHT
8 = RETURN
9 = MENU
10 = HOME
11 = REWIND
12 = FORWARD
13 = PREVIOUS
14 = NEXT
15 = SUBTITLE
16 = AUDIO
17 = INFO
18 = SETUP
19 = SOURCE
20 = POWER
21 = RED
22 = GREEN
23 = YELLOW
24 = BLUE
25 = DEL
26 = CAPS
27 = TIMESEEK
28 = ZOOM
29 = REPEAT
30 = ANGLE
31 = TV MODE
32 = EJECT
33 = VOLUME UP
34 = VOLUME DOWN
35 = MUTE
36 = TITLE
37 = SLOW
38 = 0
39 = 1
40 = 2
41 = 3
42 = 4
43 = 5
44 = 6
45 = 7
46 = 8
47 = 9

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.