Quantcast
Channel: Hooktheory Forum - Latest topics
Viewing all articles
Browse latest Browse all 2741

Some YouTube videos don't work in player

$
0
0

@HertzDevil wrote:

Some analyses submitted with 2.11.x, mainly those from drafts created using HP1, fail to play the YouTube video outside the editor, for example this tab.

Exporting the JSON from the editor reveals that some keys under $.youtube are missing compared to projects created in 2.11.x:

	"youtube": {
		"syncEnd": 0.4896027239435825,
		"mouseDownSyncStart": 0,
		"youtubeSyncMode": "sync-linked-to-youtube",
		"syncStart": 0,
		"mouseDown": false,
		"playerError": null,
		"videoInitializing": false,
		"playing": false,
		"videoDuration": 180.361,
		"playerState": 2,
		"mouseDownSyncIndex": null,
		"mouseDownX": 287.890625,
		"isOpen": true,
		"idDiv": "hookpad-youtube-player",
		"isInitializing": false,
		"syncEndAbsoluteHookpad1": 88.1,
		"isCueing": false,
		"mouseDownSyncEnd": 0.48846480114880716,
		"isLoadOpen": false,
		"mouseDownOver": "mouse-location-youtube-track",
		"id": "vDrlRFteJAI",
		"playAfterDurationIsSet": false,
		"mosueDownSyncEnd": 0,
		"syncCurrent": 0.4739713732632563,
		"playbackMode": "instrument-playback",
		"syncMode": "youtube-sync-mode-test",
		"loadingApi": false,
		"syncStartAbsoluteHookpad1": 0,
		"isOpenModalLoad": false,
		"keyFramesForSync": []
	},

Here is an example of a 2.11.x project:

	"youtube": {
		"syncEnd": 0.21948003505186468,
		"mouseDownSyncStart": 0.07432507846601096,
		"youtubeSyncMode": "sync-linked-to-youtube",
		"isDraggingKeyFrame": false,
		"syncStart": 0.07432507846601096,
		"mouseDown": false,
		"playerError": null,
		"keyFrameDragOriginalBeat": -1,
		"keyFrameStartClickBeat": -1,
		"playing": false,
		"videoDuration": 180.141,
		"keyFrameDragIndex": -1,
		"playerState": 1,
		"mouseDownSyncIndex": null,
		"mouseDownX": 83.890625,
		"isPlayerOnParent": false,
		"idDiv": "hookpad-youtube-player",
		"isInitializing": true,
		"syncEndAbsoluteHookpad1": null,
		"isCueing": false,
		"mouseDownSyncEnd": 0.21975759540736398,
		"mouseDownOver": "mouse-location-youtube-marker-end-nudge-left",
		"id": "https://www.youtube.com/watch?v=b5YIJ_-WlNM",
		"playAfterDurationIsSet": false,
		"mosueDownSyncEnd": 0,
		"syncCurrent": 0.09785029555488609,
		"playbackMode": "instrument-playback",
		"syncMode": "youtube-sync-mode-test",
		"requestPlayAfterNextStateChangeToPaused": false,
		"loadingApi": false,
		"syncStartAbsoluteHookpad1": null,
		"isOpenModalLoad": false,
		"cueVideoOnGetSongSuccess": true,
		"keyFramesForSync": []
	},

The missing fields are isDraggingKeyFrame, keyFrameDragOriginalBeat, isPlayerOnParent, requestPlayAfterNextStateChangeToPaused, and cueVideoOnGetSongSuccess. The last one might have something to do with this.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2741

Trending Articles